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

call transaction roll back

venu_001
Participant
0 Likes
603

Hi friends,

i am facing a problem while using call transaction method, my program updating one transaction using call transaction method and after some validations program has to update second transaction using bapi, if bapi fails to update, first updation done by call transaction has to be roll back.

i am not able to roll back first updation done by call transaction.

is there any solution???

thanks in advance.

Hi friends,

i am facing a problem while using call transaction method, my program updating one transaction using call transaction method and after some validations program has to update second transaction using bapi, if bapi fails to update, first updation done by call transaction has to be roll back.

i am not able to roll back first updation done by call transaction.

is there any solution???

thanks in advance.

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
0 Likes
522

Call transaction always does a database commit (like these statements: submit, call screen, synchronous rfc call, wait up to, ...)

Try to find a function module to replace the first transaction

If you don't find one, you may setup a recovery procedure (but it's not really a good approach) : the first object cannot be accessed as long as the bapi failure has not been recovered. You may call the bapi in tRFC so that the admins may recover it by SM58.

Read only

Former Member
0 Likes
522

as mentoned in the above reply, try to fnd a FM for 1st tx. if u find any, then call it with the addition of UPDATE TASK.

not sure, if u use SYNCHRONOUS in call tx, it may work!!

thanq

Edited by: SAP ABAPer on Feb 8, 2009 10:07 PM

Read only

Former Member
0 Likes
522

Hi,

Since the transaction has the statements commit work... even if we use roll back , it would not make any sense....

In this case probably, if the BAPI fails, if its possible to call the same transaction for deletion of that item... then you can call it for deletion

Regards,

Siddarth