Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Objective?
HR Reports Generation using LDB Customer Specific Info types creation.
HR ABAP Advantages
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?
Infotypes exist for each employee Each of these records are valid for a particular period of time.
Number Ranges
0000 0999 1000 1990 2000 2999 4000 4999 9000 9999
This
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
: Mobile Number
16
17
Time Constraint A
Infotypes exists just once from Jan.1 1800 to Dec.12 9999
Time Constraint B
Exists for maximum of once from Jan.1 1800 to Dec.12 9999
Time Constraint T
Time constraint is based on subtype or subtype table
Time Constraint Z
Time constraint for time management infotypes - T554Y
18
Infotype Structures
Each
20
Every
21
22
23
Data
records of the Infotypes are stored in the transparent database tables PAnnnn
Example : PA0003 Payroll Status
Each
24
Every
25
26
Key Fields
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
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 infotypes and for the creation of new the standard 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
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
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 a skeleton structure for all the Infotypes declared as INFOTYPES will be created. PERNR This line will process the entire records for the particular PERNR using the combination of I.types.
55
Now,
GET
56
GET
PERNR
This will make all infotype records to be imported to I.tab Pnnnn. Example
Import
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
Methods
of Data Selection
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
69
Attributes of LDB
70
PNP
HR master data (Infotypes 0000 to 0999). Best suited for selecting persons.
Generate
71
PNP
Date This
73
Question
Can an employee designated as concurrently employed person can have several simultaneous personnel assignments at the company.
Understanding PNPCE
Solution
75
76
PNPCE Structure
HR Master Data
77
78
PP Module PCH
For
PP Module
to process?
PP Objects
Evaluation Paths
80
Sequential Evaluations
Personnel Planning
81
OBJEC
Structural Evaluation
83
84
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
87
88
89
90
Reading PA/Sub.Area
91
92
93
5
Personnel Planning
94
Personnel Planning
PP Design
96
003
A003
B003
97
Evaluation Paths
98