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

HCM: Function Module RPAQ_GET_AF_0167

Former Member
0 Likes
851

Has anyone used this?

It is returning monthly amounts but I need it to return semi-monthly. My functional lead doesn't want me to divide by 2 myself because of rounding errors. This function module returns employer cost, employee cost, etc. I'd prefer to get the semi-monthly costs from an existing function module rather than dividing by 2 myself.

Any suggestions?

Thanks.

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
814

The function module simply reads Infotype 0167 & spits out what is in there.. Did you verify how the Costs are maintained on the Infotype for this Plan?

~Suresh

Has anyone used this?

It is returning monthly amounts but I need it to return semi-monthly. My functional lead doesn't want me to divide by 2 myself because of rounding errors. This function module returns employer cost, employee cost, etc. I'd prefer to get the semi-monthly costs from an existing function module rather than dividing by 2 myself.

Any suggestions?

Thanks.

6 REPLIES 6
Read only

suresh_datti
Active Contributor
0 Likes
815

The function module simply reads Infotype 0167 & spits out what is in there.. Did you verify how the Costs are maintained on the Infotype for this Plan?

~Suresh

Read only

0 Likes
814

Suresh:

Can you clarify, please? I'm fairly new to SAP. Are you talking about configuration?

Read only

0 Likes
814

Got PA20, enter the pernr & display the 0167 record fro the employee.. Do you see the Costs maintained per month? If it is, You have to divide by 2, there is no other option.

~Suresh

Read only

0 Likes
814

Suresh:

Actually, on the "Costs" tab there's a "Period" field that says "Semi-Monthly" for "Calculated cost" and "Individual employee costs".

So why are the amounts from this function module coming out monthly (at least that's what my functional guy's telling me)?

Read only

0 Likes
814

Hmm..looks like the config is messed up.. what is the deduction model for the Plan in question?Pl test the function module HR_BEN_GET_DEDUCTION_MODEL in se37 for this pernr/plan combination & verify.

~Suresh

Read only

0 Likes
814

Do I need to fill out the VALIDITY_DATE and REACTION when testing this FM? I've no idea what to put there. When I run it with the pernr, barea, and bplan (from looking at PA30 at an arbitrarily chosen pernr) the export parameters are blanks and/or zeros.