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.
SapMaterial.com
ABAP TECHNICAL

SAP Introduction

sap abap faq

sap Tables

SAP Transaction codes

Internal tables

data dictionary

performance tuning

transports & Requests

Sap scripts

Smartforms

lsmw

reports

sap Workflow

module pool/ dialog
programming

table control

user exits

sap memory

abap memory

alv reports

ABAP ADVANCED

IDOC

ALE

BAPI

BADI

RFC


FUNCTIONAL SIDE

Materials Management

FICO

Human Resources

BIW / BW / SEM


Free Documentation
Abap Material

Ale Material

BAPI Material

BC Material

IDOC Material

R/3 Database Management

SAP material

RFC

Transport

Sales & Distribution Material

Basic Data and Function
Material

Basis (BC) Material

Billing Material

CA Material

CATT : Computer Aided Test
Tool

Capacity Evaluation and
leveling Material

Capacity Planning Material

Cross Application Material

Countries

Customer Service Material

Enterpise  Material

Financial / Controlling (FICO)

Internet Time Sheet

Inspection Material

HR Material

Material Management
Material

Payments Material

Payroll Material

Pension Fund

Production Planning and
Control

Plant Maintenance

Quality Management Material

Real Estate Material

SAP material

Wage Types