below you can find the ABAP Code/ Custom Function Module to read the Cluster Tables PCL1 and PCL2.
If you fill in the Import Parameter "ACTIONID" with P1 , then you need the Personnel No. In the field PERNR. No additional parameters are needed. You get the result in the Table Parameter ST. If you need the payroll results of the Cluster Table PCL2, you need to fill in the ACTIONID "P2" and have to fill in a Start- and Enddate to the Parameters STARTDATE and ENDDATE. Then you get the Payroll results of the Table PCL2 in the Table parameter CRT.
Thom is asking about clusterd tables. The Payroll Cluster Tables are PCL1 and PCL2. BSEG and KONV aren't clustered tables, and can be extracted the "normal" way throug table extraction. PCL1 and PCL2 can also, but they include the data in LRAW fields, which make no sense to read them the normal way