‎2007 Nov 28 4:36 PM
Hi All,
I created a selection screen with some fields with manditory option and i create a button to go back but by problem i cont go back with out fill the obligatory values what to do ..
if sy-ucomm eq 'back'.
leave program.
endif.
reward if helpful answer.
‎2007 Nov 28 5:09 PM
Hi Satwika,
Are u want to go back when press back button in menu bar
try this
SET PF-STATUS 'MY MENU'.
Double click in my menu you will go to create your menu bar and goto utilities-> adjust templet-> set seleection radio button and press enter.
double click in back button function code
Set Function code = 'E'.
and save it and activate it.
in your program i.e in se51 create modlue like this in PAI Event write this
MODULE CANCEL AT EXIT-COMMAND.
IN SE38.
MODULE CANCEL INPUT.
LEAVE PROGRAM.
ENDMODULE.
‎2007 Nov 28 4:40 PM
Go to your PF-STATUS .. double click on the button "BACK".
Set the FUNCTIONAL TYPE = 'E'.
Now in your screen's flowlogic make one module in PAI.
PROCESS AFTER INPUT.
MODULE EXIT_PROG AT EXIT-COMMAND.Create module like this:
MODULE EXIT_PROG.
LEAVE PROGRAM.
ENDMODULE.Regards,
Naimesh Patel
‎2007 Nov 28 5:09 PM
Hi Satwika,
Are u want to go back when press back button in menu bar
try this
SET PF-STATUS 'MY MENU'.
Double click in my menu you will go to create your menu bar and goto utilities-> adjust templet-> set seleection radio button and press enter.
double click in back button function code
Set Function code = 'E'.
and save it and activate it.
in your program i.e in se51 create modlue like this in PAI Event write this
MODULE CANCEL AT EXIT-COMMAND.
IN SE38.
MODULE CANCEL INPUT.
LEAVE PROGRAM.
ENDMODULE.