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 problem

Former Member
0 Likes
1,303

Hi

1. I am working on a GUI status which is working fine when i execute independently from SE41 ...but when i assign it as

SET PF-status in PBO of a program it does not take effect ....what may be the reason

2. I also have create a Menu Item and inside that I have put the f-code as BACK ....so my question is when i click on that Item...will the system literally go back by 1 screen....or will the control go to the USER-COMMAND module where i can control the processing using sy-ucomm

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
873

Hi Hema,

1. When you want to set the pf status, donot create it independently through SE41.

In program write the 'SET PF-STATUS 'ZABC' in PBO. Double click on the 'ZABC' and create the status.

2. for all function codes, control comes to USER-COMMAND in PAI only. we have to write the logic in case statement for all the function codes defined in GUI status.

CASE G_OK_CODE.

WHEN 'BACK'.

LEAVE PROGRAM.

ENDCASE.

Thanks,

Chitra.

4 REPLIES 4
Read only

Former Member
0 Likes
874

Hi Hema,

1. When you want to set the pf status, donot create it independently through SE41.

In program write the 'SET PF-STATUS 'ZABC' in PBO. Double click on the 'ZABC' and create the status.

2. for all function codes, control comes to USER-COMMAND in PAI only. we have to write the logic in case statement for all the function codes defined in GUI status.

CASE G_OK_CODE.

WHEN 'BACK'.

LEAVE PROGRAM.

ENDCASE.

Thanks,

Chitra.

Read only

0 Likes
873

hi

i also tried creating from the program itself....that also is not working...however if i individually execute the pf status it is working

Read only

0 Likes
873

Hi,

If your 1st screen 100 you need to write this code in 2nd screen ( say 200) PAI and to navigate screen 100.

 CASE SY-UCOMM
         WHEN 'EXIT'.
           LEAVE PROGRAM.
        WHEN 'BACK'.
           LEAVE TO SCREEN 100. " Where 100 is your 1st screen.
          ENDCASE.

you can use this also :-


SET SCREEN 300.
LEAVE SCREEN." this will move to screen 300

If you want to leave screen then try this please

 SET SCREEN 0. 
 LEAVE SCREEN.

.

Check this link

<< Reference to blocked site removed >>

Edited by: Rob Burbank on Feb 15, 2012 11:53 AM

Read only

Harsh_Bansal
Contributor
0 Likes
873

Hi,

Check..may be your gui status is not active..

Regards,

Harsh Bansal