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

Problem with BAPI "BAPI_GOODSMVT_CREATE"

Former Member
0 Likes
1,828

Hi experts,

I am using BAPI "BAPI_GOODSMVT_CREATE" for posting goods issue document. I am Providing following fields in the BAPI(According as in my system) :

*****************************************************************************

*GOODSMVTHEADER*_

PSTNG_DATE 27.02.2008

*****************************************************************************

*GOODSMVTCODE*_

GM_CODE 03

*****************************************************************************

and in tables:

******************************************************************************

*GOODSMVTITEM*_

MATERIAL PM-001

PLANT 0001

STGE_LOC 0001

MOVE_TYPE 261

ENTRY_QNT 9,000

ENTRY_UOM_ISO EA

RESERV_NO 0000000026

RES_ITEM 0003

******************************************************************************

But when i check through transaction "mmbe" it seems BAPI is not working. However there is no return message in BAPI. What could be the error. please help.

Thanks and Regards,

Vaibhav Tiwari.

1 ACCEPTED SOLUTION
Read only

vaibhav_tiwari
Contributor
0 Likes
926

Hi all,

I am running the BAPI through transaction 'SE37'. I think there is no need for any commit work. Please help telling what fields i should provide to input if there is something missing.

Regards,

Vaibhav.

Hi all,

I am running the BAPI through transaction 'SE37'. I think there is no need for any commit work. Please help telling what fields i should provide to input if there is something missing.

Regards,

Vaibhav.

4 REPLIES 4
Read only

Former Member
0 Likes
926

Hi,

you need an

COMMIT WORK AND WAIT.

after the FUBA

Regards

Nicole

Read only

Former Member
0 Likes
926

Hi,

Are you calling BAPI_TRANSACTION_COMMIT function module after the call to your BAPI.

Please do if not.

Cheers.

Read only

vaibhav_tiwari
Contributor
0 Likes
927

Hi all,

I am running the BAPI through transaction 'SE37'. I think there is no need for any commit work. Please help telling what fields i should provide to input if there is something missing.

Regards,

Vaibhav.

Read only

0 Likes
926

Hi Vaibhav,

Running a function module from SE37 is called test run. And a BAPI absolutely needs a COMMIT WORK after it runs because one of the fundamental rules of a BAPI is that there is no COMMIT done internally.

And to write the changes to database, you need a commit work,

Hence unfortunately you will have to call the function module BAPI_TRANSACTION_COMMIT.

Ok, to try it out, you can call BAPI_TRANSACTION_COMMIT immediately after the goods movement BAPI by:

Go to SE37 -> Shift + F8 -> Enter the two function modules in sequence (first goods movement then commit FM)

Then run and check.

Cheers

Edited by: Aditya Laud on Feb 28, 2008 5:18 AM