‎2007 Dec 20 10:13 AM
Hi,
i have created two menu bars master & transaction. In master 2 text i have created. first text is create master. while clicking on that it will move on to next screen. how can i write code for that..
pls help me.
shyja
‎2007 Dec 20 11:12 AM
Hi Shyja,
You query is how to write the code on the click of the text that you selected from the master menu.
First have you assign function code to that particular text or not.
if not then click on the SET PF-STATUS you have created. then go to the maintain status screen. there u select the master menu
just double-click the master menu textbox , it will display the text under it
first textbox contain the function code & the 2nd textbox contain the textname.
assign 4 digit function code for the corresponding text.
After that Check this code.
START-OF-SELECTION.
SET PF-STATUS 'ZMENU_NOTEPAD'.
SKIP.
*WRITE 😕 'NOTEPAD APPLICATION'.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'NEWF' .
CALL SELECTION-SCREEN 0400.
WHEN 'OPNF'.
GET PF-STATUS STATUS PROGRAM PROG EXCLUDING FCODE.
PROG = 'ZMAN_INPUT_OUTPUT'.
EDITOR-CALL FOR REPORT PROG ."DISPLAY-MODE.
SET PF-STATUS STATUS.
WHEN 'ENTE'.
WRITE 😕 'You Clicked on the entered button'.
ENDCASE.
Reward points,if useful.
Regards,
Manoj Kumar