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

Enhancing BAPI_GOODSMVT_CREATE

Former Member
0 Likes
1,141

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

3 REPLIES 3
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
825

Why dont you fill these fileds beforehand in the corrsponding structures via enhancment as in case everythingis okie they will be updated automatically.

Nabheet

Read only

madhu_vadlamani
Active Contributor
0 Likes
825

Hi Avijit,

Welcome to scn.Do you want update it manually ?.

Regards,

Madhu.

Read only

mithun_shetty4
Contributor
0 Likes
825

Update this in the structures of BAPI_GOODSMVT_CREATE instead of updating separately.