Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BDC Recording in MEQ1 transaction

avik_ghosh
Explorer
0 Kudos

Hi Experts,

I need to do a BDC recording for data posting in MEQ1 transaction, Since I didn't find any BAPI I have to go for the BDC recording. I was given a excel file where there is Procurement Type, Special Procurement Type, Material Number, Version Number and Percentage. In the selection Screen there is option for the following:

1. Plant

2. Company Code

3. Valid Date from

4. Valid date to.

Please suggest me how to proceed with this case as there is no scenario of company code in the MEQ1 transaction.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

If you are entering plant the transaction itself takes care of company code....

You need not provide it explicitly.

You can do one thing to use the company code is

validate the Company code with the plant entered and see that if it is valid and then proceed with the plant.entered in the Screen BDC as stated above.

Regards,

Richa

3 REPLIES 3

Former Member
0 Kudos

HI there..

I have done a recording in my syste..Just copy that and change according to your req.

perform bdc_dynpro using 'SAPDM06Q' '0200'.

perform bdc_field using 'BDC_CURSOR'

'EQUK-WERKS'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'EQUK-MATNR'

'3100010101'. <- work area from your internal table value

perform bdc_field using 'EQUK-WERKS'

'3100'. <- work area from your internal table value

perform bdc_dynpro using 'SAPDM06Q' '0205'.

perform bdc_field using 'BDC_CURSOR'

'EQUK-VDATU(01)'. <- work area from your internal table value

perform bdc_field using 'BDC_OKCODE'

'=BU'.

perform bdc_field using 'RM06Q-SELKZ(01)'

'X'.

perform bdc_transaction using 'MEQ1'.

Former Member
0 Kudos

Hi,

If you are entering plant the transaction itself takes care of company code....

You need not provide it explicitly.

You can do one thing to use the company code is

validate the Company code with the plant entered and see that if it is valid and then proceed with the plant.entered in the Screen BDC as stated above.

Regards,

Richa

0 Kudos

Thanks for all the suggestion.