2007 Jul 02 12:14 PM
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.
2007 Jul 02 12:17 PM
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
2007 Jul 02 12:27 PM
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