‎2011 Nov 02 1:40 PM
dear my friends
i want a sample code to retrive data from ZI table in cluster PCL2 .
please help me
‎2011 Nov 02 1:51 PM
Hi Mohammed ,
Check the SAP Standart FM "PYXX_READ_PAYROLL_RESULT"
best regards,
İrfan MATAK
‎2011 Nov 09 7:57 AM
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