SAP Abap Core
SAP Abap Core
Systems, Applications & Products (SAP) is an ERP system by SAP AG, a company based in Walldorf, Germany. The
various products and modules offered by SAP ERP enable customers to perform day-to-day business processes,
such as accounting, sales, production, HR, and finance
The ABAP application server is present on the Application layer of the SAP architecture. The
application layer is the most important component of the SAP architecture as ABAP programs
execute in this layer, and it communicates with both layers.
The application server is responsible for interpreting the ABAP/4 programs. An ABAP program
can start on the presentation server, but it can only execute at the application server
Each ABAP program is stored in the SAP database tables of the database layer, unlike the
other C or Java, where programs are stored in other large files.
The SAP database stores program in two forms, which are source code and generated
code. The source code can be viewed and edited by the Workbench editing tools such
as ABAP Editor, and the generated code is the binary representation of the source code.
Each program in ABAP has its type that specifies how that program will run. There are mainly
two types of ABAP programs, which are:
o Executable Programs: The executable programs can run directly or can start directly
by entering the name of the program. These are of two types:
o Reports
o Module Pools
o Non-executable Programs: The non-executable programs cannot be run directly.
These programs contain the source code that can only be used by the other application
programs. These are of following types:
o Interface Pools
o Include Programs
o Function Groups
o Subroutine Pools
o Object Classes
o Class Pools
o ABAP Editor
o Data Dictionary
o Menu Painter
o Screen Painter
o Function Builder
o Debugger
o Object Navigator
ABAP Data Dictionary: It is one of the most important tools of the workbench, which is used to
create and manage the tables without redundancies. It can be directly accessed using
the SE11 transaction code.
ABAP Editor: It is another important component of the ABAP Workbench, which is a source-code
editing tool. The ABAP developers spend lots of time on this ABAP editor. It is the tool where we build
all the logics and write/edit the code. It can be directly accessed using the SE38 transaction code
Object Navigator: It is the main entry point of the ABAP workbench as it brings all the tools
together and also creates an efficient environment for us to develop the programs. It can be
used to organize programming applications in an integrated environment. It is the best-used
tool when we need to develop large programs with many function modules and many screens
as it provides an easy way to navigate between the applications. We can directly access it
using the transaction code SE80
Function Builder: It is most similar to the ABAP editor and allows us to access the entire SAP
standard module. But its primary function is to define some specific tasks that can be accessed from
other programs also. Such as, we can create interfaces using function builder. It can be directly
accessed by using the SE37 transaction code
Screen Painter: It is used to define the input screen, such as by using this, we can create our own
GUI screen for the programs. It allows us to create the dictionary objects such as views, database
table, etc. It can be accessed using the SE51 transaction code.
Menu Painter: Menu Painter is a tool, which is used to create the user interface for our program. It
can generate the buttons, menu bar, icons, etc., or can customize the user menus which are given by
default. We can also define whether a menu event should be triggered through the double mouse
click or by pressing the enter key. It can be accessed directly by using the SE41 transaction code.
Class Builder: It is the same as a function builder and used to create class Objects. It can be directly
accessed using the SE24 transaction code
ABAP RICEFW
RICEFW stands for Reports, Interfaces, Conversions, Enhancements, Forms, and Workflows. These are the six
categories of development work that are commonly carried out in SAP projects
1. Reports: Reports are used to retrieve data from the SAP system and present it in a user-friendly format.
Reports can be simple or complex, and can range from a few lines of code to hundreds of pages. A report
could be a simple list of customer names and addresses or a complex analytical report showing financial
performance. Example: Sale Report, Purchase reports, Vendor master reports, Customer report etc.
2. Interfaces: Interfaces are used to transfer data between the SAP system and other systems or
external parties. Interfaces can be inbound or outbound, and can be either real-time or batch. An
example of an interface is a daily upload of sales data from a legacy system into SAP.
3. Conversions: Conversions are used to convert data from one format to another. Conversions can
be used to convert data from a legacy system into SAP or to convert data from one SAP system to
another. For example, a conversion might be used to convert product descriptions from a legacy
system into SAP.
4. Enhancements: Enhancements are used to add functionality to the SAP system that is not available
out of the box. Enhancements can be small or large and can range from a simple screen
modification to a complex new module. An example of an enhancement is the addition of a custom
field to a standard SAP screen.
5. Forms: Forms are used to create printed or electronic documents in the SAP system. Forms can be
used to create invoices, purchase orders, or shipping documents. A form could be a simple layout of
customer information or a complex form with dynamic fields and images.
6. Workflows: Workflows are used to automate business processes in the SAP system. Workflows
can be used to route documents for approval, trigger events based on certain conditions, or send
notifications to users. An example of a workflow is the approval process for purchase orders.
Important T Code for ABAP
Data Type in SAP ABAP-Data types are the actual type definitions in ABAP Dictionary. They allow you to define elementary
types, reference types, and complex types of the ABAP type concept that are visible globally in the system. The data types of database
tables are a subset of all possible types, namely flat structures
1. Elementary Types
2. Complex types
3. Reference types
Elementary Types – The Elementary type is further divided into the fixed-length and variable-Length type.
The fixed length: This are fixed length types in ABAP are C, D, N, T, F, I, P and X
These types consist of:
Numeric types: I,F,P.
Character Types: C , D , N , T
Hexadecimal Types: X
When you declare a data object that has a fixed length type, you must specify its length in the variable declaration for Example:
In this Example, the length of the gv_name variable is 50. You cannot store more than 50 Characters in the gv_name variable.
LV=Local Variable
GV=Global Variable
DATS Date 8 D
End of Structure
A structure is an instance of a structure type. To define a structure type, you use the types statement.
End of Address.
You can access the individual field of a structure using the following syntax:
Structure_name.Field_name
Go to T-code: SE16N
Type first two letters then put third letter as * then press F4
Customer KN*
Sales VB*,VA*,VK*
Shipping VT*,VB*,VE*
Delivery LI*
Billing VB*,VR*,VK*
Pricing KO*
Purchasing EK*,EI*
FI tables BS*
This is the rule imposed by SAP. SAP reserves all the other PROGRAM names starting with A to X for its
standard programs. Users are allowed to create programs starting with Y and Z only.
Programs Starting with Y and Z are CUSTOM GENERATED PROGRAMS generally created basing on the
user requirement with an additional functionality to the standard program.