2008 Oct 24 3:51 PM
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
2008 Oct 24 4:17 PM
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
2008 Oct 24 4:17 PM
2008 Oct 24 4:22 PM
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
2008 Oct 24 4:26 PM
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.
2008 Oct 24 4:32 PM
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.
2008 Oct 24 4:39 PM
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.
2008 Oct 24 4:44 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |