Professional Documents
Culture Documents
Click Yes.
Then continue.
Click yes.
Then continue.
Click menu bar and enter proper values. Like following screen.
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.
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.