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

Cluster PCL2/B2 => function module

rainer_hbenthal
Active Contributor
0 Likes
1,636

Hi,

is there a function module for reading table SALDO in CLuster PCL2/B2? I prefer using function models or classes instead of this include stuff.

For payroll results i found suitable FM, but i found nothing for cluster PCL2/B2.

Any hints?

cu

Rainer

4 REPLIES 4
Read only

Former Member
0 Likes
942

hi,

try using the following include ...in some way it's faster n efficient!!

INCLUDE:

mpzdat02, " Work tables for daily work

rpppxd00, " R/3 data definition for PCL1 & pcl2 buffer

rpppxd10, " Data definition for PCL1, pcl2

pc2rxid0, " Data definition, cluster IS file pcl2

rpclst00,

rpc2b200,

rptsim00.

and u can fetch saldo after passing the below mentioned key:

b2-key-pabrj = pdate(4).

b2-key-pabrp = pdate+4(2).

b2-key-cltyp = '1'.

b2-key-pernr = it_pernr-pernr.

IMPORT saldo FROM DATABASE pcl2(b2) ID b2-key.

hence on looping this table u can modify n display the result!!

hope this solves ur query!!

plz reward points if it satisfies!!

Regards,

Gunjan

Read only

Former Member
0 Likes
942

hi,

try using the following include ...in some way it's faster n efficient!!

INCLUDE:

mpzdat02, " Work tables for daily work

rpppxd00, " R/3 data definition for PCL1 & pcl2 buffer

rpppxd10, " Data definition for PCL1, pcl2

pc2rxid0, " Data definition, cluster IS file pcl2

rpclst00,

rpc2b200,

rptsim00.

and u can fetch saldo after passing the below mentioned key:

b2-key-pabrj = pdate(4).

b2-key-pabrp = pdate+4(2).

b2-key-cltyp = '1'.

b2-key-pernr = it_pernr-pernr.

IMPORT saldo FROM DATABASE pcl2(b2) ID b2-key.

hence on looping this table u can modify n display the result!!

hope this solves ur query!!

plz reward points if it satisfies!!

Regards,

Gunjan

Read only

RaymondGiuseppi
Active Contributor
0 Likes
942

Try FM HR_TIME_RESULTS_GET

- exporting GET_PERNR and optionally GET_PABRJ, GET_GET_PABR or GET_KDATE

- returning table GET_SALDO.

Regards

Read only

Former Member
0 Likes
942

Hi,

I'm getting error while posting payroll results to FI/CO, error is ' Payroll results could not import from database', I have checked RPCLSTR, i found results of the personnel numbers, for whom i run payroll, please post solution for the error, timely help is highly appreciable.

Thanks and regards

Jeevan