SAP Function HR_READ_INFOTYPE - Read Employee/Applicant Data From Infotypes

Parameter Reference Type Length Default Optional Text
BEGDA PRELP-BEGDA D 8 '18000101' X Start Date
BYPASS_BUFFER FLAG C 1 ' ' X
ENDDA PRELP-ENDDA D 8 '99991231' X End Date
INFTY PRELP-INFTY C 4 Infotype
LEGACY_MODE BOOLE_D C 1 SPACE X
PERNR PRELP-PERNR N 8 Personnel Number/Applicant Number
TCLAS PSPAR-TCLAS C 1 'A' X Transaction Class (Person, Applicant)

Parameter Reference Type Length Text
SUBRC SYST-SUBRC I 4 Return Code

Parameter Reference Length Optional Text
INFTY_TAB 0 Infotype Table

Exception Text
INFTY_NOT_FOUND Infotype Does Not Exist

Functionality
This function module reads the data records of an HRinfotype that exist for a person (employee or applicant). It does soin accordance with the specified selection criteria.
Data is returned to an internal table, the structure of whichcorresponds to the infotype table concerned (such tables can bedeclared in the calling program by the INFOTYPESstatement, for example). The system selects infotype records whosevalidity interval overlaps with the specified time interval.
The INFTY_NOT_FOUND exception is set if the infotype cannot beaccessed for technical reasons.
The SUBRC return value indicates whether and why infotyperecords are not returned by the function module. The following valuesare 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 runfor these personnel numbers. If you do not cancel the payroll run, thepayroll 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, thereturned infotype records usually suffice because telephone lists thatdepend on the user's authorizations are not normally a problem.

1285833ELM: Err for WHT liability 1 if place of residence is abroad
1364748LAW2005:Customer-spec. criteria for no./period of employment
670171Analysis of parameter 'SUBRC' of HR_READ_INFOTYPE
632372GTL: Problem with tax exemption status
568381IT0102: Problem with function module RH_TEXT_GET_P0102