‎2012 Feb 15 2:08 PM
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
‎2012 Feb 15 3:11 PM
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.
‎2012 Feb 15 3:11 PM
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.
‎2012 Feb 15 3:14 PM
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
‎2012 Feb 15 3:53 PM
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 300If 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
‎2012 Feb 15 4:06 PM
Hi,
Check..may be your gui status is not active..
Regards,
Harsh Bansal