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 TO created

Former Member
0 Likes
1,117

Hi Gurus,

I am using FM L_TO_CREATE_DN to create TO and using FM L_TO_CONFIRM to confirm the TO created by FM L_TO_CREATE_D.

Problem:

If FM L_TO_CONFIRM fails i want to ROLLBACK the TO which is created by FM L_TO_CREATE_DN.

Any clues how to do it.

Thanks in Advance

Sharat

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,035

try cancel using the function L_TO_CANCEL

Hi Gurus,

I am using FM L_TO_CREATE_DN to create TO and using FM L_TO_CONFIRM to confirm the TO created by FM L_TO_CREATE_D.

Problem:

If FM L_TO_CONFIRM fails i want to ROLLBACK the TO which is created by FM L_TO_CREATE_DN.

Any clues how to do it.

Thanks in Advance

Sharat

6 REPLIES 6
Read only

Former Member
0 Likes
1,036

try cancel using the function L_TO_CANCEL

Read only

0 Likes
1,035

Hi Vijay,

Thank you for the reply.

Thats a very good option to cancel the TO. But is there any ways that i can rollback the TO, meaning TO created should not be in DB any more?

Thanks

Sharat

Read only

0 Likes
1,035

i doubt about it. give a try with BAPI_TRANSACTION_ROLLBACK, but i feel by that time there will be a commit work will happen from TO_CREATE. anyway check it once.

Read only

0 Likes
1,035

No Luck

I think BAPI_TRANSACTION_ROLLBACK FM will help only when i am using a BAPI in my program.

But thank you.

Regards,

Sharat.

Read only

0 Likes
1,035

logically you can use L_TO_CONFIRM only if the TO is already committed to the DB, so once committed, you cant roll back the changes.

Read only

0 Likes
1,035

Hi MxG,

That makes scene to me. I will suggest the function guys for cancel the TO by using the FM L_TO_CANCEL.

Thank you.

And Thanks to Vijay also.

But still i will keep this question as open, Answers and tried are welcome

Cheers

Sharat.