SAP ABAP – Getting wage type from Infotype 0008

For getting wage type from the Infotype 0008 you can use the function RP_FILL_WAGE_TYPE_TABLE_EXT.

You can use the function module as follows:

DATA: it_p0001 TYPE STANDARD TABLE OF p0001,
it_p0007 TYPE STANDARD TABLE OF p0007,
it_pbwla TYPE STANDARD TABLE OF PBWLA,
it_p0008 TYPE STANDARD TABLE OF p0008,
wa_pbwla TYPE PBWLA.

rp-provide-from-last from P0008 space pn-begda pn-endda

CALL FUNCTION ‘RP_FILL_WAGE_TYPE_TABLE_EXT
EXPORTING
begda = P0008-begda
endda = P0008-endda
infty = ‘0008’
pernr = P0008-pernr
TABLES
pp0001 = it_p0001
pp0007 = it_p0007
pp0008 = it_p0008
ppbwla = it_pbwla
EXCEPTIONS
error_at_indirect_evaluation = 1
OTHERS = 2.
IF sy-subrc <> 0.
*— Display the status message for downloading file on to workstation
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

IF NOT it_pbwla IS INITIAL.
LOOP AT it_pbwla INTO wa_pbwla WHERE lgart = ‘2M61′
OR lgart = ‘2M62′.

ENDLOOP.
ENDIF.

0 Comments

Leave A Reply