Академический Документы
Профессиональный Документы
Культура Документы
Topics
Program Types Dialog Program and DYNPROs Program Flow and Flow Events DYNPRO data elements Vs. ABAP data elements FIELD Command and Conditional Module Calls CHAIN Command TAB controls Field, Data Element and Domains Input Help (List of Values) demo/coding Field Help (F1 Help) demo/coding Understanding Menu Bar, Application Toolbar and Function keys Menu Control and Function Keys Context Menu Title Bar Demo Hands-on Practice
2
Program Types
Program type First statement in program (After the include statements are resolved) REPORT (or PROGRAM) CLASS-POOL FUNCTION-POOL Processing blocks supported Can this have or support its own DYNPROS Yes No Yes Executable (1) Class pool (K) Function group (or function pool) (F) Interface pool (J) Module pool (M) All - except function modules Methods only All except event blocks for reporting events None Event block LOAD-OFPROGRAM, subroutines, methods Event block LOAD-OFPROGRAM, subroutines, methods None All except event blocks for reporting events
INTERFACE-POOL PROGRAM
No Yes
PROGRAM
No
TYPE-POOL N/A
No No 3
Database Layer
Flow Events
PROCESS BEFORE OUTPUT (PBO)
Fires before a screen is displayed. Can be used to initialize fields
Program Flow
Dialog Processor
Dialog processor controls the display of the screen and execution of the ABAP program. The Dialog processor processes screen after the screen, thereby triggering the appropriate flow events of each screen After each screen is displayed, it waits for the appropriate user input and then executes the flow logic The controls passes from screen flow logic to ABAP code and back along with the values of the program elements
9
10
11
12
Function Definition
13
Dynpro data elements Vs. ABAP data elements and Data Transport
14
CHAIN Command
CHAIN FIELD: Name1, Name2 MODULE ChangesDetectModule on CHAIN-REQUEST. "Value changed? ENDCHAIN.
16
TAB controls
1) Scrolling at application server
Only one subscreen area with two subscreens. (see program 5)
17
Data Elements are directly attached to the Fields Data Element has an underlying Domain (optional) Domains are not directly attached to the fields A single Domain can be under many Data Elements. Within Domain - value range of a field can be described. Whereas within the Data Element parameter id and search help for a particular field can be assigned.
18
19
20
21
23
DATA city_list TYPE STANDARD TABLE OF city_line. SELECT distinct ZCITY ZCITYDESCR from ZCITY_TBL into corresponding fields of table city_list where ZCITY like '%O%' order by ZCITY. CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'ZCITY' value_org = 'S' TABLES value_tab = city_list EXCEPTIONS
24
Data Element
26
Click here. Add as many as you wish Call any one Additional help PROCESS ON HELP-REQUEST. FIELD field1 WITH '0001'. Or FIELD field1 WITH '0002'.
27
Menu Control
Create GUI Status object (Interface Component) Command: SET PF-STATUS 'ZTEST1'. Each screen can have same or different menu (set this in PROCESS BEFORE OUTPUT) Various menus are: Menu Bar, Standard Tool Bar, Application Toolbar Function Keys are generally related to Menu Context Menu is inherited from Function Keys,so is same for all fields on screen by default, but Context Menu each field can be made different (program 10 and 10A)
28
Menu Bar Standard Tool Bar Title Bar Application Toolbar Related Item Function Keys F1, F2
29
Menu Painter
30
Menu Painter
GUI Status -> ZTEST1 Note: Standard tool bar is shown at the top of the Function Keys Setup!
31
Function Keys
The following Function Keys are reserved and are handled at run time
F1 (field help), F4 (Input Help) F10 (positions the cursor in the (top) menu bar)
Double Click automatically gets the functionality of whatever F2 is setup to do applies to all fields by default. (see subsequent slides) F2 or Double Click can be setup so that different logic can be mapped to individual fields (see program 10C & subsequent slides)
32
33
Context Menu
The Context Menu for a SCREEN is automatically defaulted from the function keys MENU setup done using menu designer i.e., GUI STATUS The Context Menu for individual fields is done using the ON_CTMENU_ field as explained in the subsequent slide.
35
Title Bar
THE GUI TITLE is Interface Component SET TITLEBAR title. >> Command
Create Here Use/Call Here
37
Upcoming Topics
Character Sets/Unicode Format [UTF-8,etc] Data Clusters File Access Authorization Checks Lock Concept and Enqueue
38