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 for Earning and Deduction (INFOTYPE 0014)

Former Member
0 Kudos

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

1 REPLY 1

abhijitzope
Active Participant
0 Kudos

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