SlideShare a Scribd company logo
1 of 25
Enterprise Wide Information Systems



ABAP/ 4 Programming Language
Objectives

∗ Upon completion of this topic, you should be
  able to:
 ∗ Define the general terms associated with the
   ABAP/4 Workbench.
 ∗ Work with the ABAP/4 Object Browser.
 ∗ Create a program object.
 ∗ Access tables to generate a report.
Topics


∗ ABAP/4 Development Workbench
∗ ABAP/4 Data Dictionary
∗ ABAP/4 Repository Information
ABAP/4 Development Workbench
          Architecture
∗ The Development Workbench provides access to SAP’s
  development tools.


                           Reporting
                 ABAP/4                 Screen
                  Editor                Painter

            ABAP/4            R/3             Menu
           Dictionary      Repository        Painter
              Data                         Function
             Modeller                      Modules
ABAP/4 Development Workbench
         Architecture


∗ All programs are stored in the R/3 Repository.
  ∗ A program is simply an object.
∗ All definitions are kept in the data dictionary.
  ∗ e.g. variable descriptions and parameters of fields.
∗ Double-clicking will navigate you to wherever the
  object is stored.
∗ Remote call functions let you access other systems.
Reporting and Dialog Programming


∗ In reporting you use the ABAP/4 Open SQL to read data
  from the R/3 database
  ∗ A report consists of a selection screen on which you
     define the dataset you wish to display, and a list which
     displays the data itself.
∗ In dialog programming you use the screen painter to
  create screens and program the sequence in which they
  appear.
Reporting and Dialog Programming


    Selection    List          Screen   Screen
     Screen     Screen         01000     0200



                   ABAP/4 Open SQL
ABAP/4 Program Objects


∗ You can use the ABAP/4 Development Workbench to
  create ABAP/4 programs.
∗ You can call objects from the object list generated
  from the Object Browser’s initial screen.
ABAP/4 Program Objects

Development Class
Development Class
             Dev. Class object type
             Dictionary objects
             Programs
             Function groups
             Includes
             Transactions
             Logical databases
             etc.
ABAP/4 Programs
∗ All ABAP/4 programs (objects) are made up of:
  ∗ Source code
  ∗ Text elements
  ∗ Attributes
    ABAP/4 Program
    Attributes
     Attributes

    Source Code
     Source Code      Text Elements
                       Text Elements
                        ••Titles
                           Titles
                        ••Headers
                           Headers
                        ••Text symbols
                           Text symbols
Creating Programs


∗ Begin by first specifying a development class.
  ∗ Development classes are categories of SAP objects (e.g.
    program object).
∗ Customer-specific program names begin with Y or Z.
∗ If you are creating a test object which you do not wish
  to be transported, choose Local Object.
  ∗ The development class is then set to $TMP
    automatically.
The ABAP/4 Editor


∗ The ABAP/4 Editor can run in three different modes:
   1. Command mode
   2. PC mode with line numbering
   3. PC mode without line numbering
∗ You can switch between editor modes by choosing
  Settings → Editor mode
   ∗ It is recommended that you do your work in PC mode
     with line numbering
ABAP/4 Syntax

∗ An ABAP/4 program consists of individual statements
   ∗ Each statement must end with a period.
   ∗ The first word of a statement is known as the key word.
   ∗ Words are separated from each other by at least one blank.
   ∗ Statements can be indented.
   ∗ Statements can extend over several lines.
∗ You can concatenate several consecutive statements with an
  identical key word (e.g. WRITE: ).
   ∗ Follow the key word with a colon.
   ∗ Separate each concatenated part with a comma.
   ∗ End the lines of the concatenated statements with a period.
ABAP/4 Syntax                   (cont.)




∗ You can insert comments into a program in two ways:
   1. An asterisk (*) in column 1 flags the whole line as a
      comment.
   2. A quotation mark (“) within a line flags the remainder
      of the line as a comment.
Tables and the Select Statement


∗ The Tables: <name> statement declares an ABAP/4
  Dictionary table in the ABAP/4 program and allocates a
  table work area with the structure of <name>.
∗ The Select statement reads the table <name> line by line
  and places each line read in the table work area.
  ∗ Note: Double-clicking on the Tables: statement in the
    editor will display how the table is defined in the data
    dictionary.
Tables and the Select Statement


 Report ZDEMO1.
  Report ZDEMO1.
 TABLES: SBOOK.
  TABLES: SBOOK.                               Table SBOOK
 SELECT ** FROM SBOOK
  SELECT FROM SBOOK
          WHERE CARRID = ‘LH’.
           WHERE CARRID = ‘LH’.
 ENDSELECT.
  ENDSELECT.
 WRITE :: CARRID, FLTDATE.
  WRITE CARRID, FLTDATE.

                Read table

                             Table work area
Accessing Tables                   (In summary…)
                       DDIC      Definition in the Data
                                 Dictionary
                      SBOOK
                         F1
   SBOOK                 F2
F1 F2 F3      Fn         F3

                           Fn

   Database                     Program
                                Report ZDEMO1.
                                 Report ZDEMO1.
                                TABLES: SBOOK.
                                 TABLES: SBOOK.
                                SELECT ** FROM SBOOK
                                 SELECT    FROM SBOOK
 Report                                   WHERE CARRID = ‘LH’.
                                           WHERE CARRID = ‘LH’.
                                ENDSELECT.
                                 ENDSELECT.
                                WRITE :: CARRID, FLTDATE.
                                 WRITE CARRID, FLTDATE.


                   SFLIGHT table work area
                    F1 F2 F3          Fn
Topics


∗ ABAP/4 Development Workbench
∗ ABAP/4 Data Dictionary
∗ ABAP/4 Repository Information
Basic Dictionary Objects


∗ Tables - collection of records of data in fields.
∗ Data elements - contain the semantic definition (e.g.
  short description) of what is contained w/in a field.
∗ Domains - describe the technical attributes of the table’s
  fields (e.g. field type, length, value range, etc.).
Basic Dictionary Objects


   Table

 Table field




               Data element
       uses

                              Domain
                    uses
Structures and Aggregated Objects
             (Views)

∗ Besides defining tables stored in the database, you can also define
  the structure of data which occurs when performing calculations in
  programs, or when passing data between programs.
  ∗ Structures are defined and activated in the ABAP/4 Dictionary.
  ∗ While data can be permanently stored in the database, data in
     structures exists only during the runtime of a program.
∗ Aggregated objects are objects which come from several different
  tables.
  ∗ Views are application-specific views of different ABAP/4 Dictionary
     tables.
  ∗ Views allow you to gather information from fields of different tables
     and present it to users in the form they require.
ABAP/4 Dictionary                   (In summary)




∗ The ABAP/4 Dictionary is the central facility in the
  system where you can create and maintain data
  declarations, tables, structures and aggregated
  objects.
∗ Since it is integrated into the ABAP/4 Development
  Workbench as an active component, any change
  made in the ABAP/4 Dictionary takes immediate
  effect in programs affected.
Topics


∗ ABAP/4 Development Workbench
∗ ABAP/4 Data Dictionary
∗ ABAP/4 Repository Information
ABAP/4 Repository Information
∗ The ABAP/4 Repository Information System allows you
  to obtain information about objects (tables, fields,
  domains, etc.) in the ABAP/4 Repository.
∗ You can find anything that is used in programs by using
  the Data Repository.                                                      ?
 ?        Search by attributes                       Where-used lists

       Display all objects of type X            Display all objects of type Y
       with attribute Y                               which use attribute X


                                         Data
       Information about               Repository
           tables and
                                                        Modified objects
          relationships
       Display all table fields                         Display all objects of
       with check table X                      type X which were changed by

?
                                                     user Y on date DDMMYY
                                                                                 ?
ABAP/4 Repository                 (In summary)




∗ The ABAP/4 Repository Information System allows
  search for ABAP/4 Development Workbench objects
  by specifying required attributes.
  From the ABAP/4 Development Workbench:
  Overview → Repository Infosy.

More Related Content

What's hot

Symbol table in compiler Design
Symbol table in compiler DesignSymbol table in compiler Design
Symbol table in compiler DesignKuppusamy P
 
0105 abap programming_overview
0105 abap programming_overview0105 abap programming_overview
0105 abap programming_overviewvkyecc1
 
Symbol table design (Compiler Construction)
Symbol table design (Compiler Construction)Symbol table design (Compiler Construction)
Symbol table design (Compiler Construction)Tech_MX
 
SAP ABAP Latest Interview Questions
SAP ABAP Latest  Interview Questions SAP ABAP Latest  Interview Questions
SAP ABAP Latest Interview Questions piyushchawala
 
Internal tables
Internal tablesInternal tables
Internal tableswaseem27
 
Compiler and symbol table
Compiler and symbol tableCompiler and symbol table
Compiler and symbol tableSunjid Hasan
 
Sap abap-data structures and internal tables
Sap abap-data structures and internal tablesSap abap-data structures and internal tables
Sap abap-data structures and internal tablesMustafa Nadim
 
Lecture02 abap on line
Lecture02 abap on lineLecture02 abap on line
Lecture02 abap on lineMilind Patil
 

What's hot (13)

Abap Questions
Abap QuestionsAbap Questions
Abap Questions
 
Symbol table in compiler Design
Symbol table in compiler DesignSymbol table in compiler Design
Symbol table in compiler Design
 
0105 abap programming_overview
0105 abap programming_overview0105 abap programming_overview
0105 abap programming_overview
 
Symbol Table
Symbol TableSymbol Table
Symbol Table
 
Symbol table design (Compiler Construction)
Symbol table design (Compiler Construction)Symbol table design (Compiler Construction)
Symbol table design (Compiler Construction)
 
SAP ABAP Latest Interview Questions
SAP ABAP Latest  Interview Questions SAP ABAP Latest  Interview Questions
SAP ABAP Latest Interview Questions
 
Design of a two pass assembler
Design of a two pass assemblerDesign of a two pass assembler
Design of a two pass assembler
 
Sap abap material
Sap abap materialSap abap material
Sap abap material
 
05 internal tables
05 internal tables05 internal tables
05 internal tables
 
Internal tables
Internal tablesInternal tables
Internal tables
 
Compiler and symbol table
Compiler and symbol tableCompiler and symbol table
Compiler and symbol table
 
Sap abap-data structures and internal tables
Sap abap-data structures and internal tablesSap abap-data structures and internal tables
Sap abap-data structures and internal tables
 
Lecture02 abap on line
Lecture02 abap on lineLecture02 abap on line
Lecture02 abap on line
 

Similar to ABAP

500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERSIICT Chromepet
 
Unit 2 - Object Navigator, Repository and ABAP Programs
Unit 2 - Object Navigator, Repository and ABAP ProgramsUnit 2 - Object Navigator, Repository and ABAP Programs
Unit 2 - Object Navigator, Repository and ABAP Programsdubon07
 
Compiler Engineering Lab#5 : Symbol Table, Flex Tool
Compiler Engineering Lab#5 : Symbol Table, Flex ToolCompiler Engineering Lab#5 : Symbol Table, Flex Tool
Compiler Engineering Lab#5 : Symbol Table, Flex ToolMashaelQ
 
Hadoop and HBase experiences in perf log project
Hadoop and HBase experiences in perf log projectHadoop and HBase experiences in perf log project
Hadoop and HBase experiences in perf log projectMao Geng
 
SAP ABAP Interview questions
SAP ABAP Interview questionsSAP ABAP Interview questions
SAP ABAP Interview questionsIT LearnMore
 
Oracle Apps Technical Manual
Oracle Apps Technical ManualOracle Apps Technical Manual
Oracle Apps Technical ManualHossam El-Faxe
 
Abap top part_3
Abap top part_3Abap top part_3
Abap top part_3Kapil_321
 
Using Rational Publishing Engine to generate documents from Rational Rhapsody
Using Rational Publishing Engine to generate documents from Rational RhapsodyUsing Rational Publishing Engine to generate documents from Rational Rhapsody
Using Rational Publishing Engine to generate documents from Rational RhapsodyGEBS Reporting
 
Abap interview questions and answers
Abap interview questions and answersAbap interview questions and answers
Abap interview questions and answersKaustav Pyne
 
Introduction to ABAP
Introduction to ABAPIntroduction to ABAP
Introduction to ABAPsapdocs. info
 
Lecture03 abap on line
Lecture03 abap on lineLecture03 abap on line
Lecture03 abap on lineMilind Patil
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4CIS339
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4jackiechaner
 

Similar to ABAP (20)

500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
 
Unit 2 - Object Navigator, Repository and ABAP Programs
Unit 2 - Object Navigator, Repository and ABAP ProgramsUnit 2 - Object Navigator, Repository and ABAP Programs
Unit 2 - Object Navigator, Repository and ABAP Programs
 
Compiler Engineering Lab#5 : Symbol Table, Flex Tool
Compiler Engineering Lab#5 : Symbol Table, Flex ToolCompiler Engineering Lab#5 : Symbol Table, Flex Tool
Compiler Engineering Lab#5 : Symbol Table, Flex Tool
 
Hadoop and HBase experiences in perf log project
Hadoop and HBase experiences in perf log projectHadoop and HBase experiences in perf log project
Hadoop and HBase experiences in perf log project
 
SAP ABAP Interview questions
SAP ABAP Interview questionsSAP ABAP Interview questions
SAP ABAP Interview questions
 
Bdc
BdcBdc
Bdc
 
Entity framework
Entity frameworkEntity framework
Entity framework
 
Oracle Apps Technical Manual
Oracle Apps Technical ManualOracle Apps Technical Manual
Oracle Apps Technical Manual
 
Oracle apps-technical-tutorial
Oracle apps-technical-tutorialOracle apps-technical-tutorial
Oracle apps-technical-tutorial
 
Abap sample
Abap sampleAbap sample
Abap sample
 
Abap top part_3
Abap top part_3Abap top part_3
Abap top part_3
 
Assembler
AssemblerAssembler
Assembler
 
Using Rational Publishing Engine to generate documents from Rational Rhapsody
Using Rational Publishing Engine to generate documents from Rational RhapsodyUsing Rational Publishing Engine to generate documents from Rational Rhapsody
Using Rational Publishing Engine to generate documents from Rational Rhapsody
 
Abap interview questions and answers
Abap interview questions and answersAbap interview questions and answers
Abap interview questions and answers
 
Introduction to ABAP
Introduction to ABAPIntroduction to ABAP
Introduction to ABAP
 
Introduction to MapBasic
Introduction to MapBasicIntroduction to MapBasic
Introduction to MapBasic
 
Lecture03 abap on line
Lecture03 abap on lineLecture03 abap on line
Lecture03 abap on line
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4
 

Recently uploaded

Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxRosabel UA
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEaurabinda banchhor
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxElton John Embodo
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 

Recently uploaded (20)

Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSE
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 

