2008 Feb 28 8:43 AM
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.
2008 Feb 28 10:02 AM
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.
2008 Feb 28 8:46 AM
Hi,
you need an
COMMIT WORK AND WAIT.
after the FUBA
Regards
Nicole
2008 Feb 28 8:46 AM
Hi,
Are you calling BAPI_TRANSACTION_COMMIT function module after the call to your BAPI.
Please do if not.
Cheers.
2008 Feb 28 10:02 AM
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.
2008 Feb 28 10:17 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |