SlideShare une entreprise Scribd logo
1  sur  25
ABAP Course

                    Chapter 3 – Basic concepts



Lecturer: André Bögelsack, UCC Technische Universität München
Author: Valentin Nicolescu, André Bögelsack
                  ABAP Course                     André Bögelsack, Valentin Nicolescu   1
Copyright 2008 UCC TU München
                              All rights reserved
   Weitergabe und Vervielfältigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne
    die ausdrückliche schriftliche Genehmigung durch HCC TU München nicht gestattet. In dieser Publikation enthaltene Informationen können
    ohne vorherige Ankündigung geändert werden.
   Microsoft®, WINDOWS®, NT®, EXCEL®, Word®, PowerPoint® und SQL Server® sind eingetragene Marken der Microsoft Corporation.
   IBM®, DB2®, OS/2®, DB2/6000®, Parallel Sysplex®, MVS/ESA®, RS/6000®, AIX®, S/390®, AS/400®, OS/390® und OS/400® sind eingetragene
    Marken der IBM Corporation.
   ORACLE® ist eine eingetragene Marke der ORACLE Corporation.
   INFORMIX®-OnLine for SAP und Informix® Dynamic ServerTM sind eingetragene Marken der Informix Software Incorporated.
   UNIX®, X/Open®, OSF/1® und Motif® sind eingetragene Marken der Open Group.
   Citrix®, das Citrix-Logo, ICA®, Program Neighborhood®, MetaFrame®, WinFrame®, VideoFrame®, MultiWin® und andere hier erwähnte
    Namen von Citrix-Produkten sind Marken von Citrix Systems, Inc.
   HTML, DHTML, XML, XHTML sind Marken oder eingetragene Marken des W3C®, World Wide Web Consortium, Massachusetts Institute of
    Technology.
   JAVA® ist eine eingetragene Marke der Sun Microsystems, Inc.
   JAVASCRIPT® ist eine eingetragene Marke der Sun Microsystems, Inc., verwendet unter der Lizenz der von Netscape entwickelten und
    implementierten Technologie.
   SAP, SAP Logo, R/2, RIVA, R/3, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit,
    mySAP, mySAP.com und weitere im Text erwähnte SAP-Produkte und -Dienstleistungen sowie die entsprechenden Logos sind Marken oder
    eingetragene Marken der SAP AG in Deutschland und anderen Ländern weltweit. MarketSet und Enterprise Buyer sind gemeinsame
    Marken von SAP Markets und Commerce One.
   Alle anderen Namen von Produkten und Dienstleistungen sind Marken der jeweiligen Firmen.
   Die Verwendung der Screenshots wurde mit dem jeweiligen Eigner abgesprochen.




                               ABAP Course                                           André Bögelsack, Valentin Nicolescu               2
Agenda

1.   Data types and data declaration
2.   Important instructions
3.   Local modularization
4.   Background processing




               ABAP Course             André Bögelsack, Valentin Nicolescu   3
Data types

                           Data type



     predefined
(P, I, F, C, N, D, T, X)                  user defined



                                  elementary         complex




                                         structured               table type




                                                                  Source: Following SAP AG
        ABAP Course                       André Bögelsack, Valentin Nicolescu                4
Predefined data types in ABAP
Data type         Sense            Initial value                   Values range
d                 Date             00000000
t                 Time             000000
i                 Integer          0
f                 Float            0.00
String            String
Xstring           Byte
p                 Packed number    0
n                 Numerical text   00 … 0                          Max. 65536
                                                                   figures
c                 Character        <SPACE>                         Max. 65536
                                                                   characters
x                 Byte (hex)       X’00‘
              ABAP Course                   André Bögelsack, Valentin Nicolescu   5
Data declaration
•   Elemental field definition:
    DATA f(len) TYPE <DATA TYPE>.
•   Structured data object:
    DATA: BEGIN OF struc,
    …
    END OF struc.
•   Internal table:
    DATA itab TYPE <TABLE TYPE>. or
    DATA itab TYPE TABLE OF <STRUCTURE>.
•   Constants:
    CONSTANTS c VALUE <value> / is INITIAL.
•   Parameters:
    PARAMETERS TYPE <DATA TYPE>.


                 ABAP Course           André Bögelsack, Valentin Nicolescu   6
Data declaration

•    Instead of defining every single data:
    Data   a   type    c.
    Data   b   type    i.
    Data   c   type    c.
    Data   d   type    i.


•    Use:
    Data: a type c, b type i, c type c, d type i.




                      ABAP Course             André Bögelsack, Valentin Nicolescu   7
Definition of own data types
•   Definition of completely new data types
•   New data types can derive from existing data types:
    TYPES text10 TYPE c LENGTH 10.
•   Definition of one’s own data type:
    TYPES: BEGIN OF str_student,
    name(40) TYPE c,
    family_name(40) TYPE c,
    id TYPE i,
    END OF str_student.
•   Declaration of a new structure:
    DATA student TYPE str_student.
•   Access to the structure:
    WRITE student-name.


               ABAP Course                  André Bögelsack, Valentin Nicolescu   8
Structure SYST
                                    Field             Sense
•   Structure SYST contains many
                                    Sy-subrc          Returncode of last instruction
    system variables from the SAP
    system                          Sy-date           Current date and time
•   Structure can be viewed in      Sy-uname          Username of the current user
    Data Dictionary (SE11) via
    data type SYST                  Sy-host           Name of application server

                                    Sy-langu          Current system language

                                    Sy-dbsys          Name of database server

                                    Sy-tcode          Current transaction code

                                    Sy-index          Loop index

                                    Sy-client         Current client number

              ABAP Course                     André Bögelsack, Valentin Nicolescu   9
Selection screens

•   Selection screens simplify interaction with user
•   Selection screens always have Dynpro number 1000
•   Selection screens are generated automatically when keyword
    Parameters is used in source code
•   Parameters is also used for variable declaration




              ABAP Course                André Bögelsack, Valentin Nicolescu   10
Important instructions and control
                    structures

•    Data manipulation
•    Data object conversion
•    Control structures
    – Loops
    – Branching conditionally




               ABAP Course      André Bögelsack, Valentin Nicolescu   11
Data manipulation

•    Assign: MOVE f TO g or g = f
•    Numeric: ADD n TO m or m = m + n
•    String: CONCATENATE, SPLIT, SEARCH, REPLACE,
     CONDENSE, TRANSLATE …
•    Logical:
    – For all data types: =, <>, <, >, <=, >=
    – For character like types: CO (contains only), CN
      (contains not only), CA (contains any) …
    – For byte like types: BYTE-CO, BYTE-CN, BYTE-CA …
    – For bit patterns: O (Ones), Z (Zeros), M (Mixed)


             ABAP Course            André Bögelsack, Valentin Nicolescu   12
Data object conversion

•   If it is possible to migrate values from one data type to another, the
    SAP system does it automatically
•   Static incompatible: between date and time
•   Dynamic incompatible: between char ‘1234hello’ and integer
•   Dynamic compatible: between char ‘1234’ and integer 1234
•   Exceptions can be caught
      CATCH SYSTEM-EXCEPTION conversation_errors = 4.
      …
      ENDCATCH.




               ABAP Course                   André Bögelsack, Valentin Nicolescu   13
Control structures: loops

•   WHILE – ENDWHILE:
    WHILE <logical expression>.
      <instructions>
    ENDWHILE.
•   DO – ENDDO
    DO n TIMES.
      <instructions>
    ENDDO.
•   Sy-index: returns the current loop index and refers to the current
    loop (in case of nested loops)


               ABAP Course                  André Bögelsack, Valentin Nicolescu   14
Control structures: branching
•   IF:
    IF <logical expression>.
      <instruction 1>
    [ELSEIF <logical expression>.
      [<instruction 2>
    [ELSE.
      [<instruction 3>
    ENDIF.
•   CASE:
    CASE <data object>.
      [WHEN <value 1>.
            [<instruction 1>.
      [WHEN <value 2>.
            [<instruction 2>.
      [WHEN OTHERS.
            [<instruction 3>.
    ENDCASE.

             ABAP Course            André Bögelsack, Valentin Nicolescu   15
Local modularization

•    Modularization in ABAP:
    – Includes
    – FORMs (Procedures)
    – Function Groups / Function Modules




               ABAP Course                 André Bögelsack, Valentin Nicolescu   16
Local modularization: Includes

•    Outsource to external program
•    The include-object is used in the main program to call the external
     program
•    Instruction INCLUDE integrates external program into main program
•    INCLUDE vs TOP INCLUDE:
    – TOP INCLUDE also contains data declaration, which must be
      available in all selection screens




                ABAP Course                 André Bögelsack, Valentin Nicolescu   17
Local modularization: FORMs

•   Procedures in ABAP
•   Declaration:
    FORM <procedure name>
      USING value<input parameter> TYPE <type>
      USING <input parameter> TYPE <type>
      CHANGING <input/output parameter> TYPE <type>
      CHANGING value<input/output parameter> TYPE <type>.
    ENDFORM.
•   Parameter without value declaration means the variable points to
    the global variable
•   Parameter with value declaration have their own values




              ABAP Course                 André Bögelsack, Valentin Nicolescu   18
Local modularization: FORMs

•   Call:

    PERFORM <procedure name>
      USING <input parameter>
      CHANGING <input/output parameter>.




               ABAP Course             André Bögelsack, Valentin Nicolescu   19
Local modularization: Function modules

•   Outsources functionality to external module
•   Function modules are not allowed to access global variables 
    export variables when calling function module
•   More than 100,000 function modules available
•   Function modules can be organized in function groups
•   Function modules can be remote accessible
•   Function groups may have own TOP include




              ABAP Course                 André Bögelsack, Valentin Nicolescu   20
Local modularization: Function modules

Function Modules

      Remote enabled function modules




                                  BAPI




              ABAP Course                André Bögelsack, Valentin Nicolescu   21
Local modularization: Function modules

•   Since WebAS 6.20 web services
    are available
•   Web service browser available
    under:
    http://<host>:<ABAPport>/sap/b
    c/bsp/sap/webservicebrowser/s
    earch.html
•   <host> and <ABAPport> can be
    obtained from TA SM51




             ABAP Course             André Bögelsack, Valentin Nicolescu   22
Local modularization: Function modules

•   BAPI = Business Application
    Programming Interface
•   RFC enabled function modules
•   Overview about all BAPI can be
    obtained from BAPI explorer (TA
    BAPI)




              ABAP Course             André Bögelsack, Valentin Nicolescu   23
Local modularization: Function modules

•    Usage of BAPI’s:
    – BAPI give you the functionality of a SAP transaction  be sure to
      be familiar with the SAP transaction
    – Search for the appropriate BAPI and read the documentation
      carefully
    – Test the BAPI using the Function Builder
    – Use the BAPI
•    Possible problems:
    – Pay attention to the data types and mandatory data




                ABAP Course                 André Bögelsack, Valentin Nicolescu   24
Background processing

•   Usual programs use dialog work processes
•   Long running programs should always run in the background
•   All ABAP programs can be scheduled as background jobs in TA SM36
•   For ABAP programs with a user interface you can predefine the user
    input by using variants




              ABAP Course                 André Bögelsack, Valentin Nicolescu   25

Contenu connexe

En vedette

Abap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfilesAbap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfilesMilind Patil
 
Abap course chapter 2 tools in the development environment
Abap course   chapter 2 tools in the development environmentAbap course   chapter 2 tools in the development environment
Abap course chapter 2 tools in the development environmentMilind Patil
 
abap list viewer (alv)
abap list viewer (alv)abap list viewer (alv)
abap list viewer (alv)Kranthi Kumar
 
Abap slides user defined data types and data
Abap slides user defined data types and dataAbap slides user defined data types and data
Abap slides user defined data types and dataMilind Patil
 
Sap abap ppt
Sap abap pptSap abap ppt
Sap abap pptvonline
 
ABAP Open SQL & Internal Table
ABAP Open SQL & Internal TableABAP Open SQL & Internal Table
ABAP Open SQL & Internal Tablesapdocs. info
 
Introduction to ABAP
Introduction to ABAPIntroduction to ABAP
Introduction to ABAPsapdocs. info
 
Lecture04 abap on line
Lecture04 abap on lineLecture04 abap on line
Lecture04 abap on lineMilind Patil
 
Abap course chapter 1 introduction and first program
Abap course   chapter 1 introduction and first programAbap course   chapter 1 introduction and first program
Abap course chapter 1 introduction and first programMilind Patil
 
Abap course chapter 4 database accesses
Abap course   chapter 4 database accessesAbap course   chapter 4 database accesses
Abap course chapter 4 database accessesMilind Patil
 
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
 
Chapter 5 modularization & catch statement (paradiso-a45b1d's conflicted co...
Chapter 5   modularization & catch statement (paradiso-a45b1d's conflicted co...Chapter 5   modularization & catch statement (paradiso-a45b1d's conflicted co...
Chapter 5 modularization & catch statement (paradiso-a45b1d's conflicted co...marco_paradiso
 
SAP ABAP Lock concept and enqueue
SAP ABAP Lock concept and enqueueSAP ABAP Lock concept and enqueue
SAP ABAP Lock concept and enqueueMilind Patil
 
Lecture02 abap on line
Lecture02 abap on lineLecture02 abap on line
Lecture02 abap on lineMilind Patil
 
Chapter 06 abap repository information system1
Chapter 06 abap  repository information system1Chapter 06 abap  repository information system1
Chapter 06 abap repository information system1Kranthi Kumar
 
Chapter 07 abap dictionary changes1
Chapter 07 abap dictionary changes1Chapter 07 abap dictionary changes1
Chapter 07 abap dictionary changes1Kranthi Kumar
 
Chapter 05 adding structures1
Chapter 05 adding structures1Chapter 05 adding structures1
Chapter 05 adding structures1Kranthi Kumar
 

En vedette (20)

Abap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfilesAbap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfiles
 
Abap course chapter 2 tools in the development environment
Abap course   chapter 2 tools in the development environmentAbap course   chapter 2 tools in the development environment
Abap course chapter 2 tools in the development environment
 
abap list viewer (alv)
abap list viewer (alv)abap list viewer (alv)
abap list viewer (alv)
 
Abap slides user defined data types and data
Abap slides user defined data types and dataAbap slides user defined data types and data
Abap slides user defined data types and data
 
Sap abap ppt
Sap abap pptSap abap ppt
Sap abap ppt
 
ABAP Open SQL & Internal Table
ABAP Open SQL & Internal TableABAP Open SQL & Internal Table
ABAP Open SQL & Internal Table
 
Introduction to ABAP
Introduction to ABAPIntroduction to ABAP
Introduction to ABAP
 
Lecture04 abap on line
Lecture04 abap on lineLecture04 abap on line
Lecture04 abap on line
 
Abap course chapter 1 introduction and first program
Abap course   chapter 1 introduction and first programAbap course   chapter 1 introduction and first program
Abap course chapter 1 introduction and first program
 
Abap course chapter 4 database accesses
Abap course   chapter 4 database accessesAbap course   chapter 4 database accesses
Abap course chapter 4 database accesses
 
Abap reports
Abap reportsAbap reports
Abap reports
 
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
 
Chapter 5 modularization & catch statement (paradiso-a45b1d's conflicted co...
Chapter 5   modularization & catch statement (paradiso-a45b1d's conflicted co...Chapter 5   modularization & catch statement (paradiso-a45b1d's conflicted co...
Chapter 5 modularization & catch statement (paradiso-a45b1d's conflicted co...
 
SAP ABAP Lock concept and enqueue
SAP ABAP Lock concept and enqueueSAP ABAP Lock concept and enqueue
SAP ABAP Lock concept and enqueue
 
Lecture02 abap on line
Lecture02 abap on lineLecture02 abap on line
Lecture02 abap on line
 
Ale Idoc
Ale IdocAle Idoc
Ale Idoc
 
Chapter 06 abap repository information system1
Chapter 06 abap  repository information system1Chapter 06 abap  repository information system1
Chapter 06 abap repository information system1
 
data modelling1
 data modelling1 data modelling1
data modelling1
 
Chapter 07 abap dictionary changes1
Chapter 07 abap dictionary changes1Chapter 07 abap dictionary changes1
Chapter 07 abap dictionary changes1
 
Chapter 05 adding structures1
Chapter 05 adding structures1Chapter 05 adding structures1
Chapter 05 adding structures1
 

Similaire à Abap course chapter 3 basic concepts

Ontology-based data access: why it is so cool!
Ontology-based data access: why it is so cool!Ontology-based data access: why it is so cool!
Ontology-based data access: why it is so cool!Josef Hardi
 
iOS Beginners Lesson 1
iOS Beginners Lesson 1iOS Beginners Lesson 1
iOS Beginners Lesson 1Calvin Cheng
 
Relational Database Design Bootcamp
Relational Database Design BootcampRelational Database Design Bootcamp
Relational Database Design BootcampMark Niebergall
 
Static Energy Prediction in Software: A Worst-Case Scenario Approach
Static Energy Prediction in Software: A Worst-Case Scenario ApproachStatic Energy Prediction in Software: A Worst-Case Scenario Approach
Static Energy Prediction in Software: A Worst-Case Scenario ApproachGreenLabAtDI
 
03 chapter03 01_introduction_fa16
03 chapter03 01_introduction_fa1603 chapter03 01_introduction_fa16
03 chapter03 01_introduction_fa16John Todora
 
The openCypher Project - An Open Graph Query Language
The openCypher Project - An Open Graph Query LanguageThe openCypher Project - An Open Graph Query Language
The openCypher Project - An Open Graph Query LanguageNeo4j
 
Oracle Query Optimizer - An Introduction
Oracle Query Optimizer - An IntroductionOracle Query Optimizer - An Introduction
Oracle Query Optimizer - An Introductionadryanbub
 
H2O Open Source Deep Learning, Arno Candel 03-20-14
H2O Open Source Deep Learning, Arno Candel 03-20-14H2O Open Source Deep Learning, Arno Candel 03-20-14
H2O Open Source Deep Learning, Arno Candel 03-20-14Sri Ambati
 
Python business intelligence (PyData 2012 talk)
Python business intelligence (PyData 2012 talk)Python business intelligence (PyData 2012 talk)
Python business intelligence (PyData 2012 talk)Stefan Urbanek
 
"Deep Learning Beyond Cats and Cars: Developing a Real-life DNN-based Embedde...
"Deep Learning Beyond Cats and Cars: Developing a Real-life DNN-based Embedde..."Deep Learning Beyond Cats and Cars: Developing a Real-life DNN-based Embedde...
"Deep Learning Beyond Cats and Cars: Developing a Real-life DNN-based Embedde...Edge AI and Vision Alliance
 
Data Management for Quantitative Biology - Database Systems (continued) LIMS ...
Data Management for Quantitative Biology - Database Systems (continued) LIMS ...Data Management for Quantitative Biology - Database Systems (continued) LIMS ...
Data Management for Quantitative Biology - Database Systems (continued) LIMS ...QBiC_Tue
 
Materials Project Validation, Provenance, and Sandboxes by Dan Gunter
Materials Project Validation, Provenance, and Sandboxes by Dan GunterMaterials Project Validation, Provenance, and Sandboxes by Dan Gunter
Materials Project Validation, Provenance, and Sandboxes by Dan GunterDan Gunter
 
NoSQL and MongoDB Introdction
NoSQL and MongoDB IntrodctionNoSQL and MongoDB Introdction
NoSQL and MongoDB IntrodctionBrian Enochson
 

Similaire à Abap course chapter 3 basic concepts (20)

Ontology-based data access: why it is so cool!
Ontology-based data access: why it is so cool!Ontology-based data access: why it is so cool!
Ontology-based data access: why it is so cool!
 
iOS Beginners Lesson 1
iOS Beginners Lesson 1iOS Beginners Lesson 1
iOS Beginners Lesson 1
 
Intro.ppt
Intro.pptIntro.ppt
Intro.ppt
 
Intro.ppt
Intro.pptIntro.ppt
Intro.ppt
 
Intro_2.ppt
Intro_2.pptIntro_2.ppt
Intro_2.ppt
 
Relational Database Design Bootcamp
Relational Database Design BootcampRelational Database Design Bootcamp
Relational Database Design Bootcamp
 
ontop: A tutorial
ontop: A tutorialontop: A tutorial
ontop: A tutorial
 
Static Energy Prediction in Software: A Worst-Case Scenario Approach
Static Energy Prediction in Software: A Worst-Case Scenario ApproachStatic Energy Prediction in Software: A Worst-Case Scenario Approach
Static Energy Prediction in Software: A Worst-Case Scenario Approach
 
03 chapter03 01_introduction_fa16
03 chapter03 01_introduction_fa1603 chapter03 01_introduction_fa16
03 chapter03 01_introduction_fa16
 
The openCypher Project - An Open Graph Query Language
The openCypher Project - An Open Graph Query LanguageThe openCypher Project - An Open Graph Query Language
The openCypher Project - An Open Graph Query Language
 
Unit4_DBMS.pptx
Unit4_DBMS.pptxUnit4_DBMS.pptx
Unit4_DBMS.pptx
 
Oracle Query Optimizer - An Introduction
Oracle Query Optimizer - An IntroductionOracle Query Optimizer - An Introduction
Oracle Query Optimizer - An Introduction
 
Blinkdb
BlinkdbBlinkdb
Blinkdb
 
H2O Open Source Deep Learning, Arno Candel 03-20-14
H2O Open Source Deep Learning, Arno Candel 03-20-14H2O Open Source Deep Learning, Arno Candel 03-20-14
H2O Open Source Deep Learning, Arno Candel 03-20-14
 
Python business intelligence (PyData 2012 talk)
Python business intelligence (PyData 2012 talk)Python business intelligence (PyData 2012 talk)
Python business intelligence (PyData 2012 talk)
 
"Deep Learning Beyond Cats and Cars: Developing a Real-life DNN-based Embedde...
"Deep Learning Beyond Cats and Cars: Developing a Real-life DNN-based Embedde..."Deep Learning Beyond Cats and Cars: Developing a Real-life DNN-based Embedde...
"Deep Learning Beyond Cats and Cars: Developing a Real-life DNN-based Embedde...
 
Data Management for Quantitative Biology - Database Systems (continued) LIMS ...
Data Management for Quantitative Biology - Database Systems (continued) LIMS ...Data Management for Quantitative Biology - Database Systems (continued) LIMS ...
Data Management for Quantitative Biology - Database Systems (continued) LIMS ...
 
MLBox 0.8.2
MLBox 0.8.2 MLBox 0.8.2
MLBox 0.8.2
 
Materials Project Validation, Provenance, and Sandboxes by Dan Gunter
Materials Project Validation, Provenance, and Sandboxes by Dan GunterMaterials Project Validation, Provenance, and Sandboxes by Dan Gunter
Materials Project Validation, Provenance, and Sandboxes by Dan Gunter
 
NoSQL and MongoDB Introdction
NoSQL and MongoDB IntrodctionNoSQL and MongoDB Introdction
NoSQL and MongoDB Introdction
 

Plus de Milind Patil

Step by step abap_input help or lov
Step by step abap_input help or lovStep by step abap_input help or lov
Step by step abap_input help or lovMilind Patil
 
Step bystep abap_fieldhelpordocumentation
Step bystep abap_fieldhelpordocumentationStep bystep abap_fieldhelpordocumentation
Step bystep abap_fieldhelpordocumentationMilind Patil
 
Step bystep abap_field help or documentation
Step bystep abap_field help or documentationStep bystep abap_field help or documentation
Step bystep abap_field help or documentationMilind Patil
 
Abap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checksAbap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checksMilind Patil
 
Step bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecordStep bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecordMilind Patil
 
Abap slide lockenqueuedataclustersauthchecks
Abap slide lockenqueuedataclustersauthchecksAbap slide lockenqueuedataclustersauthchecks
Abap slide lockenqueuedataclustersauthchecksMilind Patil
 
Abap slide exceptionshandling
Abap slide exceptionshandlingAbap slide exceptionshandling
Abap slide exceptionshandlingMilind Patil
 
Step bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecordStep bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecordMilind Patil
 
Lecture16 abap on line
Lecture16 abap on lineLecture16 abap on line
Lecture16 abap on lineMilind Patil
 
Lecture14 abap on line
Lecture14 abap on lineLecture14 abap on line
Lecture14 abap on lineMilind Patil
 
Lecture13 abap on line
Lecture13 abap on lineLecture13 abap on line
Lecture13 abap on lineMilind Patil
 
Lecture12 abap on line
Lecture12 abap on lineLecture12 abap on line
Lecture12 abap on lineMilind Patil
 
Lecture11 abap on line
Lecture11 abap on lineLecture11 abap on line
Lecture11 abap on lineMilind Patil
 
Lecture10 abap on line
Lecture10 abap on lineLecture10 abap on line
Lecture10 abap on lineMilind Patil
 
Lecture09 abap on line
Lecture09 abap on lineLecture09 abap on line
Lecture09 abap on lineMilind Patil
 
Lecture08 abap on line
Lecture08 abap on lineLecture08 abap on line
Lecture08 abap on lineMilind Patil
 
Lecture07 abap on line
Lecture07 abap on lineLecture07 abap on line
Lecture07 abap on lineMilind Patil
 

Plus de Milind Patil (20)

Step by step abap_input help or lov
Step by step abap_input help or lovStep by step abap_input help or lov
Step by step abap_input help or lov
 
Step bystep abap_fieldhelpordocumentation
Step bystep abap_fieldhelpordocumentationStep bystep abap_fieldhelpordocumentation
Step bystep abap_fieldhelpordocumentation
 
Step bystep abap_field help or documentation
Step bystep abap_field help or documentationStep bystep abap_field help or documentation
Step bystep abap_field help or documentation
 
Abap slides set1
Abap slides set1Abap slides set1
Abap slides set1
 
Abap slide class3
Abap slide class3Abap slide class3
Abap slide class3
 
Abap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checksAbap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checks
 
Step bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecordStep bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecord
 
Abap slide lockenqueuedataclustersauthchecks
Abap slide lockenqueuedataclustersauthchecksAbap slide lockenqueuedataclustersauthchecks
Abap slide lockenqueuedataclustersauthchecks
 
Abap slide exceptionshandling
Abap slide exceptionshandlingAbap slide exceptionshandling
Abap slide exceptionshandling
 
Step bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecordStep bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecord
 
Abap reports
Abap reportsAbap reports
Abap reports
 
Lecture16 abap on line
Lecture16 abap on lineLecture16 abap on line
Lecture16 abap on line
 
Lecture14 abap on line
Lecture14 abap on lineLecture14 abap on line
Lecture14 abap on line
 
Lecture13 abap on line
Lecture13 abap on lineLecture13 abap on line
Lecture13 abap on line
 
Lecture12 abap on line
Lecture12 abap on lineLecture12 abap on line
Lecture12 abap on line
 
Lecture11 abap on line
Lecture11 abap on lineLecture11 abap on line
Lecture11 abap on line
 
Lecture10 abap on line
Lecture10 abap on lineLecture10 abap on line
Lecture10 abap on line
 
Lecture09 abap on line
Lecture09 abap on lineLecture09 abap on line
Lecture09 abap on line
 
Lecture08 abap on line
Lecture08 abap on lineLecture08 abap on line
Lecture08 abap on line
 
Lecture07 abap on line
Lecture07 abap on lineLecture07 abap on line
Lecture07 abap on line
 

Dernier

Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 

Dernier (20)

Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 

Abap course chapter 3 basic concepts

  • 1. ABAP Course Chapter 3 – Basic concepts Lecturer: André Bögelsack, UCC Technische Universität München Author: Valentin Nicolescu, André Bögelsack ABAP Course André Bögelsack, Valentin Nicolescu 1
  • 2. Copyright 2008 UCC TU München All rights reserved  Weitergabe und Vervielfältigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne die ausdrückliche schriftliche Genehmigung durch HCC TU München nicht gestattet. In dieser Publikation enthaltene Informationen können ohne vorherige Ankündigung geändert werden.  Microsoft®, WINDOWS®, NT®, EXCEL®, Word®, PowerPoint® und SQL Server® sind eingetragene Marken der Microsoft Corporation.  IBM®, DB2®, OS/2®, DB2/6000®, Parallel Sysplex®, MVS/ESA®, RS/6000®, AIX®, S/390®, AS/400®, OS/390® und OS/400® sind eingetragene Marken der IBM Corporation.  ORACLE® ist eine eingetragene Marke der ORACLE Corporation.  INFORMIX®-OnLine for SAP und Informix® Dynamic ServerTM sind eingetragene Marken der Informix Software Incorporated.  UNIX®, X/Open®, OSF/1® und Motif® sind eingetragene Marken der Open Group.  Citrix®, das Citrix-Logo, ICA®, Program Neighborhood®, MetaFrame®, WinFrame®, VideoFrame®, MultiWin® und andere hier erwähnte Namen von Citrix-Produkten sind Marken von Citrix Systems, Inc.  HTML, DHTML, XML, XHTML sind Marken oder eingetragene Marken des W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.  JAVA® ist eine eingetragene Marke der Sun Microsystems, Inc.  JAVASCRIPT® ist eine eingetragene Marke der Sun Microsystems, Inc., verwendet unter der Lizenz der von Netscape entwickelten und implementierten Technologie.  SAP, SAP Logo, R/2, RIVA, R/3, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit, mySAP, mySAP.com und weitere im Text erwähnte SAP-Produkte und -Dienstleistungen sowie die entsprechenden Logos sind Marken oder eingetragene Marken der SAP AG in Deutschland und anderen Ländern weltweit. MarketSet und Enterprise Buyer sind gemeinsame Marken von SAP Markets und Commerce One.  Alle anderen Namen von Produkten und Dienstleistungen sind Marken der jeweiligen Firmen.  Die Verwendung der Screenshots wurde mit dem jeweiligen Eigner abgesprochen. ABAP Course André Bögelsack, Valentin Nicolescu 2
  • 3. Agenda 1. Data types and data declaration 2. Important instructions 3. Local modularization 4. Background processing ABAP Course André Bögelsack, Valentin Nicolescu 3
  • 4. Data types Data type predefined (P, I, F, C, N, D, T, X) user defined elementary complex structured table type Source: Following SAP AG ABAP Course André Bögelsack, Valentin Nicolescu 4
  • 5. Predefined data types in ABAP Data type Sense Initial value Values range d Date 00000000 t Time 000000 i Integer 0 f Float 0.00 String String Xstring Byte p Packed number 0 n Numerical text 00 … 0 Max. 65536 figures c Character <SPACE> Max. 65536 characters x Byte (hex) X’00‘ ABAP Course André Bögelsack, Valentin Nicolescu 5
  • 6. Data declaration • Elemental field definition: DATA f(len) TYPE <DATA TYPE>. • Structured data object: DATA: BEGIN OF struc, … END OF struc. • Internal table: DATA itab TYPE <TABLE TYPE>. or DATA itab TYPE TABLE OF <STRUCTURE>. • Constants: CONSTANTS c VALUE <value> / is INITIAL. • Parameters: PARAMETERS TYPE <DATA TYPE>. ABAP Course André Bögelsack, Valentin Nicolescu 6
  • 7. Data declaration • Instead of defining every single data: Data a type c. Data b type i. Data c type c. Data d type i. • Use: Data: a type c, b type i, c type c, d type i. ABAP Course André Bögelsack, Valentin Nicolescu 7
  • 8. Definition of own data types • Definition of completely new data types • New data types can derive from existing data types: TYPES text10 TYPE c LENGTH 10. • Definition of one’s own data type: TYPES: BEGIN OF str_student, name(40) TYPE c, family_name(40) TYPE c, id TYPE i, END OF str_student. • Declaration of a new structure: DATA student TYPE str_student. • Access to the structure: WRITE student-name. ABAP Course André Bögelsack, Valentin Nicolescu 8
  • 9. Structure SYST Field Sense • Structure SYST contains many Sy-subrc Returncode of last instruction system variables from the SAP system Sy-date Current date and time • Structure can be viewed in Sy-uname Username of the current user Data Dictionary (SE11) via data type SYST Sy-host Name of application server Sy-langu Current system language Sy-dbsys Name of database server Sy-tcode Current transaction code Sy-index Loop index Sy-client Current client number ABAP Course André Bögelsack, Valentin Nicolescu 9
  • 10. Selection screens • Selection screens simplify interaction with user • Selection screens always have Dynpro number 1000 • Selection screens are generated automatically when keyword Parameters is used in source code • Parameters is also used for variable declaration ABAP Course André Bögelsack, Valentin Nicolescu 10
  • 11. Important instructions and control structures • Data manipulation • Data object conversion • Control structures – Loops – Branching conditionally ABAP Course André Bögelsack, Valentin Nicolescu 11
  • 12. Data manipulation • Assign: MOVE f TO g or g = f • Numeric: ADD n TO m or m = m + n • String: CONCATENATE, SPLIT, SEARCH, REPLACE, CONDENSE, TRANSLATE … • Logical: – For all data types: =, <>, <, >, <=, >= – For character like types: CO (contains only), CN (contains not only), CA (contains any) … – For byte like types: BYTE-CO, BYTE-CN, BYTE-CA … – For bit patterns: O (Ones), Z (Zeros), M (Mixed) ABAP Course André Bögelsack, Valentin Nicolescu 12
  • 13. Data object conversion • If it is possible to migrate values from one data type to another, the SAP system does it automatically • Static incompatible: between date and time • Dynamic incompatible: between char ‘1234hello’ and integer • Dynamic compatible: between char ‘1234’ and integer 1234 • Exceptions can be caught CATCH SYSTEM-EXCEPTION conversation_errors = 4. … ENDCATCH. ABAP Course André Bögelsack, Valentin Nicolescu 13
  • 14. Control structures: loops • WHILE – ENDWHILE: WHILE <logical expression>. <instructions> ENDWHILE. • DO – ENDDO DO n TIMES. <instructions> ENDDO. • Sy-index: returns the current loop index and refers to the current loop (in case of nested loops) ABAP Course André Bögelsack, Valentin Nicolescu 14
  • 15. Control structures: branching • IF: IF <logical expression>. <instruction 1> [ELSEIF <logical expression>. [<instruction 2> [ELSE. [<instruction 3> ENDIF. • CASE: CASE <data object>. [WHEN <value 1>. [<instruction 1>. [WHEN <value 2>. [<instruction 2>. [WHEN OTHERS. [<instruction 3>. ENDCASE. ABAP Course André Bögelsack, Valentin Nicolescu 15
  • 16. Local modularization • Modularization in ABAP: – Includes – FORMs (Procedures) – Function Groups / Function Modules ABAP Course André Bögelsack, Valentin Nicolescu 16
  • 17. Local modularization: Includes • Outsource to external program • The include-object is used in the main program to call the external program • Instruction INCLUDE integrates external program into main program • INCLUDE vs TOP INCLUDE: – TOP INCLUDE also contains data declaration, which must be available in all selection screens ABAP Course André Bögelsack, Valentin Nicolescu 17
  • 18. Local modularization: FORMs • Procedures in ABAP • Declaration: FORM <procedure name> USING value<input parameter> TYPE <type> USING <input parameter> TYPE <type> CHANGING <input/output parameter> TYPE <type> CHANGING value<input/output parameter> TYPE <type>. ENDFORM. • Parameter without value declaration means the variable points to the global variable • Parameter with value declaration have their own values ABAP Course André Bögelsack, Valentin Nicolescu 18
  • 19. Local modularization: FORMs • Call: PERFORM <procedure name> USING <input parameter> CHANGING <input/output parameter>. ABAP Course André Bögelsack, Valentin Nicolescu 19
  • 20. Local modularization: Function modules • Outsources functionality to external module • Function modules are not allowed to access global variables  export variables when calling function module • More than 100,000 function modules available • Function modules can be organized in function groups • Function modules can be remote accessible • Function groups may have own TOP include ABAP Course André Bögelsack, Valentin Nicolescu 20
  • 21. Local modularization: Function modules Function Modules Remote enabled function modules BAPI ABAP Course André Bögelsack, Valentin Nicolescu 21
  • 22. Local modularization: Function modules • Since WebAS 6.20 web services are available • Web service browser available under: http://<host>:<ABAPport>/sap/b c/bsp/sap/webservicebrowser/s earch.html • <host> and <ABAPport> can be obtained from TA SM51 ABAP Course André Bögelsack, Valentin Nicolescu 22
  • 23. Local modularization: Function modules • BAPI = Business Application Programming Interface • RFC enabled function modules • Overview about all BAPI can be obtained from BAPI explorer (TA BAPI) ABAP Course André Bögelsack, Valentin Nicolescu 23
  • 24. Local modularization: Function modules • Usage of BAPI’s: – BAPI give you the functionality of a SAP transaction  be sure to be familiar with the SAP transaction – Search for the appropriate BAPI and read the documentation carefully – Test the BAPI using the Function Builder – Use the BAPI • Possible problems: – Pay attention to the data types and mandatory data ABAP Course André Bögelsack, Valentin Nicolescu 24
  • 25. Background processing • Usual programs use dialog work processes • Long running programs should always run in the background • All ABAP programs can be scheduled as background jobs in TA SM36 • For ABAP programs with a user interface you can predefine the user input by using variants ABAP Course André Bögelsack, Valentin Nicolescu 25