Application Development 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: 

EXIT ( how to cancel the transaction if user selects any option )

Former Member
0 Kudos

Hi to all ,

i got a requirement of customer exit which is called by one transaction (MRN0).

if user selects somethng in MRN0 , error messeage should display and exit the whole transaction. can we control in exit and display the error messeage and aslo stop the whole transaction ( MRN0 ) if user select somethink. can any body tel me that how to stop and cancel whole transaction.

Regards ,

Kiran.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

If you display a error message , user will not be able to do any further processing for the transaction.

instead you can display a information message TYPE I, stating the problem and indicating transaction will be exited .

oncer user presses icon, you can use LEAVE-PROGRAM or EXIT statements to exit the transaction.

hope this helps.

Regards,

Raghavendra

2 REPLIES 2

Former Member
0 Kudos

Hi,

Generally customer exits is the exits where we write the customer code in customer name space rather than sap namespace.. So initially find out the exact exit u want and write your own logic such tht we come out of the screen like exit or use stop. something code there and you can come out of the screen..

Regards,

Sana..

Former Member
0 Kudos

Hi,

If you display a error message , user will not be able to do any further processing for the transaction.

instead you can display a information message TYPE I, stating the problem and indicating transaction will be exited .

oncer user presses icon, you can use LEAVE-PROGRAM or EXIT statements to exit the transaction.

hope this helps.

Regards,

Raghavendra