Erp and Sap Historical Overview
Erp and Sap Historical Overview
Historical Overview
SAP was started in 1972 by five former IBM employees with a vision of creating a
standard application software for real-time business processing.
SAP stands for Systems Applications and Products in Data Processing.
Since its inception SAP has issued several releases, such as SAP R/1, SAP R/2, and SAP
R/3.
The R in these releases stands for “Real-Time” data processing. The 3 in the R/3 stands
for three-tier client-server architecture.
Version History:
SAP provides enterprise resource planning (ERP) software, and ABAP is the programming
language used to develop applications in SAP systems. Understanding how an SAP ERP system
works is vital to understanding ABAP programming. In this section, we will look at what ERP
software encompasses, ERP vs. non-ERP systems, and the advantages of using ERP software.
What is ERP?
An ERP system typically implements a common database in which all the data from
various business functions of an organization are stored. This allows applications to
access the data seamlessly across business processes.
Modules in SAP:
Functional Modules
FI(Finance)
CO(Costing)
MM (Material Management)
PP (Production Planning)
Technical Modules
ABAP
BASIS
BI/BW
XI/PI
Enterprise Portal
Types of Users:
End Users
Role: The Person who can access and enter the data into the system without any
technical skills
Functional Consultants
Role:
Technical Consultants
BASIS:
ABAP:
SAP system software is business software delivered with predefined standard SAP applications
and configurations to meet the needs of various industry sectors. It is not necessary to change
the repository objects (programs, applications, etc.) to use an SAP system.
However, every company within an industry sector may have its own company-specific
requirements. During implementation, SAP software needs to be adapted to fit these enterprise
requirements. We refer to this process as customization.
Modification: The standard SAP code is modified per specific business requirements.
Customer enhancement: The standard SAP applications are enhanced without changing the
source code of the standard SAP program.
Customer development: Customers develop applications in the SAP system.
ABAP Overview
Types of Applications
Originally designed for report development within SAP, ABAP has been extended
enormously.
Currently, we can develop a wide variety of applications in ABAP, both in the traditional
SAP GUI environment and in the web environment.
These typical developments include reports, forms, interfaces, transactions, and more.
ABAP is a hybrid programming language that supports both procedural and object-
oriented programming techniques to meet any complex business requirement.
RICEF
Reports, interfaces, conversions, extensions, and forms (RICEF) is the general acronym used to
highlight the different kinds of objects developed in ABAP.
Architecture of an SAP System
Presentation Layer:
This tier is the means by which a user views data, for example via a web browser (Google
Chrome, Internet Explorer and many others) or a graphical user interface.
Application Layer:
This layer is where the data from the database layer is processed, and it also defines what
permissions a user has. This is where logical processes occur and the result are sent to the
presentation layer.
Database Layer:
The is a central repository for all the data stored and required by the application layer.
There are significant merits to this form of architecture. The application can be re-scaled easily
and data integrity can be maintained by only having one source for the data.
Data Structures:
The SAP system typically contains various data, such as master data, user data, and transaction
data.
In SAP systems, the following terms must be differentiated with regard to the data structure:
Client-specific data:
Ex:
Client Overview:
Each SAP system can be divided into multiple clients, and each client is identified by a three-
digit numeric value.
Each client has its own master data, user data, and transactional data.
Repository:
The repository is a central store for all ABAP Workbench development objects, such as ABAP
programs, screens, menus, function modules, and ABAP Data Dictionary objects.
Packages:
Repository objects are organized into packages. Packages contain related development objects,
like programs or tables.
Packages can be broadly classified as transportable or non-transportable.
Transportable Package:
A transportable package is a package in which transport attributes are defined. The objects in
the transport package can be transported to the target system.
Non-Transportable package:
Application Component: Use F4 on the field and select Appropriate Application Component.
Transport Organizer:
Objects are transported between clients using CTS. The Transport Organizer is a tool within CTS
for managing the objects that change during the development and customization phases.
The Transport Organizer delivers the changed objects to the target client (Quality or
Production).
KEYWORDS:
1. Declarative Keywords:
To Declare Variables and Constants inside the program.
Ex: DATA, TYPE, TABLES, CONSTANTS, TYPE.
2. Database Keywords:
To perform Database Operations.
EX: SELECT, UPDATE, INSERT, DELETE.
3. Controlling Keywords. -- > To Control the default flow of Program execution.
DO-ENDDO.
WHILE-ENDWHILE.
By default, each statement is executed once and un conditionally.
and can be controlled through conditional Keywords (or) techniques.
4. Definition Keywords:
To define reusable blocks {Reusable Functions}.
Ex: FORM.ENDFORM
FUNCTION...ENDFUNCTION
MODULE...ENDMODULE.
5. Calling Keywords:
To call the reusable blocks which are already defined.
EX:
PERFROM -> CALL FORM - ENDFORM
CALL FUNCTION -> CALL FUNCTION - ENDFUNCTION
MODULE -> CALL MODULE - ENDMODULE
Note: Both Definition and Calling Key words are called as Modularization Techniques.
6. Operational Keywords:
These are used to operate the data with declarative statements.
Ex: WRITE, MOVE, ADD
7.Event Keywords:
These keywords are used define event blocks:
EX:
TOP-OF-PAGE: Used to print the same heading on top of every page
END-OF-PAGE: Used to print the same footer on every page of output list.
SAP ABAP Operators:
The source code of SAP ABAP consists of either statement or comment. Statement is a
combination of operators, operands, variables, and keywords.
Operands: – Operands are the variables which you need to perform particular
operation.
Variables: – Variables is the name given to the memory location.
Ex:
1. Arithmetic Operators
2. Comparative Operators
3. Logical Operators.
Note: There should be at least one space between any type of operator
1. Comparative Operators.
=====================
= or EQ Equal A = B or A = B
3. Logical Operators.
=================
To Check the result of more than one statement Combination.
EX: a. if a > b and a > c.
a is bigger.
b. if sub marks < Pass marks or sub marks < Pass marks.
Failed.
Statemen Stateme AN O
tA nt B D R
T T T T
T F F T
F T F T
F F F F
ABAP Elementary Predefined Datatypes
Initial Field Valid Field Initial
DataType Length Length Value
i 4 4 0
int8 8 8 0
f 8 8 0
Numeric Types p 8 1-16 0
decfloat1
6 8 8 0
decfloat3
4 16 16 0
c 1 1-65535 SPACE
"00000000
Character Types d 8 8 "
n 1 1-65535 "0….0"
t 6 6 "000000"
Hexa decimal
Type x 1 1-65535 X'0…0'
CHAIN OPERATOR:
Group of statements starts with Same Keywords.
ABAP Program Sections:
Header
Global declarations
Processing logic and Reusable blocks
Display
Control Structures
1.Branching Techniques
A. IF-ENDIF, IF-ELSE-ENDIF, IF-ELSEIF-ELSEIF-ENDIF.
B. CASE-WHEN-ENDCASE.
2.Looping Techniques
A. Do-Enddo (un Conditional)
Ex: Print 100 Numbers
B. While-endwhile (Conditional)
Ex: constants Var type I value ‘0’.
While var1 < 1.
Write: true.
Endwhile.
String Operations:
CHAR
We use data type C variables for holding alphanumeric characters, with a minimum of 1
character and a maximum of 65,535 characters.
STRING
Memory allocation is dynamic.
Operations:
1. STRLEN
2. TRANSLATE -> To UPPER CASE/LOWER CASE.
3. CONDENCE -> NO-GAPS.
4. CONCATENATE
5. SPLIT
6. REPLACE
7. SHIFT -> LEFT/RIGHT/CIRCULAR BY <N> PLACES.
8. SEARCH
Comparing Strings:
OPERATOR MEANING
CO Contains Only
CN Contains Not Only
CA Contains Any
NA Contains Not any
CS Contains String
NS Contains No String
CP Matches pattern
NP Does not Match pattern