10-26-2007 10:22 AM
Hi All,
I have to retrieve the Employee Earning and Deduction from his pay. Is there any function avaliable which can be use to achieve the required result? if yes please let me know the function
Thanks
PIyush Mathur
10-26-2007 1:27 PM
Hi Piyush,
you can use the FM RP_FILL_WAGE_TYPE_TABLE.I am giving the sample code below.
TABLES: PERNR.
NODES: PERAS.
INFOTYPES: 0001.
data: t_pbwla type TABLE OF pbwla.
START-of-SELECTION.
get peras.
CALL FUNCTION 'RP_FILL_WAGE_TYPE_TABLE'
EXPORTING
BEGDA = sy-datum
ENDDA = sy-datum
INFTY = '0014'
TCLAS = 'A'
PERNR = peras-pernr
SUBTY = space
TABLES
PPBWLA = t_pbwla
EXCEPTIONS
ERROR_AT_INDIRECT_EVALUATION = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
hope it will help you,
regards,
ABHIJIT ZOPE