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_SHIPMENT_CREATE

Former Member
0 Likes
1,317

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.

1 ACCEPTED SOLUTION
Read only

tushar_shukla
Active Participant
0 Likes
933

Ajit,

Try to commit by calling FM 'BAPI_TRANSACTION_COMMIT' after bapi BAPI_SHIPMENT_CREATE call.

4 REPLIES 4
Read only

tushar_shukla
Active Participant
0 Likes
934

Ajit,

Try to commit by calling FM 'BAPI_TRANSACTION_COMMIT' after bapi BAPI_SHIPMENT_CREATE call.

Read only

0 Likes
933

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.

Read only

0 Likes
933

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

Read only

0 Likes
933

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