2005 Dec 12 10:12 AM
Hi all,
I have some obligatory fields on my dynpro. Want to leave the program with 'LEAVE PROGRAM' at PAI ie. sy-ucom = 'EXIT' without filling the fields. Is that possible ?
Regards Joerg
2005 Dec 12 10:28 AM
in the flow logic
this is how you will write
PROCESS BEFORE OUTPUT.
MODULE INIT_SCREEN_100.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
MODULE PAI.in the program
MODULE init_screen_100 OUTPUT.
SET PF-STATUS 'STATUS_100'.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE pai INPUT.
MESSAGE .....
ENDMODULE.
in the flow logic
this is how you will write
PROCESS BEFORE OUTPUT.
MODULE INIT_SCREEN_100.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
MODULE PAI.in the program
MODULE init_screen_100 OUTPUT.
SET PF-STATUS 'STATUS_100'.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE pai INPUT.
MESSAGE .....
ENDMODULE.
2005 Dec 12 10:14 AM
you need to give the cancel and exit as type 'E'
and you need to handle them in module at exit-command.
2005 Dec 12 10:21 AM
While setting the PF status for CANCEL and EXIT buttons
you can see the below fields, fill the type as E
Function Code ENDE
Functional Type <b>E</b> Exit Command
Modification Original
after PAI
write module at exit-command and handle them ...
2005 Dec 12 10:28 AM
in the flow logic
this is how you will write
PROCESS BEFORE OUTPUT.
MODULE INIT_SCREEN_100.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
MODULE PAI.in the program
MODULE init_screen_100 OUTPUT.
SET PF-STATUS 'STATUS_100'.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE pai INPUT.
MESSAGE .....
ENDMODULE.
2005 Dec 12 10:56 AM
Hi Vijay
thank you for the detailed answer, solved problem.
Regards Joerg
2005 Dec 12 10:58 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |