Introduction to ABAP4 ABAP Advanced Business Application Programming

Introduction to ABAP/4 ABAP: Advanced Business Application Programming 4: Fourth generation Language 10/28/2021 1

Introduction to ABAP/4 contd. ¤Multi Lingual ¤Only Tool for developing SAP applications ¤ABAP Workbench contains all tools for Programming ¤ABAP/4 program contains usual control structures & modularization concepts ¤After coding, we should Activate. During Activation, the 10/28/2021 2 system creates a Run Time object. When we

Structure of ABAP/4 Programs ¤ABAP/4 Programs are slightly different from procedural languages such as FORTRAN, PASCAL & C. ¤Instead they share certain features with event Oriented 10/28/2021 3 languages such as VB & JAVA.

Structure of ABAP/4 Prog. contd. ¤ABAP/4 program has modular structure ¤Source code (processing Blocks) consists of Collection of One or more programming modules ¤Programming module consists of sequential statements, selective & iterative statements 10/28/2021 4

Execution of ABAP/4 Prog. For Execution of ABAP/4 Programs you need a special Run Time Environment. This RTE is responsible for calling the individual program modules one after the other. RTE also known as ABAP/4 Processor 10/28/2021 5

Characteristics of ABAP/4 Prog. ¤Declarative Elements for Declaring Variables. ¤Operational Elements for Manipulating data. ¤Control statements for processing program flow. ¤String Functions for processing character strings. 10/28/2021 ¤Subroutines for Modularization. 6

Charact’ of ABAP/4 Prog. contd. ¤Open SQL to read and change data base tables. ¤Allows you to define and process Internal Tables. ¤Allows you to store data as files on Application & Presentation Servers. 10/28/2021 7

Types of ABAP/4 Programs ¤Executable program (1) ¤INCLUDE program (I) ¤Module pool (M) ¤Subroutine pool (S) ¤Function group (F) ¤Interface Pool (J) ¤Class Pool (K) 10/28/2021 SE 37 SE 24 8

Types of ABAP/4 Prog. contd. SAP differentiates between 2 types of ABAP/4 Programs. ¤Report Programs ¤Dialog Programs 10/28/2021 9

Report Programs ¤Reports are stand alone programs. ¤We use reports to read data base tables & represent results in Lists ¤Reports are collection of processing blocks, controlled by System calls depending on events. 10/28/2021 10

Report Programs contd. ¤Reports can use LDBs or SELECT STATEMENTS defined by DEVELOPER. ¤Reports can call Dialogue programs and vice versa. 10/28/2021 11

Dialogue Programs ¤Dialogue programs are not stand alone programs. (we have to link the dialogue programs to at least one or more SCREENS & TRANSACTION CODES) ¤We use Dialogue Programs to read & 10/28/2021 change 12

Dialogue Programs contd. ¤Dialogue programs are controlled by Screen flow logic. ¤Dialogue program is also called as Module pool program or TRANSACTION. ¤These module pools are separated in to PBO and PAI events. 10/28/2021 13

Dialogue Programs contd. ¤Collection of PBO, PAI and a screen is called DYNAMIC PROGRAM (DYNPRO). ¤A module pool must have at least one DYNPRO. 10/28/2021 14
- Slides: 14