Working with Menu Painter
For theoretical concepts on Menu Painter, please visit SAP.help.com
Create a program in SE38 T- Code.
Enter the Title of the Program And Select the Type as
Executable Program.
And click on save. Save it in a Relevant Package.
Go to T-code SE41
Enter the Program name and Status name.
Click on create
Enter the Short text for Status.
Click on Menu Bar.
Specify a Menu Name file
Double click on File.
Enter the Code and text Values.
Click on save, check and Activate.
Press Execute or F8.
Click on Continue and Enter.
Created Menu is displayed here.
To create a Title,
Click on Title List.
Click on create.
Enter the Title Code and Title. Click on continue.
Click on enter and Click on Test.
Enter the created Title Code in Title, Click on
execute.
Click on Continue.
Created Title Displayed.
Click on Save.
*&---------------------------------------------------------------------*
*& Report ZMENU_PAINTER
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZMENU_PAINTER.
TABLES: MARA.
DATA: MATNR TYPE MARA-MATNR,
ERSDA TYPE MARA-ERSDA,
ERNAM TYPE MARA-ERNAM,
DISPLAY TYPE C,
SAVE TYPE C,
DELETE TYPE C,
CLEAR TYPE C,
EXIT TYPE C,
OK_CODE LIKE SY-UCOMM.
CALL SCREEN 101.
*&---------------------------------------------------------------------*
*& Module STATUS_0101 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE STATUS_0101 OUTPUT.
SET PF-STATUS 'ZMENU'.
SET TITLEBAR 'ZMENU_PAINTER'.
CASE SY-UCOMM.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'DISPLAY'.
SELECT SINGLE ERSDA ERNAM FROM MARA INTO (MARA-ERSDA, MARA-ERNAM) WHERE MATNR = MARA-MATNR.
WHEN 'CLEAR'.
CLEAR MARA.
ENDCASE.
ENDMODULE. " STATUS_0101 OUTPUT
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_0101 INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0101 INPUT.
ENDMODULE. " USER_COMMAND_0101 INPUT
Click on middle Icon .
Enter MARA in the Table/Fieldname Text Box Then click
on Get From Dictionary.
Select the require fields and click on
continue.
Insert these boxes on the screen.
You can view like this after placing the boxes.
Create require Push buttons from toolbox.
Create require check box from toolbox.
Give the required Name , Text and Function Code Name .
Click on Save,
Check and Activate.
Output:
Enter the Material number and Press Display.
Click on Display.
Values are displayed as shown below.
Similarly You Can View Clear And Exit.
Clear
– It will clear all the displayed contents.
Exit
- It will return to code..
We can Use the same operation in Function Keys.
- F5 Clear
- F6 Display
- F7 Exit.
Enter the Material and Press F6 .
The same functionality F5 to Clear and F7 to Exit.
0 comments:
Post a Comment