‎2010 Dec 14 3:30 PM
Hi,
I am using BAPI_SHIPMENT_CREATE in se37 to create shipment.
I've given proper data and it does return sy-subrc 0 with a shipment number.
But, when i try to change the same in Tcode VT02N, it says "Shipment 104689 is currently being processed by user DZ9S07".
When i used the same BAPI in a program, it gives me the shipment number and when i try to display it in the Tcode VT03N, it gives me a message, "Shipment 104689 is neither in the database nor in the archive."
do i have to do anything specific for these shipments to get saved?
I doubt if i need to do a commit work, anyway i've tried doing that in the debugging. No luck.
Please help me.
Cheers,
Ajit.
‎2010 Dec 14 4:10 PM
Ajit,
Try to commit by calling FM 'BAPI_TRANSACTION_COMMIT' after bapi BAPI_SHIPMENT_CREATE call.
‎2010 Dec 14 4:10 PM
Ajit,
Try to commit by calling FM 'BAPI_TRANSACTION_COMMIT' after bapi BAPI_SHIPMENT_CREATE call.
‎2010 Dec 15 7:57 AM
Thanks.
That worked.
But, why does it not need a commit in r/3 4.7 or 4.6?
it works fine there een without explicit commit.
‎2010 Dec 15 8:42 AM
In earlier Versions of SAP 4.7 etc. there are a lot of BAPIs that do their commit thmeselves.
This has been proven not too good so in later releases some BAPIs lost this functionality and you need to do the commit manually using BAPI_TRANSACTION_COMMIT.
Edited by: Florian Kemmer on Dec 15, 2010 9:43 AM
‎2010 Dec 15 2:50 PM
Refer the link below, that will give you more information on both type of BAPI
http://help.sap.com/saphelp_46c/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/content.htm