110 likes | 225 Views
ERP I1, Session 7. dynpro. SAP GUI. SAP has many GUI solutions: Lists (ALV) dynpro ( Dyn amic Pro gram) Business Server Pages Web dynpro More?. dynpro. A dynpro consists of Numbered screens A navigation structure between the screens Data to display on the screens
E N D
ERP I1, Session 7 dynpro
SAP GUI • SAP has many GUI solutions: • Lists (ALV) • dynpro (Dynamic Program) • Business Server Pages • Web dynpro • More?
dynpro • A dynpro consists of • Numbered screens • A navigation structure between the screens • Data to display on the screens • Functionality for the screens • Menus, toolbars, and titles for the screens • More... • All this is grouped in a function group
Screen navigation structure • All screens are linked to a 'next' screen. • Example: Registering on a homepage 100 200 300 400 Enter login information Enter personal information Fill stupid questionnaire Confirm 210 Enter extra information
Screen navigation • Navigation to next screen when • Button clicked • Menu item selected • keyboard shortcut pressed • Checkbox toggled (sometimes) • Radio button selected (sometimes) • The default next screen is the screen itself.
More on navigation • Navigation to screen 0 terminates dynpro • Navigation happens after some code is run • Override navigation: • SET SCREEN <screen-no> • Override and navigate now: • LEAVE TO SCREEN <screen-no> • Navigate and then return to here: • CALL SCREEN <screen-no>
PBO & PAI configuration PBO PROCESS BEFORE OUTPUT. MODULEread_data. MODULE set_status. PROCESS AFTER INPUT. MODULE exit_admin AT EXIT-COMMAND. MODULE process_action. PAI
Function codes • A function code is the name of the action that caused navigation • Function codes are written to OK_CODE. • OK_CODE can be renamed, but it's the conventional name. • You can react to the action in the PAI section. • OK_CODE has type sy-ucomm. • OK_CODE is a field (see next slide)
Fields & Dictionary structures • Fields • Data objects (variables) • Public in the entire function group • Declared like normal data objects • Dictionary structures • Fields with structured type • Has same name as type • Used to represent data on screens • Declared with keyword 'TABLES'
Recap • A dynamic program is a number of screens with a navigation structure • Each screen defines what happens before output (PBO) and after input (PAI) • The action that caused the navigation is saved in OK_CODE • Data for the entire dynpro is stored in fields and/or dictionary structures