SAP-ABAP Training Tutorals
SAP-ABAP Training Tutorals
TUTORIALS
Lecturer: Nguyễn Hoàng Phong
Main Contents
What is SAP?
- SAP stands for Systems, Applications and Products in data
processing.
- SAP is the fourth largest software company in the world.
- The SAP R/3 system is a business software package
designed to integrate all areas of a business.
- It provides end to end solutions for financials,
manufacturing, logistics, distribution etc.
- All business processes are executed in one SAP system
and sharing common information with everyone.
What is SAP system?(2)
Overview:
ABAP dictionary is a central storage area for the description where we can
create the objects and changing, deleting the objects related to data base.
The main object type of ABAP dictionary are:
Database tables: - It helps in create and maintain the tables, table
should begin with letter Y or Z and length up to 16 characters.
View : - It act as virtual table and helps in retrieve the data.
Data type: - It helps in creating the user defined data elements, structure
and tables.
Type group: – It creates the data group types in dictionary
Search help: – It defines the search help (F4) for the fields of database
table and helps in providing the values for a user search queries
Domains: – Domain specifies the technical characters of a field such as
data type field and length.
Lock objects : - It is used to synchronize the same data by one user or
multiple users. SAP provides three types of lock objects- Read lock, write
lock, enhanced lock.
ABAP Dictionary(2)
Processing data
Logical Expressions
Controlling the program flow
ABAP Program Structure
Data types and Data Objects
Variable Types
Internal Tables
ABAP Programming(2)- Processing
data
Calculation Operators:
Add or “+”:
Syntax: add X to Y Y = Y + X
Divide or “/”
Syntax: divide X by Y X = X / Y
Multiply or “*”:
multiply X by Y X = X * Y
Subtract or “-”:
subtract X from Y X = X - Y
Assigning values:
Operator =
Keyword MOVE (MOVE-CORRESPONDING)
Keyword WRITE TO
ABAP Programming(3)- Logical
Expressions
ABAP Programming(4)- Controlling
the program flow
Loops
Unconditional Loops( DO…ENDDO):
Syntax:
DO n times.
statements.
ENDDO.
Conditional Loops( WHILE…ENDWHILE)
Syntax:
WHILE logical expression.
statements.
ENDWHILE.
ABAP Programming(5)- Controlling
the program flow
Branching conditionally
IF control structure
Syntax:
IF expression1.
statements.
[ELSEIF expression2.
statements.]
[ELSE.
statements.]
ENDIF.
CASE control structure
Syntax:
CASE variable.
WHEN value1.
statements.
WHEN value2.
statements.
ENDCASE.
ABAP Programming(6)- ABAP
Program
Overview:
All ABAP programs use data to work on, which are
characterized by a length, name and data type.
Every data in an ABAP program has these attributes.
Data type describes the content of the program. Data
objects on the other hand are instances of an
abstract data type. In SAP both data objects and data
types have separate name spaces.
ABAP Programming(10)- Data
types(2)
Self study
BADIs(Business Add Ins)
Self study
References
Website http://www.saponlinetutorials.com
Website http://www.saptechnical.com
BC-ABAP Programming – SAP AG
THANK YOU!