‎2008 Mar 25 12:34 PM
Hi,
I want to use following part of code to exit the program whenever he wants. He should not have to enter a value into a required text area.
But not working?
What may be the problem?
PROCESS AFTER INPUT.
MODULE exit AT EXIT-COMMAND.
And the code is as follows:
MODULE EXIT INPUT.
LEAVE PROGRAM.
ENDMODULE. " EXIT INPUT
‎2008 Mar 25 12:40 PM
Give the Function type for the button as E - Exit Command
Hope That Helps
Anirban M.
‎2008 Mar 25 12:38 PM
hi
YOu can use it like this...
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'ICON'.
MESSAGE 'THIS IS INFORMATION' TYPE 'I'.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'CANCEL'.
CLEAR OK_CODE.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
HTH
Regards,
Dhruv Shah
‎2008 Mar 25 12:38 PM
hi
First check whether it comes till LEAVE PROGRAM by setting a break-point..
If it is, then make a call as follows to leave the transaction
CALL TRANSACTION SESSION_MANAGERThis is generally the case when the user navigates to a second screen and makes a call to LEAVE PROGRAM...
‎2008 Mar 25 12:40 PM
Give the Function type for the button as E - Exit Command
Hope That Helps
Anirban M.
‎2008 Mar 25 12:41 PM
Hi,
If the text area is mandatory field, then it is not possible to go back without entering the some values into that.
Thanks,
Sriram Ponna.
‎2008 Mar 25 12:42 PM
hi,
make sure that u have given Function Type E ( Exit Command) to that button in GUI Status...