‎2007 Feb 20 7:15 AM
hi folks ,
i have created the GUI status for the program .. when i go on the out put screen i am not able to go back or cancel or exit , though i have created the GUI status and activated it as well .
my program is designed to display the user action on screen and it displays the value in the text field which can only accept output no inputs .
plz advice .
Thanks,
Abhishek .
‎2007 Feb 20 7:16 AM
‎2007 Feb 20 7:19 AM
activations of GUI status is ok , what abt Fcodes of that Status ?
have u given any Fcodes for BACK or Exit ?
Regards
Prabhu
‎2007 Feb 20 7:21 AM
Have u added the gui_status in status output module. If not add and activate it.
&----
*& Module STATUS_0100 OUTPUT
&----
text
----
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'TEST'.
SET TITLEBAR 'BTIT'.
ENDMODULE. " STATUS_0100 OUTPUT
‎2007 Feb 20 7:22 AM
Hi Abhishek,
Please check this links.
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba34635c111d1829f0000e829fbfe/content.htm
http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
Regards,
Priyanka.
‎2007 Feb 20 7:23 AM
Hi
Check the Function Codes supplied for Keys in the created GUI status.
regards,
kumar
‎2007 Feb 20 7:26 AM
Hi,
Check the following code:
DATA: OK_CODE TYPE SY-UCOMM,
CASE: OK_CODE.
WHEN 'EXIT' ."EXIT is the function code for the button .
LEAVE PROGRAM.
ENDCASE.
Hope this helps.
Reward if helpful.
regards,
Sipra
‎2007 Feb 20 7:28 AM
Hello,
Make sure that the function codes in the GUI status are written in capital letters only.Similarly in the PAI of the screen,in the case statement,the function codes have to be written in capital letters.I hope you have written the user-commands as the functionality has to be coded by the developer when he makes the GUI.
&----
*& Module USER_COMMAND_0100 INPUT
&----
text
----
MODULE USER_COMMAND_0100 INPUT.
case ok_code.
when 'BACK'.
leave to screen 100.
when 'EXIT'.
leave to screen 0.
when 'SAVE'.
....logic
ENDCASE.
endmodule.
Regards,
Beejal
**Reward if this helps
‎2007 Feb 20 7:29 AM
HI abhishek
In your program just create module status output,in that you just set PF-STATUS .after creating that ,in that you can see Function Keys ,there you can create BACK, EXIT,SAVE buttons easily.
Reward if useful
regards
lavanya.a