Monday, 6 January 2014

SAP ABAP Workbench Introduction

SAP ABAP Workbench Introduction

It is now time to take a first look at an SAP ABAP program. The following section will look at the SAP System and introduce the ABAP Workbench. But before doing so, let's take a look at the structure of an ABAP program

                                     
SAP ABAP Workbench Introduction

Like many other programming languages, ABAP programs are normally structured into two parts.
                                                  
SAP ABAP Workbench Introduction

The first is what is considered to be the Declaration section. This is where you define the data types, structures, tables, work area variables and the individual fields to be used inside the programs. This is also where you would declare global variables that will be available throughout the individual subsections of the program. When creating an ABAP program, you do not only declare global variables, but you also have the option to declare
variables that are only valid within specific sections inside the programs. These sections are commonly referred to as internal Processing Blocks.
The Declaration part of the program is where you define the parameters used for the selection screens for the reports. Once you have declared tables, global variables and data types in the Declaration section of the program, then comes the second part of the ABAP program, where all of the logic for the program will be written. This part of an ABAP program is often split up into what are called Processing Blocks.

The Processing Blocks defined within programs can be called from the Dynpro processor, which were discussed previously, depending on the specific rules created within the program. These Processing Blocks are almost always just small sections of programming logic which allow the code to be encapsulated.

No comments:

Post a Comment