sitemap
ABAP HR
Personnel Administration (PA)
PA involves administrating employee data, commonly referred to Master Data. Master Data
contains all employee data used in HR processing. Master Data includes Personal (E.g.
address), Organizational (Position description), Benefits (Insurance, Pension), Time & Payroll.
Master Data is stored in Infotypes. Infotypes are tables (for user Data entry screen) that
contain logically related employee data. Data can be stored for specific periods, which includes
current and historical.
Components of PA:
Personnel Area: represents a division of a company code into subunits. It is an
organizational entity representing an area within an organization defined by specific aspects of
personnel administration, time management and payroll. Personnel areas are subdivided into
personnel subareas. Personnel area is specific to HR and is a four character alphanumeric
identification. E.g. Personnel area 100 is for employees in Karnataka, 200 is for Chennai.
Personnel Subarea: is a further subdivision of Personnel area. It may represent geographical
locations. Functions include:
1. Set groupings for Time Management, so that work schedules, substitution and absence
and leave types
can be setup for individual personnel subareas.
2. Generate default pay scale type and area for an employee's basic pay.
3. Define public holiday calendar.
Employee Groups: divides or groups employees into various categories. E.g. Active
employees, Retired employees, Contractors Employee groups are used to generate default
values for payroll accounting area and basic pay.
Employee Subgroups: are further differentiated within the employee group. E.g. Salaried
employees, Hourly employees, unionized employees, Executives The employee subgroup
grouping for the payroll rule allows you to define different payroll procedures for different
employee subgroups. For e.g. you can specify whether an employee's pay should be
determined on hourly or monthly basis. The employee subgroup grouping for the work
schedule defines the validity of work schedule, and the attendance or absence quota type
determines the validity of time quotas.
Here a Data Model
Importance of Dates and periods in payroll
Here is a simple ABAP example of reading DATE types stored in infotype 0041.
There can be a maximum of 12 dates stored in this infotype. Here is an example of an
infotype 0041 record:
The date types are stored in PA0041-DAR01, PA0041-DAR02, etc.
In the example above, PA0041-DAR01 is “01”, PA0041-DAR02 is “09”.
The dates themselves are stored in PA0041-DAT01, PA0041-DAT02, etc
To read through this in ABAP, the easiest way is to use the DO VARYING statement. Here is
a simple demonstration ABAP:
Note: to print the text of the date type, e.g. “Leave year entry” select from table T548T.
REPORT ZDATES1.
TABLES: PERNR.
DATA: BEGIN OF MYDATES,
DAR LIKE P0041-DAR01,
DAT LIKE P0041-DAT01,
END OF MYDATES.
INFOTYPES 0041.
GET PERNR.
WRITE: PERNR-PERNR, PERNR-ENAME. "Show employee number and name
RP-PROVIDE-FROM-LAST P0041 SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND = 1.
DO 12 TIMES VARYING MYDATES
FROM P0041-DAR01
NEXT P0041-DAR02.
If mydates-dar ne space.
WRITE: /, MYDATES-DAR, MYDATES-DAT.
Endif.
ENDDO.
ENDIF.
All of the product names here are trademarks of their respective companies. The site
www.allsaplinks.com no way affiliated with SAP AG. We have made every effort for the content
integrity. Information used on this site is at your own risk.