Application Development and Automation 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: 
Read only

Doubt in BDC ( Material master)

Former Member
0 Likes
422

Hi frnds,

I am creating BDC for material master.In that BDC if i load the data in 'A' mode its work properly. In 'E' Mode in the last page its asking every time for Save, In 'N' Mode its not upload how to do this.

This is my code :

perform bdc_dynpro using 'SAPLSPO1' '0300'.

perform bdc_field using 'BDC_OKCODE'

'=YES'.

***********CALL TRANSACTION************************

CALL TRANSACTION 'MM01' USING bdcdata MODE 'E'

UPDATE 'A'

MESSAGES INTO it_bdcmsg.

Thanks,

Gowri.

Hi frnds,

I am creating BDC for material master.In that BDC if i load the data in 'A' mode its work properly. In 'E' Mode in the last page its asking every time for Save, In 'N' Mode its not upload how to do this.

This is my code :

perform bdc_dynpro using 'SAPLSPO1' '0300'.

perform bdc_field using 'BDC_OKCODE'

'=YES'.

***********CALL TRANSACTION************************

CALL TRANSACTION 'MM01' USING bdcdata MODE 'E'

UPDATE 'A'

MESSAGES INTO it_bdcmsg.

Thanks,

Gowri.

2 REPLIES 2
Read only

Former Member
0 Likes
393

Hi

May be in 'A' mode you are manually hitting the SAVE and saving

The function code/OK code for SAVE is 'BU' like

PERFORM bdc_field USING 'BDC_OKCODE'

'=BU'.

so you have to write this in the last, then it won't ask in E and N modes

may be this is missing in the program see and correct.

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
393

Hi Gowri,

probably you've not written code for the OK_CODE to do the saving.

try doing perform bdc_field using 'BDC_OKCODE' '=BU' at that point in code where you shall be getting the screen wherein you need to save.

Reward points if this is helpful.

Kiran