sapdev logo background
sapdev logo sapdev logo
Comments

HR_READ_INFOTYPE SAP FM to Read infotype data




Read infotype information via the use of a function module. Simply replace the infotype number '0002' and result table structure(infty_tab) with your required infotype (i.e. 0000, 0001, 0002, 0003 etc etc).

CALL FUNCTION 'HR_READ_INFOTYPE'
         EXPORTING
*          TCLAS                 = 'A'
           pernr                 = wa_repdata-staff_id
           infty                 = '0002'
*          BEGDA                 = '18000101'
*          ENDDA                 = '99991231'
*          BYPASS_BUFFER         = ' '
*          LEGACY_MODE           = ' '
*        IMPORTING
*          SUBRC                 = 
         tables
           infty_tab             =  p0002
        EXCEPTIONS
          INFTY_NOT_FOUND       = 1
          OTHERS                = 2.

Check out sap documentation and pattern details for function module HR_READ_INFOTYPE on website se80.co.uk




comments powered by Disqus