Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem in GUI status

Former Member
0 Likes
883

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 .

8 REPLIES 8
Read only

Former Member
Read only

Former Member
0 Likes
850

activations of GUI status is ok , what abt Fcodes of that Status ?

have u given any Fcodes for BACK or Exit ?

Regards

Prabhu

Read only

Former Member
0 Likes
850

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

Read only

Former Member
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
850

Hi

Check the Function Codes supplied for Keys in the created GUI status.

regards,

kumar

Read only

Former Member
0 Likes
850

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

Read only

Former Member
0 Likes
850

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

Read only

Former Member
0 Likes
850

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