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: 

Issue with service entry sheet creation using synchronous service

Former Member
0 Kudos

Hi,

I am using a synchronous service inside that i am calling bapi bapi_entrysheet_create with testrun

set,so that commit doesnot happen inside the bapi,then outside i am explicitly calling commit work.

Still database table is not updated,commit is not working.

2 REPLIES 2

Former Member
0 Kudos

Hello,

When you get return message to synchronous service call, the session ends there. So you cannot make commit afterwards. You have to remove TESTRUN parameter and then make Sevice call.

Thanks,

Venu

0 Kudos

Hi Venu,

But I cannot set test run as initial because if testrun is set to initial bapi_entrysheet_create logic

is written in such a way that it calls commit work inside the bapi....and so we cannot rollback later

in the synchronous service.

Regards,

Tess