11-19-2008 3:30 PM
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
11-19-2008 4:06 PM
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.
11-19-2008 4:06 PM
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.
11-19-2008 7:49 PM
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'
11-20-2008 6:30 AM