An Overview of HR ABAP For BI Reporting1
An Overview of HR ABAP For BI Reporting1
Objective?
DS in PA LDB on PNP/PNPCE Joins, Projections Cluster DB Tables in HR DS in PP LDB PCH Customer Specific Info types
HR ABAP Advantages
2
1
Infotypes, their DS & overview on Check & Control Tables
3
Topics
What
are Infotypes? Why Infotypes? Number ranges Time Constraints Infotypes Structures Enhancement of Infotypes
Infotypes?
What?
Number Ranges
0000 0999 1000 1990 2000 2999 4000 4999 9000 9999
Org Assignment 0001, Personal Data 0002 Addresses 0006, Family Member/Dependents - 0021
6
DS
in HR are a combination of
Examples
0000 Actions 0001 Organizational Assignment 0002 Personal Data 0003 Payroll Status
Subtypes
0006 Address
9
10
11
12
13
14
Time Constraints
Specified
Every
infotype and its subtype has time constraint 7 types of time constraint
15
Time Constraints
Time Constraint #1
Complete Savings No overlaps Only relevant data must exist during the period
Example : Date of Birth
Time Constraint #2
Incomplete Savings without overlaps Not more than 1 record at any point of time
Example : Projects Bench Project
16
17
Time Constraint A
Time Constraint B
Time Constraint T
Time Constraint Z
Infotype Structures
Each
20
Every
PAKEY: Key fields PSHD1: Administrative Information PSnnnn: Infotype specific fields
21
22
23
Data
records of the Infotypes are stored in the transparent database tables PAnnnn
Example : PA0003 Payroll Status
Each
24
Every
PAKEY: Key fields PSHD1: Administrative Information PSnnnn: Infotype specific fields
25
26
Key Fields
27
PERNR: Uniquely identifies an employee SUBTY: Subdivisions of infotypes OBJPS: Differentiates records of infotypes with same features SPRPS: Locks and unlocks the data records ENDDA: End period of a record BEGDA: Starting period of a record SEQNR: Differentiates records with same key and Time constraint 3.
28
Administration Fields
29
AEDTM (date the record was changed) UNAME (name of the person making change) ITXEX (plain text for the infotype) PREAS (reason for changing the master data)
30
CI for Customer Includes 1. Present within PSnnnn 2. CSF can be added to this include as Ench. To Infotypes
31
Contains infotype specific data fields Customer specific fields can be added through the INCLUDE CI_PXXXX
32
Enhancement of Infotypes
TCODE : PM01 used for the enhancement of the standard infotypes and for the creation of new infotypes
33
Types of Enhancements
Two
Categories
34
Select Single Screen tab in PM01 Type the infotype no to be enhanced Select Customer Include and click on Edit
35
Give
Click
on Generate Objects
37
In PA30, to view the enhancement, type the infotype and click on create
38
Here, the enhanced field is displayed along with the standard fields of the infotype
39
40
41
Create
In PM01
After
creating the DDIC structure, in PM01, select IT tab and give infotype 9xxx and then click on Generate Objects
43
The
DB table PA9xxx Structure P9xxx Module pool MP9xxx00 3 screens (1000, 2000, 3000 for M P) Interface Status Dialog Module (RP_9xxx)
44
In this screen, click on the new entries to apply the characteristics of the new infotype
45
Here, give all the necessary characteristics of the created infotype and save
46
In PA30 type the created infotype for the PERNR and click on create
47
Created Infotype
The new infotype is displayed with field as created in the DDIC structure
48
49
Overview of Changeability
50
Subtype Controls
Remember 0006 Address
51
52
2
ABAP Snippets
53
54
PERNRs Duality
Whenever you declare TABLES keyword, then PERNR in the declaration has a duality (i.e.) it acts both as Key + I.tab Now, a skeleton structure for all the Infotypes declared as INFOTYPES will be created. GET PERNR This line will process the entire records for the particular PERNR using the combination of I.types.
55
56
GET
PERNR
This will make all infotype records to be imported to I.tab Pnnnn. Example
Import to P0006 : All recs of Infotype 0006
Address
BEGDA : Begin Date 1st January 2008 ENDDA : End Date 31st December 2008
57
58
Where Clause
59
Used to determine # of filled lines of an Infotype table Subsequent statements are executed only if the conditions are fulfilled
60
Only valid for a specified periods .:. Each record has a valid date from & date to
Macros!
RP_PROVIDE_FROM_LAST RP_PROVIDE_FROM_FIRST
61
62
Time Selection
63
Screening Criteria
64
65
Sort Order
Ascending Order
66
3
Logical Database LDB
67
Types of LDBs in HR
In
Human Resources (HR), the following logical databases can be used as a data source for HR Info Sets: PNP PNPCE PCH PAP
68
Introduction on LDB
Facilitates
the process of reading database tables It combines + compares contents of certain DB Tables
HR Personnel Administration
This has PNP/PNPCE as its LDB
69
Attributes of LDB
70
PNP
HR master data (Infotypes 0000 to 0999). Best suited for selecting persons.
PNP
73
Question
Can an employee designated as concurrently employed person can have several simultaneous personnel assignments at the company.
Understanding PNPCE
Solution
How?
75
76
PNPCE Structure
HR Master Data
78
PP Module PCH
For
PP Module
What
to process?
PP Objects
How?
Evaluation Paths
80
Sequential Evaluations
Personnel Planning
OBJEC
Structural Evaluation
83
4
Specific Commands
85
Scenario
The board requires lists that display data valid for an employee in a specified date selection period Solution
Use macros for Personnel Administration logical databases Macros Modularize Source Code 2 types
Process using Specific Infotype Record RP..LAST Import Specific Infotype Records
86
87
88
89
90
Reading PA/Sub.Area
91
92
93
5
Personnel Planning
94
Personnel Planning
PP Design
95
96
003
A003
B003
97
Evaluation Paths
98