Escolar Documentos
Profissional Documentos
Cultura Documentos
Accessing HR Clusters
Applies to:
SAP R/3 4.7
Summary
According to SAP, cluster databases are special relational databases in the ABAP Dictionary that you can
use to store data clusters. Their line structure is divided into a standard section, containing several fields,
and one large field for the data cluster. In HR, we come across several clusters in different sub-modules like
Time Management (B2 cluster) and Payroll (PCL1, PCL2, PCL3, PCL4).
This article aims to help budding programmers access the various clusters while reporting in HR.
Author(s): Gunjan Kumar
Company: Caritor (India) Pvt. Ltd.
Created on: 11 June 2006
Author Bio
Gunjan Kumar has been working for Caritor (India) Pvt. Ltd. as technical consultant. Apart from coding, he
spends time playing guitar and listening to rock music.
2006 SAP AG
Table of Contents
Introduction ...................................................................................................................................... 2
Accessing Cluster ........................................................................................................................ 2
Accessing Time Management Cluster (B2 Cluster)..................................................................... 3
Accessing TX Cluster (Text Saved in Infotype) ........................................................................... 4
Disclaimer and Liability Notice......................................................................................................... 5
Introduction
The following diagram represents the structure of the cluster database.
Accessing Cluster
In Payroll, We come across PCL1, PCL2, PCL3, and PCL4 clusters.
File PCL1 is the basis for the HR work area data. It contains information from the time data recording, for
example, incentive wage time tickets or infotype supplement texts.
File PCL2 contains derived information, for example, payroll results. It also contains all generated payroll
schemas.
File PCL3 contains applicant data.
File PCL4 contains the change documents for HR master data and recruitment
The following Pseudo code explains the way of accessing Payroll Cluster:
Includes to be used:
INCLUDE rpc2cd09.
INCLUDE rpc2ca00.
"Cluster CA Data-Definition
INCLUDE rpppxd00.
2006 SAP AG
INCLUDE rpppxd10.
INCLUDE rpppxm00.
INCLUDE rpc2rx09.
Pseudo code and Macros to be used in the program:
CLEAR rgdir.
Cd-key-pernr = pernr-pernr.
Rp-imp-c2-cu.
IF rp-imp-cd-subrc <> 0.
* Payroll results not found for the employee no. &
REJECT.
ENDIF.
SORT rgdir BY fpper DESCENDING.
LOOP AT rgdir WHERE fpbeg GE pn-begda AND fpend LE pn-endda
AND srtza = A.
Rx-key-seqno = rgdir-seqnr.
Rx-key-pernr = pernr-pernr.
Rp-imp-c2-in.
IF rp-imp-in-subrc <> 0.
CONTINUE.
ENDIF.
LOOP AT RT.
CASE rt-lgart.
WHEN '1000'.
ADD rt-betrg TO w_basic1.
ENDCASE.
Endloop.
Accessing Time Management Cluster (B2 Cluster)
Whenever we go about Positive Time management and Time evaluation (PT60) is run for the employee, B2
cluster comes into picture and the following part deals with accessing data from B2 cluster. The key that
needs to be passed to B2 cluster are: Personnel No, Cluster Type, Year and Month to access all the tables
for that particular period.
Includes to be used:
Include:
mpzdat02,
rpppxd00,
2006 SAP AG
rpppxd10,
pc2rxid0.
rpclst00.
rpc2b200.
rptsim00.
Pseudo code and Macros to be used in the program:
B2-key-pabrj
= pdate(4).
Year
= '1'.
B2-key-pernr = pernr-pernr.
Cluster Type
Personnel No
2006 SAP AG