‎2011 Dec 19 12:57 PM
Hi All,
I have a requirement of updating MKPF-FRBNR, MSEG-EBELN, MSEG-ABLAD once BAPI_GOODSMVT_CREATE executed successfully, i.e., RETURN is initial.
I will modify the tables MKPF and MSEG in a FM which will be called IN UPDATE TASK.
Now, from where calling this FM will be good?
1. In BAPI_GOODSMVT_CREATE, at ENHANCEMENT-POINT bapi_goodsmvt_create_g7 SPOTS es_saplmb_bus2017 in ENHANCEMENT 2 MGV_GENERATED_SAPLMB_BUS2017 after CALL FUNCTION 'MATNR_BAPI_TABLES_CONVERSION' checking if RETURN is initial (In this case we need to create structure in SE11 to pass values in EXTENSIONIN to modify those fields).
2. In my code after calling BAPI_GOODSMVT_CREATE and checking if RETURN is initial
Kindly advise at earliest.
Regards,
Avijit
‎2011 Dec 20 8:42 AM
Why dont you fill these fileds beforehand in the corrsponding structures via enhancment as in case everythingis okie they will be updated automatically.
Nabheet
‎2011 Dec 20 8:46 AM
Hi Avijit,
Welcome to scn.Do you want update it manually ?.
Regards,
Madhu.
‎2011 Dec 20 11:02 AM
Update this in the structures of BAPI_GOODSMVT_CREATE instead of updating separately.