GIFT SAP ABAP DAY 1
GIFT SAP ABAP DAY 1
Planning?
What is ERP?
The acronym ERP stands for Enterprise Resource Planning. In early 90’s
when Industries were expanding, then there was a need of a system or
structure that will centralize business Information i.e. bring all the Industrial
information at a single place. As the name suggests Enterprise needs
a planning to manage all its resource i.e. Human Resource, Manufacturing
Resource, Production Resource, Capital Resource, etc. In Business world, it
refers to the systems & software packages used by organizations/industries
to manage daily business activities, such as procurement, manufacturing,
delivery, accounting, project management and human resource management.
Advertisements
FIS Global
Oracle
Fiserv
Intuit Inc.
Cerner Corporation
Microsoft
Ericsson
Infor
McKesson
Basic Modules of ERP:
Human Resource
Inventory
Advertisements
What is SAP?
SAP is software as well as a Company which provides ERP solution.The
initialism SAP stands for Systems, Applications & Products in Data
Processing.
It is pronounced as S-A-P. (In German language, sap means idiot. That’s why
they forbid it to call sap and rather call it S.A.P)
The SAP software is built on ABAP Programming language which was
developed by SAP itself.
The Headquarter of SAP is in Walldorf, Germany.
The current version of SAP software is called SAP-ERP 6.0 which is an
upgraded version of SAP-R/3, here R stands for ‘Real Time Processing’ and 3
stands for ‘3 tier’ platform i.e.
1. Database
2. Application server -> Select
3. Client (GUI)
DATABASE
Basic Architecture of NetWeaver Stack
SAP-ECC i.e. ERP Central Component is the core component of the SAP’s
Business Suite which consists of:
ERP
CRM
SCM
S/4 HANA
What are Modules in SAP?
Initially, SAP was single software for all operations but with time it evolved and
started focusing upon different processes.
To lower the load on single software and to divide the work on the basis of
field, it came in different modules. SAP has following major Modules:
MM: Material Management
PP:Production Planning
SD:Sales and Distribution
HR:Human Resources or HCM: Human Capital Management
QM:Quality Management
FICO:Financial Accounting and Controlling
What is SAP-NetWeaver?
SAP-NetWeaver is a technology by SAP which is developed primarily
using ABAP. It is a solution stack of SAP’s technology products.
In simpler words, it is a breadboard on which other hardware’s (here SAP-
Modules/ Non-SAP modules) can be attached.
What is SaaS?
SaaS stands for software-as-a-service.It is a way of delivering
applications/Apps over the web/internet.
Customers can access SaaS Apps right from any Web browser via any of
their devices (Mobile, PC, tablet). It means there is no requirement to buy,
install, maintain, or update any Hardware or Software.
The SaaS provider will take care of every next required operations– and the
customer will always have the latest version of the application.
Following are the major SaaS products:
SAP-SuccessFactors HR Solutions
SAP-Hybris Cloud for Customer
Ariba Network: Sourcing, Procurement, & Finance
Concur: Travel & Expense Management
What is ABAP?
A general interview question: “What is ABAP?”. ABAP stands for Advanced
Business Application Programming. It is a 4th Generation (because it is
domain specific language) programming language developed by SAP. The
ABAP kernel is implemented in C++.ABAP is a hybrid programming language
that supports both a procedural and an object-oriented programming model.
All ABAP programs also called Reports reside inside SAP database. In the
database all ABAP code exists in two forms: source code, which can be
viewed and edited with the ABAP Workbench tools; and generated code, a
binary representation somewhat comparable with Java byte code.
When you write a code in ABAP editor, it is saved in two files. One is the
exact what you have written and other is the code converted in Binary format.
The Binary code is the one actually executed by the computer.
ABAP has both compiler and Interpreter. Firstly, the ABAP compiler translates
an ABAP program it into an intermediate language called an ABAP load. Then
the ABAP virtual machine, an interpreter for ABAP loads (i.e. it can execute
ABAP loads) comes into the picture. SAP has two tables to store these files,
ABAP reports in D010S table and ABAP Loads in D010L table.
ABAP on Application Server ABAP
ABAP is the programming interface of Application Server ABAP (AS ABAP) in
SAP NetWeaver. A prerequisite to use the ABAP programming language is to
install an Application Server ABAP. The components of an Application Server
ABAP can be organized in the layers (presentation, application, and
database) of three-tier client-server architecture in accordance with their
tasks.
The presentation layer represents the user interface of an AS ABAP (SAP
GUI or Web browser)and it is distributed to the workstations of individual
users.
The application layeris implemented by utilizing one or more application
servers. The application layer contains the ABAP runtime environment in
which ABAP programs are executed.
The database layerconsists of a database system in which the central dataset
of an Application Server ABAP is saved.
Programming Models
ABAP supports the following:
An object-oriented programming model based on classesand interfaces
A procedural programming model based on function modulesand subroutines
Both modules offer interoperability.
Types of ABAP programs
ABAP distinguishes two types of executable programs:
Reports : Simple Programs which provides Input/output option to user
Module pools: Complex Programs which provides different screens for better
user experience.
Development Environment
There are two possible ways to develop in ABAP.
ABAP Workbench
The ABAP Workbench is part of the SAP ABAP system and is accessed
via SAPgui. It contains different tools for editing programs. The most important
of these are (transaction codes are shown in parentheses):
ABAP Editor(SE38): It is used to write and edit reports, module pools,
includes and subroutine pools
ABAP Dictionary(SE11): It is used to process database table
Menu Painter(SE41): It is used to design the user interface (e.g. menu bar &
standard toolbar)
Screen Painter(SE51): It is used to design screens and flow logic
Function Builder(SE37): for function modules
Class Builder(SE24): It is used to construct ABAP Objects classes and
interfaces
The Object Navigator (SE80) provides a single integrated interface to access
various tools (including all tools mentioned above).
Domain in ABAP
To define Data in ABAP Dictionary we need Domain, Data Element and
Tables. Domain in ABAP is the smallest unit that is defined in ABAP
Dictionary. Thereafter, Data Element is created which further describes the
domain to the End User. Thereafter Table is created which utilizes the Data
Element.
All domains are saved in a Standard ABAP Table DD01L and their Text
Descriptions are saved in Standard ABAP Table DD01T.
Definition:
Domain in ABAP is a reusable object that is assigned to a Data Element and it
is used to define a value range (F4 Help) and provides technical attributes
(Data Type, Number of character, etc).
Creation of Domains:
#Using ABAP Dictionary
Format
It describes
type of data
e.g. INT for
Data Type Choose from pre-defined values
Integer and
CHAR for
Character
20 for CHAR
No. of
Maximum length of Data means 20
Characters
Letters allowed
Decimal Places
mainly for Float
Decimal Places Max. allowed Decimal Values
Type Value e.g.
10000.08
Output
Characteristics
It is mainly for
Output Length Max. Output Length
Floating Values
Takes Input in
one format and
Two Function Modules: return as
another e.g.
Conversion
CONVERSION_EXIT_xxxxx_INPUT Takes
Routine
CONVERSION_EXIT_xxxxx_OUTPU 02.01.2009 as
Input and
T
Returns 02 Jan
2009 as Output
F Female
M Male
DATA ELEMENTS
We cannot use Domain directly neither in a Report/Program nor as a table
field. We need to add some semantic information i.e. Field Label, heading,
etc. For this purpose we need data elements.
Advertisements
Definition:
Data Elements are reusable objects that are used to add Field Label,
Heading, Documentation (F1 Help) and assign a parameter ID and a Search
Help (F4 Help).
Note: In Domain Level also we have an option to define Search Help which
fetches either fixed value defined there or from Value Help Table while the
one we assign in Data Element is from Global Search Helps that we create via
SE11.
It adds technical
Enter your Domain characteristics in Data
1. Domain
Name Element same as that
of Domain.
Step 05: Add your Search Help, Parameter ID, Default Component Name and
Mark your Data Element as a change document under Further
Characteristics tab. For more read ABAP Documentation.
Step 06: Add Short, Medium, Long, Heading field label under Field Label tab.
Field Label is used to display the name of fields in Parameters of Report,
column Header of Table & structure. The purpose of providing different Labels
is that these labels are displayed according to input template size.
SAP Tables
Unlike other Database where we write SQL commands (DDL) to create table,
SAP provides us option to create Tables in ABAP Dictionary. Upon Activation,
SAP Tables are actually defined in database.
If allowed, It allows
Select the
Data Browser/ Table the table owner to
Maintenance option
View Maint. maintain data via
from given drop down
SE16.
It can be 16 digit
Alphanumeric word
It is the column name
Field starting with a letter
of your table
and can contain
underscore
Predefined Type : If you are not using Data Element, click the
Predefined Type tab & enter following:
According to
Any Data type like
Data type requirement specify
CHAR,INT
the data type
Length will be
Give max length of
Length dependent upon Data
your field
Type
To Address Include
Group 3-27 Character
Structure fields