SlideShare a Scribd company logo
ABAP workshop Date: 10/28/2009 **DRAFT**
Topics Field, Data Element and Domains Flow Events 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
Data Element & Domains of Fields Domain depicts the technical attributes of a field  its data type, field length, no. of decimal places, appearance on the screen  Data Element denotes the semantic attributes  short description, label names for a field that uses this. 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. Domain Data Element Field Data Element Field
Flow Events PROCESS BEFORE OUTPUT (PBO)  Fires before a screen is displayed. Can be used to initialize fields. PROCESS AFTER INPUT (PAI)  Fires on an user action (menu/buttons/function-keys) PROCESS ON VALUE REQUEST (POV)  Fires when a set of possible values is requested (F4) PROCESS ON HELP REQUEST (POH)  Fires when general help is requested (F1)
Input Help (List of Values) 1) Fixed Value (DOMAIN LEVEL) - Hard coded list in Data Dictionary Using domain (of the Data Element) of the field 2) Check Tables (FIELD LEVEL) Specifying the Check table on the Field level 3) Assigning the "Search Help" repository object (DATA ELEMENT LEVEL) Create a "Search Help" Object [as an independent step] and then assign it to data element of the field. 4) Assigning the "Search Help" repository object (SCREEN ELEMENT LEVEL) Create a "Search Help" Object [as an independent step] and then assign it to dynpro screen element in screen painter. 5) Self defined Dropdown List Boxes (SCREEN ELEMENT LEVEL) Most flexible but requires simple SQL to populate the list.
(1) Fixed Value (Domain Level) Domain of the Data Element Data Element of a Field
(2) Check Tables (Field Level) Click on the  Foreign Keys Icon
(3 & 4) Search Help (Object) Create  ‘ Srch Helps’ Object(s) And attach to  the Data Element Or attach  directly to  the Dynpro  field LPos: Field Order SPos: Search Order
Search Help Field Order LPos: Field Order SPos: Search Order
(5) Self defined Dropdown MODULE create_dropdown_box INPUT. dynpro_utilities1=>value_help( ). ENDMODULE. …  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 … Select Listbox  or Listbox  with key
Field Help (F1 Help) 1)  Documentation  - (only one) can be attached to the  Data Element  of the Field needing help documentation. 2)  Additional Documentation  - (multiple can be attached to the  Data Element  of the Field needing help ‘additional documentation’),  Dynpro screen  field can  call  just one - the one relevant to its context using ‘ PROCESS ON HELP-REQUEST’ Flow Logic .  PROCESS ON HELP-REQUEST. (assuming 0001 and 0002 are ‘additional documentation’ help is entered/exists) FIELD ZBC400_S_HDR_CURR-CITYTO WITH '0001'. Or  FIELD ZBC400_S_HDR_CURR-CITYTO WITH '0002'. etc 3) Uses the Process on Help Request (POH) event.
Field Help - Documentation Click here in Change Mode  to modify (display mode shown) Data Element
Field Help - Additional Documentation PROCESS ON HELP-REQUEST. FIELD field1 WITH '0001'. Or  FIELD field1 WITH '0002'. Click here.  Add as many  as you wish  Data Element Call any one Additional help
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 (ZWRKSHP_010 and ZWRKSHP_010A)
Bars in the SAP GUI Menu Bar Standard Tool Bar Title Bar Application  Toolbar Related Item Function Keys F1, F2…
Menu Painter
Menu Painter GUI Status -> ZTEST1 Note: Standard tool bar is shown at the top of the Function Keys Setup! Screen 1/2 Screen 2/2
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 ZWRKSHP_010C & subsequent slides)
Double Click (all fields) When we map a/any functionality to  F2 , the same functionality is  automatically executed when we  Double Click  the object.  Example: If we set the F2 to say “BACK1” (also the Function code), the F2 as well as the Double Click get the functionality from the usual ABAP  CASE  statement logic. … . CASE ok_code. When 'BACK' or  'BACK1'. SET SCREEN 100. … .
Double Click (individual fields) The Function Code for F2 is set to CS (CURSOR-SELECTION) and TYPE to S (System Function). In PAI use the FIELD statement to call a module.  … PROCESS AFTER INPUT. FIELD Field1 MODULE  C1  AT CURSOR-SELECTION. FIELD Field2 MODULE  C2  AT CURSOR-SELECTION. Actual module defn: MODULE  C1  INPUT. CALL TRANSACTION 'SE13'. ENDMODULE.
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.
Context Menu (of field) Using the ON_CTMENU_ field of screen Elements FORM on_ctmenu_my_input2 USING l_menu TYPE REF TO cl_ctmenu. CALL METHOD l_menu->add_function EXPORTING fcode =  'MY_CONTEXT_MENU7’   text =  'My Context Menu 7 '.  … CASE  save_ok . … WHEN 'MY_CONTEXT_MENU7'. CALL TRANSACTION 'SE92'. … ENDCASE.
Title Bar THE GUI TITLE is Interface Component SET TITLEBAR title. >> Command Create Here Use/Call Here
Upcoming Topics Data Clusters File Access Authorization Checks Lock Concept and Enqueue

