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

Using BAPI_DOCUMENT_CREATE2

Former Member
0 Likes
859

hello,

I'm using this BAPI and when I execute it, it returns the document number that was created, but when I look for it with transaction CV03N, the document does not exist. In addition, if I execute the BAPI again, the document number continues being increased, although the previous document has not been created.

I don't know if it's by a customizing problem or it's by the parameters that I'm introducing.

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
0 Likes
785

Hi,

did you use BAPI_TRANSACTION_COMMIT after this BAPI ?

Rgd

Frédéric

4 REPLIES 4
Read only

FredericGirod
Active Contributor
0 Likes
786

Hi,

did you use BAPI_TRANSACTION_COMMIT after this BAPI ?

Rgd

Frédéric

Read only

0 Likes
785

Sometimes BAPI need a little time to process before the next stament....Use BAPI_TRANSACTION_COMMIT and also, you can use FM "ENQUE_SLEEP".

Greetings,

Blag.

Read only

Former Member
0 Likes
785

Hi,

did you use BAPI_TRANSACTION_COMMIT after bapicall.,

if not do that.

are you doing it in SE37 or in program.

if it is Program then you call the <b>BAPI_TRANSACTION_COMMIT.</b> or if it is from SE37 then you go to menu Function module->Test->Test Sequence

now you will get a popup, in that enter your BAPI first, and then enter the BAPI_TRANSACTION_COMMIT .

and enter,

now execute the BAPI. and check it after that

regards

vijay

Read only

Former Member
0 Likes
785

Excuse me for I didn´t answer before because I was in other activities. Thanks for all your answers, these were very useful to solve the problem.

Thanks,

Greetings,

Irina