Module Pool Best
Transcript of Module Pool Best
-
8/6/2019 Module Pool Best
1/14
Menu painter:
Used to create a menu in a screen design.
SE 80 -Design a dialog program. (yt_dialog_program).
Go to Edit object.(Workbench -> Edit object).
Enter pgm name.(yt_dialog_program).
-
8/6/2019 Module Pool Best
2/14
Go to the screens in Object Name.
-
8/6/2019 Module Pool Best
3/14
Un comment the Module status 1000. Then double click.
Click Yes.
Then continue.
Click yes.
-
8/6/2019 Module Pool Best
4/14
Uncomment the two lines.
-
8/6/2019 Module Pool Best
5/14
Save & Activate.
Goto Program Other object GUI Status Enter any name (May be A
to Z).
-
8/6/2019 Module Pool Best
6/14
Then click create.
Enter the suitable values in the following screen.
Then continue.
-
8/6/2019 Module Pool Best
7/14
Click menu bar and enter proper values. Like following screen.
-
8/6/2019 Module Pool Best
8/14
-
8/6/2019 Module Pool Best
9/14
we have to set all possible values of push button in screen designing.
In above screen Code refers function code of Push Button. Text refers text
of Push Button.
Save & Activate.
Go to other object then choose GUI Title ie INDU GUI TITLE.
-
8/6/2019 Module Pool Best
10/14
-
8/6/2019 Module Pool Best
11/14
Double click on the place or press enter. Then fill the following values.
Then continue.
-
8/6/2019 Module Pool Best
12/14
After finish the setting of application toolbar set GUI STATUS & GUI TITLE
in the program in flow logic.
Then the program is.
*&---------------------------------------------------------------------*
*& Report YT_DIALOG_PROGRAM*&*&---------------------------------------------------------------------**&*&*&---------------------------------------------------------------------*
REPORT YT_DIALOG_PROGRAM.tables : ytemp_per.data : okcode like sy-ucomm,
fcode like okcode.*data : it like ytemp_per occurs 0 with header line.
*&---------------------------------------------------------------------**& Module USER_COMMAND_1000 INPUT
*&---------------------------------------------------------------------** text*----------------------------------------------------------------------*MODULE USER_COMMAND_1000 INPUT.fcode = okcode.clear okcode.
case fcode.when 'IN'.insert YTEMP_PER.
-
8/6/2019 Module Pool Best
13/14
when 'UP'.update YTEMP_PER .when 'DEL'.delete YTEMP_PER .when 'CL'.CLEAR YTEMP_PER-ID .CLEAR YTEMP_PER-NAME .
CLEAR YTEMP_PER-ADDRESS.when 'MO'.Call Screen 2000.when 'X'.leave program.
endcase.
ENDMODULE. " USER_COMMA*&---------------------------------------------------------------------**& Module USER_COMMAND_2000 INPUT*&---------------------------------------------------------------------** text*----------------------------------------------------------------------*MODULE USER_COMMAND_2000 INPUT.
fcode = okcode.clear okcode.
case fcode.when 'EX'.leave the program.
ENDCASE.
ENDMODULE. " USER_COMMAND_2000 INPUT*&---------------------------------------------------------------------**& Module STATUS_1000 OUTPUT
*&---------------------------------------------------------------------** text*----------------------------------------------------------------------*MODULE STATUS_1000 OUTPUT.SET PF-STATUS 'INDU'.SET TITLEBAR 'GUI_TITLE_CODE'.
ENDMODULE. " STATUS_1000 OUTPUT
Save & Activate.
Go to the screen no 1000. that screen is ,
-
8/6/2019 Module Pool Best
14/14
Note : Menu bar, Application toolbar. We have use menu bar or application bar or pushbutton on the screen. Both are act as in a same manner.