Application Development 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: 

Using BAPI_DOCUMENT_CREATE2

former_member644814
Discoverer
0 Kudos

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

FredericGirod
Active Contributor
0 Kudos

Hi,

did you use BAPI_TRANSACTION_COMMIT after this BAPI ?

Rgd

Frédéric

4 REPLIES 4

FredericGirod
Active Contributor
0 Kudos

Hi,

did you use BAPI_TRANSACTION_COMMIT after this BAPI ?

Rgd

Frédéric

0 Kudos

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.

former_member188685
Active Contributor
0 Kudos

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

former_member644814
Discoverer
0 Kudos

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