SAP Function Modules

Share |

HR_READ_INFOTYPE SAP Function module - Read Employee/Applicant Data From Infotypes

Pattern for FM HR_READ_INFOTYPE - HR READ INFOTYPE
Associated Function Group: HRAC
Released Date: . .
CALL FUNCTION 'HR_READ_INFOTYPE' "Read Employee/Applicant Data From Infotypes
  EXPORTING
*   tclas = 'A'                 " pspar-tclas   Transaction Class (Person, Applicant)
    pernr =                     " prelp-pernr   Personnel Number/Applicant Number
    infty =                     " prelp-infty   Infotype
*   begda = '18000101'          " prelp-begda   Start Date
*   endda = '99991231'          " prelp-endda   End Date
  IMPORTING
    subrc =                     " sy-subrc      Return Code
  TABLES
    infty_tab =                 "               Infotype Table
  EXCEPTIONS
    INFTY_NOT_FOUND = 1         "               Infotype Does Not Exist
    .  "  HR_READ_INFOTYPE

SAP Documentation for FM HR_READ_INFOTYPE


FUNCTIONALITY

This function module reads the data records of an HR infotype that exist for a person (employee or applicant). It does so in accordance with the specified selection criteria.
Data is returned to an internal table, the structure of which corresponds to the infotype table concerned (such tables can be declared in the calling program by the INFOTYPES statement, for example). The system selects infotype records whose validity interval overlaps with the specified time interval.
The INFTY_NOT_FOUND exception is set if the infotype cannot be accessed for technical reasons.
The SUBRC return value indicates whether and why infotype records are not returned by the function module. The following values are possible:
  • 0 All infotype records are returned by the FM.

  • 4 Some infotype records are not returned by the FM because
  • authorizations are missing.
    
  • 8 There are no infotype records in the selection period.
  • You can respond to this value in the same way as SUBRC = 0.
    
  • 12 The FM does not return any infotype records because
  • authorizations are missing.
    

    EXAMPLES

  • If the FM does not return all of the infotype records during a payroll run because authorizations are missing, you must cancel the payroll run for these personnel numbers. If you do not cancel the payroll run, the payroll results are dependent on the user's authorizations.

  • If the FM does not return all infotype records in a program for creating telephone lists because authorizations are missing, the returned infotype records usually suffice because telephone lists that depend on the user's authorizations are not normally a problem.
    Documentation extract taken from SAP system, Copyright (c) SAP AG






  • Share |