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

Rollback settings.

kowong
Participant
0 Likes
516

Dear Expert,

There are some differences of setting with my development & production system.

I was using BAPI , and without commit works statement ,

for some records, the BAPI update not successful, which is expected,

and then after, I do ,

UPDATE tableXX SET XXX = v_text WHERE XXXX = v_eXXX.

and it UPDATE tableXX <b>successfully</b> ... no roll back was done even the BAPI wasnt execute succesfully.

Using the same codes, in my other system, same scenario, BAPI not executed sucessfully , but the update tableXXX does <b>not update successfully</b> , due to the rollback happened.

I do a SQL trace and found out, there is rollback happened in one of the system, but no rollback on the other system. Both using the same program codes.

My question is , where can I see the setting, of rollback in the system, what is the TCODE? If there is such a setting.

Thank you .

From KokWei.

Message was edited by:

Kokwei Wong

Message was edited by:

Kokwei Wong

4 REPLIES 4
Read only

Former Member
0 Likes
486

Hi kokwei,

1. I don't think there is any special setting for rollback.

2. It all depends upon the session, in which all the sql statements (or bapi updates)

happen. (in the same session)

3. If there is any ERROR statement issued, then roll back will happen immediately.

But after the rollback, if

there is any further sql update statement,

then it has its own session (for the purpose of commit and rollback),

and is totally independent of the first rollback.

regards,

amit m.

Read only

Former Member
0 Likes
486

Hi,

Please check if you have "Permission Check Active" in the permissions tab of the entity service. If yes uncheck it and deploy and build.

Otherwise give the full exception chain you are getting (click on the exception message).

Take a look at this image

http://www.rwj.dk/transaction.jpg

<b>Reward points</b>

Regards

Read only

Former Member
0 Likes
486

Hi,

Is there any parameter like extensionin in that bapi.

If so use that parameter for updation.

Thanks,

Hari.

Read only

0 Likes
486

No, this is a customized table updates...

Message was edited by:

Kokwei Wong