More Related Content

PDF
Abap slides set1
PPT
0105 abap programming_overview
PDF
Sap Abap Reports
PPTX
Reports
PDF
Step by step abap_input help or lov
DOC
Complete list of all sap abap keywords
DOCX
Project Report on SAP
DOC
Sap abap interview questions
Abap slides set1
0105 abap programming_overview
Sap Abap Reports
Reports
Step by step abap_input help or lov
Complete list of all sap abap keywords
Project Report on SAP
Sap abap interview questions

What's hot (20)

PPT
abap list viewer (alv)
PPT
Alv theory
PPTX
SAP Modularization techniques
PPT
Message, Debugging, File Transfer and Type Group
PDF
Step bystep abap_field help or documentation
PDF
PPT
oracle-reports6i
PPTX
Sap scripts
PDF
ABAP for Beginners - www.sapdocs.info
PPTX
Graphical User Interface (Gui)
PPTX
GUI programming
PPT
Graphical User Interface (GUI) - 1
PPTX
GUI Programming in JAVA (Using Netbeans) - A Review
PPTX
PPTX
Gui in java
PPT
GUI Programming In Java
DOC
Visual basic
PDF
The AWT and Swing
PPT
Swing and Graphical User Interface in Java
PPT
Visual basic 6.0
abap list viewer (alv)
Alv theory
SAP Modularization techniques
Message, Debugging, File Transfer and Type Group
Step bystep abap_field help or documentation
oracle-reports6i
Sap scripts
ABAP for Beginners - www.sapdocs.info
Graphical User Interface (Gui)
GUI programming
Graphical User Interface (GUI) - 1
GUI Programming in JAVA (Using Netbeans) - A Review
Gui in java
GUI Programming In Java
Visual basic
The AWT and Swing
Swing and Graphical User Interface in Java
Visual basic 6.0
Ad

Viewers also liked (12)

PDF
Abap slides user defined data types and data
PDF
Abap slide lockenqueuedataclustersauthchecks
PPT
Chapter 02 sap script forms
PPT
Chapter 07 debugging sap scripts
PDF
Abap slide lock Enqueue data clusters auth checks
PPT
Chapter 06 printing sap script forms
PDF
Sap script made easy
PDF
Sap sapscripts tips and tricks
PDF
Abap reports
PDF
Sap abap material
PDF
Smartforms interview questions with answers
PPT
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
Abap slides user defined data types and data
Abap slide lockenqueuedataclustersauthchecks
Chapter 02 sap script forms
Chapter 07 debugging sap scripts
Abap slide lock Enqueue data clusters auth checks
Chapter 06 printing sap script forms
Sap script made easy
Sap sapscripts tips and tricks
Abap reports
Sap abap material
Smartforms interview questions with answers
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
Ad

Similar to Abap slide class3 (20)

