2007 Sep 20 10:29 AM
Hi all,
I want to use standard menu in my Module pool program. Pleas tell me the way for that?
I tried in SE41 by copying status from SAPLKKBL, menu is should but <b>buttons are not working</b>.
Pleas help me.
<b>Have ur points.</b>
Regards,
2007 Sep 20 10:38 AM
I assume u have copied the PF STATUS and used SET PF-STATUS in the PBO of the screen.
Now in the menu painter - u can view the Function Codes attached to each and every ICON/Button. In the PAI of the screen - u can handle the User commands.
data : fcode TYPE SY-UCOMM.
CASE FCODE.
WHEN 'BACK'.
.....
WHEN 'CANC'.
....
ENDCASE.
In the Screen painter attach this variable FCODE to the OK code ( Go to Element list tab).
This will solve ur problem.
2007 Sep 20 10:38 AM
I assume u have copied the PF STATUS and used SET PF-STATUS in the PBO of the screen.
Now in the menu painter - u can view the Function Codes attached to each and every ICON/Button. In the PAI of the screen - u can handle the User commands.
data : fcode TYPE SY-UCOMM.
CASE FCODE.
WHEN 'BACK'.
.....
WHEN 'CANC'.
....
ENDCASE.
In the Screen painter attach this variable FCODE to the OK code ( Go to Element list tab).
This will solve ur problem.