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

Hi BAPI_ENTRYSHEET_CREATE Problem

Former Member
0 Likes
500

Hi abapers

we have requirement to call BAPI_ENTRYSHEET_CREATE from JAVA throguh JCO.

but the COMMIT is already writeen by sap inisde ABAP Source code.

but when JCO called BAPI_ENTRYSHEET_CREATE Multiple times java people getting the error messgae as 'USER ALREADY PROCESSING PURCHASE ORDER'.

i know that i can use 'BAPI_TRANSACTION_COMMIT' where WAIT = 'X' for BAPI which doesn't have inside Commit code.

for BAPI_ENTRYSHEET_CREATE already commit is written.

how can i avoid the above error message while calling form JAVA.

thanks & Regards

Ramesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
381

Hi ramesh,

pass the TESTRUN parameter as 'X' and run.

the

if the return table is empty or is with no errors, then use bapi_transaction_commit.

else use the fm BAPI_TRANSACTION_ROLLBACK.

Regards,

ravi

1 REPLY 1
Read only

Former Member
0 Likes
382

Hi ramesh,

pass the TESTRUN parameter as 'X' and run.

the

if the return table is empty or is with no errors, then use bapi_transaction_commit.

else use the fm BAPI_TRANSACTION_ROLLBACK.

Regards,

ravi