ABAP Overview
ABAP Overview
ABAP Overview
ABAP is a 4th generation language ABAP has no versions, it is called as ABAP or ABAP/4 SAP R/2 is the first ERP product in market by SAP, which worked based on Main frames. Under R/2 we can find ABAP language, which is designed based on COBOL. Next ERP product from SAP is R/3, this worked based on RDBMS concept. ABAP language in R/3 is designed based on C Language. This product is database independent & platform independent. SAP R/3 architecture is a 3 tier architecture, designed based on Client & server architecture. While working with R/3, between Client & server we can find the Application server.
Application Server
Database Server
The Complete ABAP Language is executed in Application server. Client is group of user IDS
Example: SAP AG SAP R/3 Client 000(Master Client) By copying client 000, admin will create below clients 1. Development Client - To design the objects 2. Quality/Test Client - For quality check of designed objects 3. Production Client - Real time business runs. Under production client, we can find end users of the company.
3. ABAP Editor (SE38) - For designing Programs in ABAP Language 4. Function Builder (SE37) - For creating Functions in ABAP 5. Screen Painter (SE51) & Menu painter (SE41) - For designing applications in R/3. All together we will call these as BOR - Business Object Repository
Dictionary (SE11)
Dictionary Objects: 1. 2. 3. 4. 5. 6. 7. Tables Views Data Types Type Groups Domain Search help Lock Objects
Table:
Table will be defined with a set of fields, with their data types & length. Whenever a table is activated, a physical table will be created in the DB with the same structure. To create a Table, provide the details of Delivery & maintainance, Technical Settings & Fields. Delivery & Maintainance will have Delivery Class Delivery Class specified about Type of Table. Like Application Table, Custom table etc Technical settings have Data Class & Size Category Data Class specifies the Type of data the table holds. Like: Master data, transaction data & control data Size Category is to define the size of the table Fields of the table are nothing but the columns of the table. The fields are maintained with a reference type. The reference type specifies the characteristics of the field, like data type, length, description etc. Here data elements are used as a reference for the fields. Screens to create the table:
Domain:
The technical attributes of a field such as data type, length & possible values
View:
View is a virtual table that doesnt store the data physically. It is the logical representation of two or more tables. It holds the data during the run time. Types of Views: 1. Database view 2. Projection view 3. Maintainance view 4. Help View Database view is to see the information from 2 or more tables. Projection view is to see the specific fields information from a single database table. Maintainance view is to see & maintain the data from more than 1 table. Help view is to provide F4 help.
Table2: ZDEMP_ADRC
Now we want to create foreign key relation to the ZDEMO_ADRC table to the ZDEMP_EMP table. Here ZDEMO_EMP becomes the base table or check table. The common field is EMP_NUM
Structure:
Structure is a skeleton, which doesn't hold any data Structures are mainly used for table enhancements. There are two ways to enhance a table. 1. Include structure 2. Append Structure Include structure: we can have N no.of includes in a table. Include can be placed at any point of the table. Include structure is reusable.
Append Structure: A Table can have only one append structure. This will be at the end of table. The append structure is specific to the table, it can not be reused. After append, we can't add fields or structures to the table.