2009 Dec 11 9:56 AM
Hi Experts,
I have to update some custom table in the function exit of VT01n transaction code based on some condition.
I have done it using update statement as it is custom table there is no problem.
BUT in the code After that UPDATE statement ,based on some condition i have to through a message which will stop the transactionn.
In that case if i exit from the transaction using exit button in the menu bar, the updated custom table has to roll back.
Can i use ROLL BACK Statement. in the function exit in that case.
If i use that ,does it effect any standard functionality.
Orelse is there any alternative solution for that.
Regards
Ramakrishna L
Hi Experts,
I have to update some custom table in the function exit of VT01n transaction code based on some condition.
I have done it using update statement as it is custom table there is no problem.
BUT in the code After that UPDATE statement ,based on some condition i have to through a message which will stop the transactionn.
In that case if i exit from the transaction using exit button in the menu bar, the updated custom table has to roll back.
Can i use ROLL BACK Statement. in the function exit in that case.
If i use that ,does it effect any standard functionality.
Orelse is there any alternative solution for that.
Regards
Ramakrishna L
2009 Dec 11 3:31 PM
Hi Ramakrishna,
If u r updating the custom table in the same exit where u r throwing the message , don't use the commit work after updating the table. use it at end of the exit.
Regards,
Srinivas.
2009 Dec 11 5:04 PM
HI Srinivas,
Thank you for the reply.But i have not used commit statement in the exit.Even the table is getting updated.
I am somewhat weal in datadictionary concepts.
Can you suggest me any materials (soft copies) for datadictionary
Regards
Ramakrishna L
2009 Dec 11 5:30 PM
Hi
The SAP system handles the COMMIT in standard tansaction codes.
if you display an error message or leave the screen, then system wont update the data.
Regards
Shiva
2009 Dec 11 5:59 PM
Try to change the logic , first check the condition on which error message is thrown.
And update the table is there is no error.
Hope you get it.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |