Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve data from PCL2?

Former Member
0 Kudos

Hi,

I need a logic to obtain data , specifically PERNR from the cluster table PCL2.

I have begin date , end date and Payroll Area as my input.Thanks , Ragesh

4 REPLIES 4

Former Member
0 Kudos

Refer:

[http://fuller.mit.edu/hr/cluster_tables.html]

Former Member
0 Kudos

Also refer:

[http://it.toolbox.com/blogs/sap-on-db2/select-from-bsegrfblg-performance-problem-14247]

[http://sap.ittoolbox.com/groups/technical-functional/sap-dev/how-to-read-a-cluster-table-like-edid4-540964]

milusai
Participant
0 Kudos

use the function modules

CU_READ_RGDIR

CD_READ_LAST

Regards

Milind

Former Member
0 Kudos

With this function you can get payroll data

CALL FUNCTION 'HRCM_PAYROLL_RESULTS_GET'

EXPORTING

pernr = pernr-pernr

begda = g_begda

endda = g_endda

IMPORTING

subrc = l_subrc

  • MOLGA =

payroll_result_tab = l_return.