Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

HR_READ_INFOTYPE

hi ,

In this function module HR_READ_INFOTYPE wat is the field for pernr

and infty , and infty_tab

can i get the answer as soon as possible

Tags:
Former Member
Former Member replied

Hi,

call function 'HR_READ_INFOTYPE'

exporting

TCLAS = 'A'

PERNR =

INFTY =

BEGDA = '18000101'

ENDDA = '99991231'

BYPASS_BUFFER = ' '

LEGACY_MODE = ' '

IMPORTING

SUBRC =

TABLES

INFTY_TAB =

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.

Try This Report

TYPES: BEGIN OF TY_TAB,

FLD1 TYPE I,

FLD2 TYPE CHAR10,

FLD3 TYPE I,

FLD4 TYPE I,

END OF TY_TAB.

DATA: ITAB TYPE STANDARD TABLE OF TY_TAB, "Dynamic table

WA_ITAB TYPE TY_TAB.

DATA: L_CNT TYPE I.

FIELD-SYMBOLS: <FS> TYPE ANY.

WA_ITAB-FLD1 = 1.

WA_ITAB-FLD2 = 'test'.

WA_ITAB-FLD3 = 3.

APPEND WA_ITAB TO ITAB.

WA_ITAB-FLD1 = 1.

WA_ITAB-FLD2 = 'test'.

WA_ITAB-FLD3 = 3.

APPEND WA_ITAB TO ITAB.

LOOP AT ITAB INTO WA_ITAB.

DO.

L_CNT = L_CNT + 1.

ASSIGN COMPONENT L_CNT OF STRUCTURE WA_ITAB TO <FS>.

IF SY-SUBRC 0.

EXIT.

ENDIF.

IF <FS> IS INITIAL.

  • processing for initial.

ENDIF.

ENDDO.

CLEAR L_CNT.

ENDLOOP.

Thanks&Regards,

Naresh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question