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: 

Enhancement in BAPI MB_CREATE_GOODS_MOVEMENT

former_member328875
Participant
0 Kudos

Dear Experts,

This BAPI generates MBLNR but after generating the entry is not passing into MSEG and MKPF table. So should I use any insert statement to do this can anybody suggest me where exactly have to add this code or any other way to do the same. Hope for urgent response.

regards,

Saquib

Message was edited by: Suhas Saha

8 REPLIES 8

venkat_aileni
Contributor
0 Kudos

Hi-

After your BAPI call, call BAPI_TRANSACTION_COMMIT EXPORTING WAIT = 'X'.

-Venkat

0 Kudos

Hi Venkat,

I am excuting this BAPI in SE37. How can I call BAPI_TRANSACTION_COMMIT EXPORTING WAIT = 'X'. after my BAPI Call. Explian please.

0 Kudos

hi,

go to the SE37-> Function Module( Menu) -> test sequence -> enter the two function modules parameters

Thanks,

Kiran

0 Kudos

Hi kiran,

nothing going correct, This is not helpful. I want to insert the entries into database tables after generation of the doc. no. in SE37. Please suggest how.

0 Kudos

This message was moderated.

0 Kudos

Hi,

I think you are testing the BAPI function module through SE37.

Sequence of Function module first enter as mentioned like below screen shot.

first enter the parameters of first FM and execute- check the return paramerters.

go back the second FM automatically will and commit the changes in DB.

0 Kudos

hi,

I did the same but no effect. Entry not going to table.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

I'd use the BAPI_GOODSMVT_CREATE instead the FM you are using. See SAP Note 520813 - FAQ: BAPIs for goods movements, in question 8 there is a mention to MB_CREATE_GOODS_MOVEMENT.

In the other hand, take in account the recommendations by SAP in SAP Note 109533 - Use of SAP function modules. See also the documentation in SE37.

A last question, are you in IS-Oil? Because looking for notes is the only place where I could read notes related with the development for creating movements.

I hope this helps you

Regards

Eduardo