You are on page 1of 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).

Go to the screens in Object Name.

Un comment the Module status 1000. Then double click.

Click Yes.

Then continue.

Click yes.

Uncomment the two lines.

Save & Activate.


Goto Program Other object GUI Status Enter any name (May be A
to Z).

Then click create.


Enter the suitable values in the following screen.

Then continue.

Click menu bar and enter proper values. Like following screen.

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.

Then click create.

Then click continue.


Save & Activate.
Click Application tool bar ,then enter Function Code and double click on it.
Then set function key((Optional one) & icon type.
Then the following screen will displayed.

Double click on the place or press enter. Then fill the following values.

Then continue.

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.

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 ,

Note : Menu bar, Application toolbar. We have use menu bar or application bar or push
button on the screen. Both are act as in a same manner.

You might also like