ABAP HR - Day I
ABAP HR - Day I
Agenda Day 1
Basics of SAP HR and Why ABAP HR Logical Databases PA (Personnel Administration) - Overview Structure of Database Tables in PA Infotypes Overview
Topic List
Basics of SAP HR and Why ABAP HR Logical Databases PA (Personnel Administration) - Overview Structure of Database Tables in PA Infotypes Overview
What is SAP HR / HCM ? When to use SAP HR / ABAP HR ? Where is SAP HR / HCM used ? How is SAP HR / HCM beneficial ?
Why ABAP HR ?
Basics of SAP HR
contd
SAP HR or SAP Human Resources Management System is one of the largest modules in the SAP R/3 system which consists of many sub modules like: Organizational Management Personnel Administration Recruitment Time Management Payroll Compensation Management Personnel Cost Planning Budget Management Personnel Development Training & Event Management Travel Management Environmental Health & Safety.
HR as a Function- HR LC
Acquire Strategize and Plan
2. Staff Acquisition
Right Person
Sustain
4. Compensation Management
5. Benefits Management Performing 1. HR Strategy 6. Employee Training ,Development and Performance Management 7. Leave and attendance Mgt
Well
8. Travel Management
Separate
3. Separation Management
Organisational Management
Master data
HR
Time Management
Payroll Accounting
HR Structures
Enterprise structure.- Client, Company code, PA, PSA Organizational structure Org Unit, Position, Job, Task Personnel structure.-Emp Group, Emp Sub-Group. Payroll accounting Area
Organizational Unit
O Organizational Structure
O
S O O
Position
Job C S
Personnel Structure
S C S
Retiree
Employee
Active
Hourly Worker Monthly worker Executive Manager Senior Manager Student Expatri
Enterprise Structure
WT01
WT03
1000 KAR Administration Sorti Hourly Worker Monthly worker Executive Manager Senior Manager Student Legal
1101 WB
Finance Engineering
HR
Quality
Mkt
Personnel Sub-Area
Enterprise Structure
Organizational Structure
Organizational Unit (O)
Incorporates Is managed by
Job (C)
Describes Is described by
Position (S)
Holder
person (P)
External
Pensioner
Active
Active
Basics of SAP HR
contd
Topic List
Basics of SAP HR and Why ABAP HR Logical Databases PA (Personnel Administration) - Overview Structure of Database Tables in PA Infotypes Overview
LDB
What is a LDB ?
contd
Logical databases are special ABAP programs that retrieve data and make it available to application programs. The most common use of logical databases is still to read data from database tables and linking them to executable ABAP programs while setting the program contents Logical databases contain Open SQL statements that read data from the database. You do not therefore need to use SQL in your own programs A logical database can read the lines of these tables one after the other into an executable program in a sequence which is normally defined by the hierarchical structure
LDB
contd
LDB
3 Components of an LDB
STRUCTURE The structure defines the data view of the logical database. SELECTIONS The selections define a selection screen, which forms the user interface of the executable programs that use the logical database. DATABASE PROGRAM The database program contains the ABAP statements used to read the data and pass it to the user of the logical database.
contd
LDB
Structure of Logical Database
The structure of a logical database is usually based on the foreign key relationships between hierarchical tables in the SAP System.
Logical databases have a tree-like structure The nodes must be structures defined in the ABAP Dictionary or data types from a type group
. contd
LDB
When to use a LDB ?
contd
It is always worth using logical databases if the structure of the data that you want to read corresponds to a view available through a logical database. To Read the same data for several programs.
LDB
contd
Where to search / view / create / edit LDBs ? SE36 Transaction Code for Logical Database Operations
Logical databases have a tree structure. A logical database can contain a maximum of 300 tables
SAPDB<LDB Name> is the name of the database program for the logical database. Ex. SAPDBPNP for PNP - LDB
LDB
Advantages of using LDB
contd
LDB
Events in an LDB GET Event
contd
LDB
contd
DEMO
Structure of DB tables in PA
Logical Structures and Database Tables in PA
Logical structures
Pnnnn
KEY fields
PERNR
Infotypes Overview
What is an Infotype ? When to use Infotype ? Where are Infotypes present ? How is Infotype beneficial ?
PA0002
MANDT
PAKEY
PSHD1
PS0002
PSKEY
PSHD1
PS0002
GET PERNR. PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA. WRITE...
ENDPROVIDE.
Infotype loop
END-OF-SELECTION.
JANUARY - APRIL
MAY - AUGUST
Ms Y
SEPTEMBER - DECEMBER
SAP AG 1999
Data Selection
January
December
Org. Assignment
January
December
Org. Assignment
January
December
Data selection Person selection INFOTYPES: ... GET PERNR. PROVIDE... WRITE... PAnnnn
SAP AG 1999
Sort Order
SAP AG 1999
JOIN INFOTYPES
JOIN / CODING
JOIN / SUBTYPES
PROJECTION
PROJECTION / CODING
Topic List
Basics of SAP HR and Why ABAP HR Logical Databases PA (Personnel Administration) - Overview Structure of Database Tables in PA Infotypes Overview
Any Questions?
Thank you