You are on page 1of 35

SAP ABAP HR

AGENDA  SAP HR Modules  HR-ABAP Over view  Difference b/w ABAP and ABAP HR  Info types:  Subtypes
 Characteristics  Structure

    

Common Info types Time Constraints Personnel Administration(PA) Create a custom info types Enhancements

The various Processes in SAP HR
 Recruitment  Hiring

 Benefits Enrollment
 Employee Training  Travel Expense Administration  Time Reporting & Work  Schedule Planning  Payroll Administration  Employee Development & Salary Administration  Cost Planning & Reporting

SAP HR Modules .

Modules of the SAP HR System  Organizational Management  Personnel Administration  Time Management  Payroll  Recruitment  Training & Event Management  Personnel Development .

HR-ABAP Over view .

Differences b/w ABAP and ABAP HR ABAP  Transparent Tables  No Info types  LDBs are rarely used ABAP HR  Transparent &Cluster Tables  Info types  LDBs are frequently used .

and payroll purposes is of primary importance for master data administration in HR.Info types  Infotypes are used to group related data fields together. time recording. the information units used to enter master data are called infotypes .  USE : Recording employee data for administrative. In the SAP System. and enable you to store data for specific periods. They provide information with a structure. facilitate data entry.

” . information on a person’s city of residence. the old data is automatically time-delimited. For example. each employee infotype has several data records that differ from each other by their validity periods. The system creates a validity period for each infotype record. As a result. street and house number combines to form the employee’s address.When you update an employee’s personal data. and is therefore stored in the infotype “Address.

In information type (infotype) can be divided into subtypes. family data can be broken down further to represent spouse and children. Each subdivision group is known as a subtype .Subtype:  . For example.

 0000 .  Some infotypes are subdivided into Subtypes. INCLUDE STRUCTURE Pnnnn.8999 are controlled by SAP.  Effect: Declares the HR info type nnnn. Creates an internal table as follows: DATA: BEGIN OF Pnnnn OCCURS 10.Characteristics of Info types  Each infotype has a 4 digit code and name. VALID BETWEEN BEGDA AND ENDDA. DATA: END OF Pnnnn. .  Basic form: INFOTYPES: nnnn.

Infotype Naming Conventions  0000 to 0999 – HR Master data / Applicant data(PA)  1000 to 1999 – Organizational Management(OM)  2000 to 2999 – Time data  4000 to 4999 – Applicant data(Recruitment)  9000 to 9999 – Customer defined  3000 to 3999 and 5000 to 8999 – Not yet Defined .

an internal table Pnnnn with the structure Pnnnn is created and all records of the info type are transferred to this table.  When you declare an info type using the INFOTYPES statement.Structure of Info types  The Data Dictionary contains a Pnnnn structure for each info type nnnn.  The info type is defined in the Data Dictionary as a structure without a database. .  The Pnnnn structure of the info type is used as the field structure for the info type entry screen.  The info type structure Pnnnn corresponds to the table PAnnnn.

Info type is Combination of Structure Pnnnn TABLE PAnnnn -PA PBnnnn -.Recruitment HRPnnnn -OM Module pool MPnnnn00 .

Common Info types PA Type Info types:          0000 0001 0002 0006 0007 0008 0009 0014 0015 Actions Organizational Assignment Personal Data Address Planned Working Time Basic Pay Bank Details Recur. Payments/Deds. Additional Payments  0016 Contract Elements  0019 Monitoring of Tasks  0021 Family member/Dependents  0022 Education  0025 Appraisals  0027 Cost Distribution  0032 Internal Data  0041 Date Specifications  0105 Communication .

OM Type Info types:  1000  1001  1007  1011  1028 Object Relationships Vacant positions Work Schedule Address .

Recruitment Type Info types:       4000 4001 4002 4003 4004 4005 Applicant Actions Applications Vacancy Assignment Applicant Activities Applicant Activity Status Applicant's Personnel Number .

Time Mgmt:            2001 2002 2003 2004 2005 2006 2007 2010 2011 2050 2051 Absences Attendances Substitutions Availability Overtime Absence Quotas Attendance Quotas Employee Remuneration Info Time Events Annual Calendar Monthly Calendar .

Benefits:      0167 0168 0169 0170 0171 Health Plans Insurance Plans Savings Plans Flexible Spending Accounts General Benefits Information .

overlaps may exist . which is to say that all the records are valid only for a particular time frame. • Time Constraint 1:No gaps. no overlaps • Time Constraint 2:Gaps may exist. This is due to the fact that all the info type records are Time Delimited. namely Time Constraint 1. 2 and 3. but no overlaps • Time Constraint 3:Gaps may exist.Time Constraints • The concept of Time Constraints is very important in HR ABAP. • Info types have a validity period. • Time Constraints control overlap of data. • There are three types of Time Constraints for info type records.

the system automatically uses the start date of the new record as the delimitation date of the old record.  Infotype 0000 Actions  Infotype 0001 Organisational Assignment  Infotype 0002 Personal Data  Infotype 0008 Basic Pay . If a new record is created. • The validity periods of the individual records must not overlap. exactly one valid info type record must exist.Time Constraint 1: • For the entire time that the employee works at the organization .

 Infotype 0045: Loans . the system automatically delimits the previous record. • If a new record is created. Records with constraint 2 must not overlap.Time Constraint 2: • No more than one valid record can exist at any one time. • Examples:  Infotype 0185: Personal ID’s  Infotype 0021: Family/ Related Person. if one exists.

The individual records do not conflict with each other. • For example. • Examples  Infotype 0024: Qualifications  Infotype 0040: Objects on Loan  Infotype 0102: Grievances .Time Constraint 3: • Any number of valid records can exist at any one time. an employee may have many qualifications records simultaneously (overlaps permitted). the record may be delimited (gaps permitted). If a qualification expires.

Time Constraints Start Date 1 31/12/9999 0001 Org Assign. 2 2001 Absence 2001 Absence 0040 Objects on Loan 3 0040 Objects on Loan 0040 Objects on Loan . 0001 Org Assign.

Personnel Administration(PA) . .

Workflow.What is Personnel Administration module? Central repository employee data. SD. FI/CO. Basis of the entire HR system. Integrates with ALL HR modules. SM. . PM.

The Personnel Administration (PA) module is used for creating. Once the employee is hired. maintaining and processing employee data within the organization. the PA module is used to perform a number of functions including updating employee records. . When an employee is hired their details are stored in the PA module.

.

.

.

Important Info types in PA Most Commonly used Infotypes in PA           Action (0000) Organizational Assignment (0001) Personal data (0002) Address (0006) Org Assignment Planned working time (0007) Basic Pay (0008) Bank Details (0009) Personal Data Infotype 0019 (Monitoring of Tasks) Infotype 0041 (Date Specifications) Infotype 0105 (Communication) Basic Pay  Work Schedule Employee Address .

Create a custom info types Tables:        V_ T582A T777D V_T591A T588Z T778T T777T T77NI View/table maintenance for Infotype Characteristics View/table maintenance for Technical Attributes View/table maintenance for Subtype Characteristics View/table maintenance for Dynamic Actions List of Infotypes Infotypes other with Name Country-Specific Infotype .

T Codes: PA20 PA30 PA40 PM01 SM30 Display HR Master Data Maintain HR Master Data Personnel Actions Create Info type Maintain Table Views .

holding as little or as much information as you wish!  Stores history of information and people  Is KEY to the successful running of a SAP.Summary Personnel Administration  Represents an employee personal file. .

.Enhancement  System automatically generates the program ZPnnnn00 and called in MPnnnn0.  Pnnnn->PSnnnn->CI_Pnnnn.