Points of Difference*
Normal (General) ABAP
• Less Usage of Logical
• Do not cover much additional
• Non coverage of Time
• Less Usage of Macros and
• Storage and Access of Data
• Authorization Checks
• No Use of Provide Statements
and repetitive structure
• More Usage of Logical
• Covers more additional HR
• Coverage of Time Dependent
• More Usage of HR specific
Macros and Function Modules
• Storage & Access of Data
• Authorization Checks
• Use of Provide Statements and
* Described further in lateral slides
• In General ABAP, we rarely use Logical
Databases in our programs while in HR ABAP,
most of the time we are using Logical
Databases to select data from Infotypes by
using GET event.
• Logical Databases used in HR module are:
PNP, PNPCE, PCH, PAP, PTRVP etc. It provides
Standard Selection-Screen, Data retrieval and
Automatic authorization check facilities to the
• In ABAP HR, use of certain SAP HR specific
functional concepts are involved such as,
Infotype Concepts, Time Constraint concepts,
Retroactive evaluation of employee data etc.
• HR module uses a system of data grouped
together called Infotypes. It’s a four character
numerical string. It can be processed
Individually or in Fast entry mode.
• Infotype can be saved as time-dependent to
enable retroactive evaluation of employee data.
Time Dependent Data
• Infotype provides facility of storing Time
dependent data of employee. It enable you to
determine how the validity periods of Infotype
data records interact. For that mostly used three
time constraints are: Time Constraint 1: Exactly
one valid data record of Infotype exist. Gaps and
Overlapping not allowed. Time Constraint 2: No
more than one valid data record exist at any
given time. Gaps are allowed but Overlapping
not allowed. Time Constraint 3: Any number of
records exist at any given time. Both Gaps and
Overlapping are allowed.
Macros and Functional Modules
• Program that process the cluster data, do not
access the cluster independently. The data is
accessed using a defined Interface created with
macros. Macro contain some part of source code
which may be useful for no. of applications. Ex.
RP_PROVIDE_FROM_LAST etc. (PNP-SW-FOUND
= 1 for successful records).
• Generally but Not in every cases, HR Specific
function modules starts with HR* and RH*. Ex.
Storage and Access of Data
• HR specific Data are stored in Infotypes, which can be
accessed through special kind of ABAP/4 program
which is called as Logical Database. Using LDBs,
facilitates the process of reading Database tables.
• Data Retrieval/Access from LDBs:
1. Create Data Structure for Infotype
- INFOTYPES: 0001. “Org. Assignment
2. Fill Data Structure with Infotype records
GET PERNR. “ Get Event
3. Read Data
- PROVIDE * FROM… “ Provide Statement
• Authorization for Persons:
In the authorization check for persons, the system
determines whether the user has the authorizations
required for the organizational features of the
employees selected with GET PERNR.
• Authorization for Data:
In the authorization check for data, the system determines
whether the user is authorized to read the Infotypes
specified in the report.
• Deactivating the Authorization Check:
In certain reports, it may be useful to deactivate the
authorization check in order to improve performance.
(e.g. when running payroll)
Provide Statements and Repetitive Structure
• The infotype records (selected within the period) are
processed sequentially by the PROVIDE - ENDPROVIDE
loop. Ex. PROVIDE * FROM Pnnnn BETWEEN PN/BEGDA
If Pnnnn-XXXX = ' '. write:/ Pnnnn-XXXX. endif.
• In the Repetitive structure, you must define the starting
point, the increment and the work area which contains
the complete field group definition. Ex.
DO 6 TIMES VARYING VACATION
FROM P0005-UAR01 "Starting point
NEXT P0005-UAR02. "Increment
If p0005-xyz then ... endif.