Application Development and Automation 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: 
Read only

PCL2 cluster

Former Member
0 Likes
542

dear my friends

i want a sample code to retrive data from ZI table in cluster PCL2 .

please help me

2 REPLIES 2
Read only

Former Member
0 Likes
470

Hi Mohammed ,

Check the SAP Standart FM "PYXX_READ_PAYROLL_RESULT"

best regards,

İrfan MATAK

Read only

Former Member
0 Likes
470

dear friends

i have written the flowing code but it doesn't retrieve any data and i check data for the same period in report ( PT_CLSTB2 )

and i found please check why my code dos't retrieve data .

REPORT ZR_READDATA.

PARAMETERS p_pernr TYPE PC2B0-pernr.

PARAMETERS p_PABRJ TYPE PC2B0-PABRJ.

PARAMETERS p_PABRP TYPE PC2B0-PABRP.

PARAMETERS p_CLTYP TYPE PC2B0-CLTYP.

PARAMETERS date TYPE BEGDA.

tables PCL2.

include rpc2ZL00. " This include is explained on web page above

Start-of-selection.

perform fill_key.

PERFORM STAR.

perform get_data.

end-of-selection.

form fill_key.

ZL-KEY-pernr = p_pernr. "Personnel Number

ZL-KEY-PABRJ = p_PABRJ. "Payroll Period

ZL-KEY-PABRP = p_PABRP. "Payroll Year

ZL-KEY-CLTYP = p_CLTYP. "Cluster type

endform. " fill_key

form get_data.

import ZL from database pcl2(ZL) id ZL-KEY.

loop at ZL. "ptext is defined in above include

write: / ZL-LGART.

write: / ZL-ANZHL.

endloop.

endform. " get_data