Application Development 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: 

function module for salary

Former Member
0 Kudos

Dear abapers,

I need a function module that will generate salary with different wage types , for a particular employee number and date.

relevant answers are appreciated.

by Mohan Ram

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try :

RP_ANSAL_FROM_WAGETYPES

RP_ANSAL_FROM_INFOTYPE

RP_ANSAL_FROM_PERNR

And try : ansal in SE37 TCODE.

4 REPLIES 4

GauthamV
Active Contributor
0 Kudos

Use these FM.

RP_FILL_WAGE_TYPE_TABLE.

RP_FILL_WAGE_TYPE_TABLE_EXT.

Former Member
0 Kudos

Hi,

If you want to Calculate Hourly Salary from Infotype 0008 the use the function module RP_ALLPERIODS_FROM_ANSAL. You have to pass the annual salary.
If you want to read salary field from IT0008 use HRGPBS_TPS_ANSAL_FROM_PERNR. You have to pass employee number & as of date.
To read data from IT 0008 use, RP_FILL_WAGE_TYPE_TABLE_EXT or HR_READ_INFOTYPE.
Or use the BAPI 'BAPI_BASICPAY_GETDETAIL '.

May it helps you.

Regards.

DS.

Former Member
0 Kudos

Try :

RP_ANSAL_FROM_WAGETYPES

RP_ANSAL_FROM_INFOTYPE

RP_ANSAL_FROM_PERNR

And try : ansal in SE37 TCODE.

Former Member
0 Kudos

Check teh modules

HRAR_APPEND_WAGETYPE

HRAR_GET_CREATE_VOZNR

HRAR_GET_PAYROLL_PERIOD

HRAR_READ_INFOTYPE

HRAR_READ_RGDIR_PAYRESULTS