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: 

Blank annual salary field in table PA0008

Former Member
0 Kudos

Hi Experts,

We have a report where we read PA0008 table to display annual salary. But for some employees the field in the table is 0.00 though in PA20 it displays the correct value.

I read in the forum if its indirect evaluation the field would be 0.00 in table. In this case how should we read the field??

Thanks & Regards

Manas

1 ACCEPTED SOLUTION

Former Member
0 Kudos

you can use this fm to get the ansal ..

check this option . pass the p0008 begda along with pernr.



 call function 'RP_ANSAL_FROM_PERNR'
          EXPORTING
            f_date                       = pa0008-begda
            f_pernr                      = pernr      "pernr value
          IMPORTING
            f_ansal                      = lv_ansal  "annual salary 
          EXCEPTIONS
            internal_error               = 1
            error_read_0001              = 2
            error_read_0008              = 3
            error_at_indirect_evaluation = 4
            currency_conversion_error    = 5
            others                       = 6.

3 REPLIES 3

Former Member
0 Kudos

you can use this fm to get the ansal ..

check this option . pass the p0008 begda along with pernr.



 call function 'RP_ANSAL_FROM_PERNR'
          EXPORTING
            f_date                       = pa0008-begda
            f_pernr                      = pernr      "pernr value
          IMPORTING
            f_ansal                      = lv_ansal  "annual salary 
          EXCEPTIONS
            internal_error               = 1
            error_read_0001              = 2
            error_read_0008              = 3
            error_at_indirect_evaluation = 4
            currency_conversion_error    = 5
            others                       = 6.

Former Member
0 Kudos

Use FM 'RP_ANSAL_FROM_PERNR' to get annual salary as mentioned by sniper .

This issue happens cause of indirect evaluation of wagetypes.

Make sute to pass corrrect effective date to FM : 'RP_ANSAL_FROM_PERNR'

Former Member
0 Kudos

Thanks a lot experts...