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

GUI Status not working (table control)

Former Member
0 Likes
1,409

Hello Friends,

i have created one subscreen (with Table control). This subscreen shows a table. This subscreen is called with a transaktion. Now the problem enters when i want to get out of the screen . i can not! the exit buitton does not work, and i can not move or get out even my commands do not obey!

Does it has to do with my Gui_Satus?

How do i use it appropiately.

Best Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,271

hello ,

i think you havent set Function Type = 'E' for that Exit/Cancel Buttions.

in PAI

module exit at exit-command.

module exit.

case sy-ucomm.

when 'EXIT'.

set screen 0.

leave screen.

endmodule.

regards

Prabhu

Hello Friends,

i have created one subscreen (with Table control). This subscreen shows a table. This subscreen is called with a transaktion. Now the problem enters when i want to get out of the screen . i can not! the exit buitton does not work, and i can not move or get out even my commands do not obey!

Does it has to do with my Gui_Satus?

How do i use it appropiately.

Best Regards

8 REPLIES 8
Read only

Danish
Explorer
0 Likes
1,271

Hi,

Have you written the code in PAI when you press exit button?

Danish

Read only

Former Member
0 Likes
1,272

hello ,

i think you havent set Function Type = 'E' for that Exit/Cancel Buttions.

in PAI

module exit at exit-command.

module exit.

case sy-ucomm.

when 'EXIT'.

set screen 0.

leave screen.

endmodule.

regards

Prabhu

Read only

0 Likes
1,271

Hi,

You have to give function code for the exit in GUI. for example : EXIT

In PAI.

Write as follows:

case sy-ucomm.

when 'EXIT'.

Leave screen.

endcase.

Read only

former_member282968
Contributor
0 Likes
1,271

HI...

1.Please check whether you have given the OK_CODE in the main screen...

2.In the PAI you need to call the right function code for EXIT followed by leave program or leave to screen 0.

3.You can also use module <abc> at exit-command by giving 'E' in the function type so that this module will be called whenever the exit event occurs.

best regards,

Naveen

Read only

Former Member
0 Likes
1,271

what can i do!!1

Read only

0 Likes
1,271

Hi,

debug the program after pressing the back/exit.cancel button check the control goes to the pai and what is the okcode ?

Read only

0 Likes
1,271

let me see

Edited by: Alfito on Sep 28, 2010 9:24 AM

Read only

0 Likes
1,271

i did not have this in PAI

module USER_COMMAND_1001 input.

case ok_code.

when 'OK'.

when 'BACK'.

leave to screen 0.

when 'LEAV'.

set screen 0. leave screen.

when 'EXIT'.

leave to screen 0.

endcase.

endmodule.

Thanks