Skip to Content
avatar image
Former Member

Hourly rate calculation from annual salary

Hi all,

I want to calculate hourly rate from annual salary.

I had already used FM - RP_ALLPERIODS_FROM_ANSAL , but hourly rate is retrieved as zero and even other fileds values are also rounded off so differently.

I had even used FM - HR_ECM_CALCULATE_HOURLY_RATE , by giving perner and currency key but still the hourly rate is retrieved as 0.

Can you please suggest any other Function module Or any changes that I can do to the input given to above function modules.

Please let me know ASAP.

Thank you in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 02, 2015 at 07:10 AM

    Hello

    I am not an ABAPer 😊. when you go to IT 0008 record for an employee on the left hand corner you should see a push button .

    When you click that based on configuration I believe it should show the Hourly rate and surely must be some Functional module of ABAP code backing it

    Regards

    Ajay

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 02, 2015 at 08:56 AM

    Hi Vani,

    Why dont you write your own function module, you can read the annual salary where perner = perner from table pa0008 (Infotype 0008). and then take the annual salary divide by the number of business days and then take the answer and then divide it by the number of working hours of a day. You can use this function module to calculate business days in a year : RKE_SELECT_FACTDAYS_FOR_PERIOD

    Add comment
    10|10000 characters needed characters exceeded