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

Regarding SHipment function exit

Former Member
0 Likes
577

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

4 REPLIES 4
Read only

Former Member
0 Likes
545

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.

Read only

0 Likes
544

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

Read only

Former Member
0 Likes
544

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

Read only

Former Member
0 Likes
544

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.