Skip to Content
0
Former Member
Nov 14, 2012 at 12:59 PM

All Infotypes of a PerNr in one Table

85 Views

Hallo Community,

i've got a Question about the Function HR_READ_INFOTYPE:

I would like Loop over a Fieldymbol or Table full of different Info-Type-Numbers.

Like this:

LOOP at lt_infotab INTO ls_infotab.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
TCLAS = 'A'
pernr = '00000073'
infty = ls_infotab-infty
BEGDA = '18000101'
ENDDA = '99991231'
* BYPASS_BUFFER = ' '
* LEGACY_MODE = ' '
* IMPORTING
* SUBRC =
tables
infty_tab = lt_table
* EXCEPTIONS
* INFTY_NOT_FOUND = 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.

ENDLOOP.

What kind of table has to be lt_table to? How Could I realize this?
The purpose is to send this table to another system and create a new PerNr there with the information.

Thanks a lot for your help