ABAP – Fetching data from Infotype

We can use the Function Module HR_READ_INFOTYPE  for fetching data from a particular Infotype.

Syntax for FM HR_READ_INFOTYPE is as follows:

Give the needed parameters and execute the FM. Then data’s from PA0001 will stores to the internal table  it_tab.

CALL FUNCTION  ‘HR_READ_INFOTYPE’

EXPORTING

*          TCLAS                 = ‘A’

pernr                 = wa_tab-pernr

infty                 = ‘0001’

*          BEGDA                 = ‘18000101’

*          ENDDA                 = ‘99991231’

*          BYPASS_BUFFER         = ‘ ‘

*          LEGACY_MODE           = ‘ ‘

*        IMPORTING

*          SUBRC                 =

tables

infty_tab             =  it_tab

EXCEPTIONS

INFTY_NOT_FOUND       = 1

OTHERS                = 2.

0 Comments

Leave A Reply