PPT
258lec11
PDF
Complete reference to_abap_basics
PPT
0104 abap dictionary
PPT
Gift-VT Tools Development Overview
PPT
Db2
PDF
Ingles 2do parcial
PPTX
Abap ppt2
PPTX
Abap ppt
PDF
Fepc truss tut
PPTX
Gui programming a review - mixed content
PDF
Readme-GPS Data Conversion for GIS Unit
PPT
Modularization & Catch Statement
DOC
Practicalfileofvb workshop
PPTX
Nokia Asha App Development - Part 2
PDF
Fepc 2 d_tut
PPT
Chapter 2
PDF
Step bystep abap_changinga_singlerecord
PDF
Step bystep abap_changinga_singlerecord
PDF
Lsmw for master data upload simple explanation
PPT
Lecture10 abap on line
258lec11
Complete reference to_abap_basics
0104 abap dictionary
Gift-VT Tools Development Overview
Db2
Ingles 2do parcial
Abap ppt2
Abap ppt
Fepc truss tut
Gui programming a review - mixed content
Readme-GPS Data Conversion for GIS Unit
Modularization & Catch Statement
Practicalfileofvb workshop
Nokia Asha App Development - Part 2
Fepc 2 d_tut
Chapter 2
Step bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecord
Lsmw for master data upload simple explanation
Lecture10 abap on line

More from Milind Patil (20)

PDF
Abap slide class4 unicode-plusfiles
PDF
Step bystep abap_fieldhelpordocumentation
PDF
Abap slide exceptionshandling
PPT
Lecture16 abap on line
PPT
Lecture14 abap on line
PPT
Lecture13 abap on line
PPT
Lecture12 abap on line
PPT
Lecture11 abap on line
PPT
Lecture09 abap on line
PPT
Lecture08 abap on line
PPT
Lecture07 abap on line
PPT
Lecture06 abap on line
PPT
Lecture05 abap on line
PPT
Lecture04 abap on line
PPT
Lecture03 abap on line
PPT
Lecture02 abap on line
PPT
Lecture01 abap on line
PPT
Lecture15 abap on line
PPTX
Abap course chapter 6 specialities for erp software
PPTX
Abap course chapter 5 dynamic programs
Abap slide class4 unicode-plusfiles
Step bystep abap_fieldhelpordocumentation
Abap slide exceptionshandling
Lecture16 abap on line
Lecture14 abap on line
Lecture13 abap on line
Lecture12 abap on line
Lecture11 abap on line
Lecture09 abap on line
Lecture08 abap on line
Lecture07 abap on line
Lecture06 abap on line
Lecture05 abap on line
Lecture04 abap on line
Lecture03 abap on line
Lecture02 abap on line
Lecture01 abap on line
Lecture15 abap on line
Abap course chapter 6 specialities for erp software
Abap course chapter 5 dynamic programs

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
MYSQL Presentation for SQL database connectivity
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation theory and applications.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Machine learning based COVID-19 study performance prediction
Chapter 3 Spatial Domain Image Processing.pdf
MYSQL Presentation for SQL database connectivity
The AUB Centre for AI in Media Proposal.docx
Dropbox Q2 2025 Financial Results & Investor Presentation
Building Integrated photovoltaic BIPV_UPV.pdf
cuic standard and advanced reporting.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Digital-Transformation-Roadmap-for-Companies.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation theory and applications.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf

