07-20-2007 8:15 AM
hi
can any one tell me about AT- EXIT COMMAND
i know that it will provide exit options for the fuctions of type 'E'
if any others apart from this will be helpfull.
vamsi
07-20-2007 8:19 AM
Hi
To come out of that Particular screen automatically without checking for any other mandatory filed fillups when you press this button it comes out
You have to define the function type as E on screen attributes.
And in PAI of the screen you will write this
<b>Reward points for useful Answers</b>
Regards
Anji
07-20-2007 8:24 AM
<b>MODULE </b>
Syntax
MODULE mod [ <b>AT {EXIT-COMMAND</b>|CURSOR-SELECTION} ]
[ ON {CHAIN-INPUT|CHAIN-REQUEST} ].
<b>... AT EXIT-COMMAND </b>
<b>Effect </b>
Addition AT EXIT-COMMAND at the event PAI causes module mod to be called exactly if:
The function used to trigger event PAI has function type "E"
Into the input field of the standard toolbar, the user entered a character string starting with "E" and confirmed it using ENTER.
The dialog module is called before the automatic input checks defined in the system or in the ABAP Dictionary and independent of its position in the event block. The only screen field transported to the ABAP program is the OK field. If the function that triggered the PAI event does not fulfill any of the above prerequisites, the MODULE statement is not executed.
If several MODULE statements have the AT EXIT COMMAND addition, only the first one is executed. If no MODULE statement has the addition AT EXIT COMMAND, a normal PAI processing is executed: The predefined input checks are executed and then the PAI event block is processed sequentially. Provided the screen processing is not terminated in the dialog module mod, after the return from the dialog module, the complete PAI processing is executed. You must not use the addition AT EXIT COMMAND in connection with the statement FIELD.
Note
The function type of a function is determined in the Screen Painter or Menu Painter. Usually those functions of the user interface are defined with function type "E" that are assigned to the icons Back, Exit and Cancel in the standard toolbar of the GUI status. Therefore, the called dialog module should terminate the screen processing and allow security checks, if required.
Regards,
Pavan
07-20-2007 8:32 AM
hi,
sample code:
This exit-command module looks like below.
Module exitscreen input.
Case v_okcode_100.
When EXIT.
Leave to screen 0.
when BACK.
Leave to screen 0.
when CANCEL.
Leave to screen 0.
Endcase.
Endmodule
Please check this link for more info.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm
thanks
jaideep
*reward points if useful..