Professional Documents
Culture Documents
Dec-2008
Objectives
The participants will be able to:
Create a GUI status for online programs.
Set the GUI status in the PBO event.
Check the function codes using the user-defined field OKCODE.
Dec-2008
Overview
Exit
Edit
Loop
Academy Awards
Year
1994
Category
PIC
Menu Painter
***Important Questions***
Exit
Update
Academy Awards
Year
1994
Category
PIC
Winner
Forrest Gump
Notes
Dec-2008
Menu Painter
Menu Painter
Function Key
Standard
Application
Assignments
Toolbar
Toolbar
Dec-2008
Menu bar
Screen 9001
SECOND.
SET TITLEBAR TWO.
ENDIF.
ENDMODULE.
SY-DYNNR =
Dec-2008
Current
screen
number
Screen Type
Normal
Normal Screen
Screen Type
Dialog Box
Screen Type
Normal
Normal Screen
Screen Type
Dialog Box
Dec-2008
Dec-2008
Exit
Edit
Loop
Academy Awards
Year
Category
CLEAR OKCODE.
ENDMODULE.
1994
PIC
10
ENDMODULE.
Dec-2008
Function Types
Type
:Normal
Application
Function
11
Type E
: Exit
Command
Type S
: System
Function
Type P
: Local GUI
Function
Dec-2008
Type T
:Start
Transaction
Type
: Normal
Application
Function
12
Type E
: Exit
Command
Type S
: System
Function
Type P
: Local GUI
Function
Dec-2008
Type T
:Start
Transaction
Demonstration
Creation of an online program to display a academy awards screen.
Setting up the GUI status and title of the above screen.
Using OKCODE in the program to process the screen.
13
Dec-2008
Practice
Creation of an online program to display a academy awards screen.
Setting up the GUI status and title of the above screen.
Using OKCODE in the program to process the screen.
14
Dec-2008
Summary
A programs GUI is created in the Menu Painter.
Each program has a single GUI that contains the defined function codes.
A GUI is made up of one or many statuses. A GUI status can be one of three
types:
Normal Screen
Dialog Box
Context Menu
Another aspect of a GUI is the title bar. You can define any number of title bars
for a particular GUI.
15
Dec-2008
Summary (Contd.)
To determine what function code the user invoked during the execution of an
online program, you can check two fields: OK Code and SY-UCOMM. Both of
these fields are updated with the function code invoked by the user. However,
under certain circumstances, SY-UCOMM is not updated. For this
reason, in online programming you should always check the OK Code.
Function codes of different types can be created:
- Program function,
E - Exit command,
S - System function,
P - Local GUI function,
T - Start transaction.
16
Dec-2008
Questions
What is the use of the Menu Painter ?
What is a Function Code ?
What are the different types of function codes that can be created ?
17
Dec-2008