Abap slide class3

  • 1. ABAP workshop Date: 10/28/2009 **DRAFT**
  • 2. Topics Field, Data Element and Domains Flow Events 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
  • 3. Data Element & Domains of Fields Domain depicts the technical attributes of a field its data type, field length, no. of decimal places, appearance on the screen Data Element denotes the semantic attributes short description, label names for a field that uses this. 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. Domain Data Element Field Data Element Field
  • 4. Flow Events PROCESS BEFORE OUTPUT (PBO) Fires before a screen is displayed. Can be used to initialize fields. PROCESS AFTER INPUT (PAI) Fires on an user action (menu/buttons/function-keys) PROCESS ON VALUE REQUEST (POV) Fires when a set of possible values is requested (F4) PROCESS ON HELP REQUEST (POH) Fires when general help is requested (F1)
  • 5. Input Help (List of Values) 1) Fixed Value (DOMAIN LEVEL) - Hard coded list in Data Dictionary Using domain (of the Data Element) of the field 2) Check Tables (FIELD LEVEL) Specifying the Check table on the Field level 3) Assigning the "Search Help" repository object (DATA ELEMENT LEVEL) Create a "Search Help" Object [as an independent step] and then assign it to data element of the field. 4) Assigning the "Search Help" repository object (SCREEN ELEMENT LEVEL) Create a "Search Help" Object [as an independent step] and then assign it to dynpro screen element in screen painter. 5) Self defined Dropdown List Boxes (SCREEN ELEMENT LEVEL) Most flexible but requires simple SQL to populate the list.
  • 6. (1) Fixed Value (Domain Level) Domain of the Data Element Data Element of a Field
  • 7. (2) Check Tables (Field Level) Click on the Foreign Keys Icon
  • 8. (3 & 4) Search Help (Object) Create ‘ Srch Helps’ Object(s) And attach to the Data Element Or attach directly to the Dynpro field LPos: Field Order SPos: Search Order
  • 9. Search Help Field Order LPos: Field Order SPos: Search Order
  • 10. (5) Self defined Dropdown MODULE create_dropdown_box INPUT. dynpro_utilities1=>value_help( ). ENDMODULE. … 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 … Select Listbox or Listbox with key
  • 11. Field Help (F1 Help) 1) Documentation - (only one) can be attached to the Data Element of the Field needing help documentation. 2) Additional Documentation - (multiple can be attached to the Data Element of the Field needing help ‘additional documentation’), Dynpro screen field can call just one - the one relevant to its context using ‘ PROCESS ON HELP-REQUEST’ Flow Logic . PROCESS ON HELP-REQUEST. (assuming 0001 and 0002 are ‘additional documentation’ help is entered/exists) FIELD ZBC400_S_HDR_CURR-CITYTO WITH '0001'. Or FIELD ZBC400_S_HDR_CURR-CITYTO WITH '0002'. etc 3) Uses the Process on Help Request (POH) event.
  • 12. Field Help - Documentation Click here in Change Mode to modify (display mode shown) Data Element
  • 13. Field Help - Additional Documentation PROCESS ON HELP-REQUEST. FIELD field1 WITH '0001'. Or FIELD field1 WITH '0002'. Click here. Add as many as you wish Data Element Call any one Additional help
  • 14. 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 (ZWRKSHP_010 and ZWRKSHP_010A)
  • 15. Bars in the SAP GUI Menu Bar Standard Tool Bar Title Bar Application Toolbar Related Item Function Keys F1, F2…
  • 17. Menu Painter GUI Status -> ZTEST1 Note: Standard tool bar is shown at the top of the Function Keys Setup! Screen 1/2 Screen 2/2
  • 18. 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 ZWRKSHP_010C & subsequent slides)
  • 19. Double Click (all fields) When we map a/any functionality to F2 , the same functionality is automatically executed when we Double Click the object. Example: If we set the F2 to say “BACK1” (also the Function code), the F2 as well as the Double Click get the functionality from the usual ABAP CASE statement logic. … . CASE ok_code. When 'BACK' or 'BACK1'. SET SCREEN 100. … .
  • 20. Double Click (individual fields) The Function Code for F2 is set to CS (CURSOR-SELECTION) and TYPE to S (System Function). In PAI use the FIELD statement to call a module. … PROCESS AFTER INPUT. FIELD Field1 MODULE C1 AT CURSOR-SELECTION. FIELD Field2 MODULE C2 AT CURSOR-SELECTION. Actual module defn: MODULE C1 INPUT. CALL TRANSACTION 'SE13'. ENDMODULE.
  • 21. 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.
  • 22. Context Menu (of field) Using the ON_CTMENU_ field of screen Elements FORM on_ctmenu_my_input2 USING l_menu TYPE REF TO cl_ctmenu. CALL METHOD l_menu->add_function EXPORTING fcode = 'MY_CONTEXT_MENU7’ text = 'My Context Menu 7 '. … CASE save_ok . … WHEN 'MY_CONTEXT_MENU7'. CALL TRANSACTION 'SE92'. … ENDCASE.
  • 23. Title Bar THE GUI TITLE is Interface Component SET TITLEBAR title. >> Command Create Here Use/Call Here
  • 24. Upcoming Topics Data Clusters File Access Authorization Checks Lock Concept and Enqueue