ABAP

  • 1. Enterprise Wide Information Systems ABAP/ 4 Programming Language
  • 2. Objectives ∗ Upon completion of this topic, you should be able to: ∗ Define the general terms associated with the ABAP/4 Workbench. ∗ Work with the ABAP/4 Object Browser. ∗ Create a program object. ∗ Access tables to generate a report.
  • 3. Topics ∗ ABAP/4 Development Workbench ∗ ABAP/4 Data Dictionary ∗ ABAP/4 Repository Information
  • 4. ABAP/4 Development Workbench Architecture ∗ The Development Workbench provides access to SAP’s development tools. Reporting ABAP/4 Screen Editor Painter ABAP/4 R/3 Menu Dictionary Repository Painter Data Function Modeller Modules
  • 5. ABAP/4 Development Workbench Architecture ∗ All programs are stored in the R/3 Repository. ∗ A program is simply an object. ∗ All definitions are kept in the data dictionary. ∗ e.g. variable descriptions and parameters of fields. ∗ Double-clicking will navigate you to wherever the object is stored. ∗ Remote call functions let you access other systems.
  • 6. Reporting and Dialog Programming ∗ In reporting you use the ABAP/4 Open SQL to read data from the R/3 database ∗ A report consists of a selection screen on which you define the dataset you wish to display, and a list which displays the data itself. ∗ In dialog programming you use the screen painter to create screens and program the sequence in which they appear.
  • 7. Reporting and Dialog Programming Selection List Screen Screen Screen Screen 01000 0200 ABAP/4 Open SQL
  • 8. ABAP/4 Program Objects ∗ You can use the ABAP/4 Development Workbench to create ABAP/4 programs. ∗ You can call objects from the object list generated from the Object Browser’s initial screen.
  • 9. ABAP/4 Program Objects Development Class Development Class Dev. Class object type Dictionary objects Programs Function groups Includes Transactions Logical databases etc.
  • 10. ABAP/4 Programs ∗ All ABAP/4 programs (objects) are made up of: ∗ Source code ∗ Text elements ∗ Attributes ABAP/4 Program Attributes Attributes Source Code Source Code Text Elements Text Elements ••Titles Titles ••Headers Headers ••Text symbols Text symbols
  • 11. Creating Programs ∗ Begin by first specifying a development class. ∗ Development classes are categories of SAP objects (e.g. program object). ∗ Customer-specific program names begin with Y or Z. ∗ If you are creating a test object which you do not wish to be transported, choose Local Object. ∗ The development class is then set to $TMP automatically.
  • 12. The ABAP/4 Editor ∗ The ABAP/4 Editor can run in three different modes: 1. Command mode 2. PC mode with line numbering 3. PC mode without line numbering ∗ You can switch between editor modes by choosing Settings → Editor mode ∗ It is recommended that you do your work in PC mode with line numbering
  • 13. ABAP/4 Syntax ∗ An ABAP/4 program consists of individual statements ∗ Each statement must end with a period. ∗ The first word of a statement is known as the key word. ∗ Words are separated from each other by at least one blank. ∗ Statements can be indented. ∗ Statements can extend over several lines. ∗ You can concatenate several consecutive statements with an identical key word (e.g. WRITE: ). ∗ Follow the key word with a colon. ∗ Separate each concatenated part with a comma. ∗ End the lines of the concatenated statements with a period.
  • 14. ABAP/4 Syntax (cont.) ∗ You can insert comments into a program in two ways: 1. An asterisk (*) in column 1 flags the whole line as a comment. 2. A quotation mark (“) within a line flags the remainder of the line as a comment.
  • 15. Tables and the Select Statement ∗ The Tables: <name> statement declares an ABAP/4 Dictionary table in the ABAP/4 program and allocates a table work area with the structure of <name>. ∗ The Select statement reads the table <name> line by line and places each line read in the table work area. ∗ Note: Double-clicking on the Tables: statement in the editor will display how the table is defined in the data dictionary.
  • 16. Tables and the Select Statement Report ZDEMO1. Report ZDEMO1. TABLES: SBOOK. TABLES: SBOOK. Table SBOOK SELECT ** FROM SBOOK SELECT FROM SBOOK WHERE CARRID = ‘LH’. WHERE CARRID = ‘LH’. ENDSELECT. ENDSELECT. WRITE :: CARRID, FLTDATE. WRITE CARRID, FLTDATE. Read table Table work area
  • 17. Accessing Tables (In summary…) DDIC Definition in the Data Dictionary SBOOK F1 SBOOK F2 F1 F2 F3 Fn F3 Fn Database Program Report ZDEMO1. Report ZDEMO1. TABLES: SBOOK. TABLES: SBOOK. SELECT ** FROM SBOOK SELECT FROM SBOOK Report WHERE CARRID = ‘LH’. WHERE CARRID = ‘LH’. ENDSELECT. ENDSELECT. WRITE :: CARRID, FLTDATE. WRITE CARRID, FLTDATE. SFLIGHT table work area F1 F2 F3 Fn
  • 18. Topics ∗ ABAP/4 Development Workbench ∗ ABAP/4 Data Dictionary ∗ ABAP/4 Repository Information
  • 19. Basic Dictionary Objects ∗ Tables - collection of records of data in fields. ∗ Data elements - contain the semantic definition (e.g. short description) of what is contained w/in a field. ∗ Domains - describe the technical attributes of the table’s fields (e.g. field type, length, value range, etc.).
  • 20. Basic Dictionary Objects Table Table field Data element uses Domain uses
  • 21. Structures and Aggregated Objects (Views) ∗ Besides defining tables stored in the database, you can also define the structure of data which occurs when performing calculations in programs, or when passing data between programs. ∗ Structures are defined and activated in the ABAP/4 Dictionary. ∗ While data can be permanently stored in the database, data in structures exists only during the runtime of a program. ∗ Aggregated objects are objects which come from several different tables. ∗ Views are application-specific views of different ABAP/4 Dictionary tables. ∗ Views allow you to gather information from fields of different tables and present it to users in the form they require.
  • 22. ABAP/4 Dictionary (In summary) ∗ The ABAP/4 Dictionary is the central facility in the system where you can create and maintain data declarations, tables, structures and aggregated objects. ∗ Since it is integrated into the ABAP/4 Development Workbench as an active component, any change made in the ABAP/4 Dictionary takes immediate effect in programs affected.
  • 23. Topics ∗ ABAP/4 Development Workbench ∗ ABAP/4 Data Dictionary ∗ ABAP/4 Repository Information
  • 24. ABAP/4 Repository Information ∗ The ABAP/4 Repository Information System allows you to obtain information about objects (tables, fields, domains, etc.) in the ABAP/4 Repository. ∗ You can find anything that is used in programs by using the Data Repository. ? ? Search by attributes Where-used lists Display all objects of type X Display all objects of type Y with attribute Y which use attribute X Data Information about Repository tables and Modified objects relationships Display all table fields Display all objects of with check table X type X which were changed by ? user Y on date DDMMYY ?
  • 25. ABAP/4 Repository (In summary) ∗ The ABAP/4 Repository Information System allows search for ABAP/4 Development Workbench objects by specifying required attributes. From the ABAP/4 Development Workbench: Overview → Repository Infosy.