SAP Function Modules

HR_RECRUITMENT_INTERFACE_TEXTS SAP Function module - Reading of foreign keys and texts for the applicant systems interface







HR_RECRUITMENT_INTERFACE_TEXTS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name HR_RECRUITMENT_INTERFACE_TEXTS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: HRAI
Released Date: 08.08.1997
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM HR_RECRUITMENT_INTERFACE_TEXTS - HR RECRUITMENT INTERFACE TEXTS





CALL FUNCTION 'HR_RECRUITMENT_INTERFACE_TEXTS' "Reading of foreign keys and texts for the applicant systems interface
* EXPORTING
*   language = SY-LANGU         " sy-langu      Language in which texts are read
  IMPORTING
    error =                     " bapireturn    Error Message
* TABLES
*   persareasubarea =           " hrparea       Personnel Area / Subarea
*   eegroupsubgroup =           " hreegrp       Employee Group / Employee Subgroup
*   academicgrade =             " hrgrade       Academic Title
*   aristrocratictitle =        " hrgrade       Aristocratic Title
*   surnameprefix =             " hrgrade       Name Prefix
*   secondacadgrade =           " hrgrade       Second Title
*   formofaddress =             " t522t         Form of Address
*   country =                   " t005t         Countries
*   state =                     " t005u         Regions
*   languagetable =             " t002t         Languages
*   maritalstatus =             " t502t         Marital Status
*   ethnicorigin =              " t505s         Ethnic Origin
*   militarystatus =            " t505n         Military Status
*   religion =                  " t516t         Religion
*   schooltype =                " hrsltyp       Educational Establishment Type
*   certificate =               " t519t         Final Certificates
*   branchofstudy =             " t517x         Branch of Study
*   industry =                  " hrca_industry  Industry
*   typeofjob =                 " t513c         Job
*   currency =                  " tcurt         Currency
*   eeocategorie =              " t5uee         EEO Category
*   aapcategorie =              " t5uaa         AAP Category
    .  "  HR_RECRUITMENT_INTERFACE_TEXTS

ABAP code example for Function Module HR_RECRUITMENT_INTERFACE_TEXTS





The ABAP code below is a full code listing to execute function module HR_RECRUITMENT_INTERFACE_TEXTS including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_error  TYPE BAPIRETURN ,
it_persareasubarea  TYPE STANDARD TABLE OF HRPAREA,"TABLES PARAM
wa_persareasubarea  LIKE LINE OF it_persareasubarea ,
it_eegroupsubgroup  TYPE STANDARD TABLE OF HREEGRP,"TABLES PARAM
wa_eegroupsubgroup  LIKE LINE OF it_eegroupsubgroup ,
it_academicgrade  TYPE STANDARD TABLE OF HRGRADE,"TABLES PARAM
wa_academicgrade  LIKE LINE OF it_academicgrade ,
it_aristrocratictitle  TYPE STANDARD TABLE OF HRGRADE,"TABLES PARAM
wa_aristrocratictitle  LIKE LINE OF it_aristrocratictitle ,
it_surnameprefix  TYPE STANDARD TABLE OF HRGRADE,"TABLES PARAM
wa_surnameprefix  LIKE LINE OF it_surnameprefix ,
it_secondacadgrade  TYPE STANDARD TABLE OF HRGRADE,"TABLES PARAM
wa_secondacadgrade  LIKE LINE OF it_secondacadgrade ,
it_formofaddress  TYPE STANDARD TABLE OF T522T,"TABLES PARAM
wa_formofaddress  LIKE LINE OF it_formofaddress ,
it_country  TYPE STANDARD TABLE OF T005T,"TABLES PARAM
wa_country  LIKE LINE OF it_country ,
it_state  TYPE STANDARD TABLE OF T005U,"TABLES PARAM
wa_state  LIKE LINE OF it_state ,
it_languagetable  TYPE STANDARD TABLE OF T002T,"TABLES PARAM
wa_languagetable  LIKE LINE OF it_languagetable ,
it_maritalstatus  TYPE STANDARD TABLE OF T502T,"TABLES PARAM
wa_maritalstatus  LIKE LINE OF it_maritalstatus ,
it_ethnicorigin  TYPE STANDARD TABLE OF T505S,"TABLES PARAM
wa_ethnicorigin  LIKE LINE OF it_ethnicorigin ,
it_militarystatus  TYPE STANDARD TABLE OF T505N,"TABLES PARAM
wa_militarystatus  LIKE LINE OF it_militarystatus ,
it_religion  TYPE STANDARD TABLE OF T516T,"TABLES PARAM
wa_religion  LIKE LINE OF it_religion ,
it_schooltype  TYPE STANDARD TABLE OF HRSLTYP,"TABLES PARAM
wa_schooltype  LIKE LINE OF it_schooltype ,
it_certificate  TYPE STANDARD TABLE OF T519T,"TABLES PARAM
wa_certificate  LIKE LINE OF it_certificate ,
it_branchofstudy  TYPE STANDARD TABLE OF T517X,"TABLES PARAM
wa_branchofstudy  LIKE LINE OF it_branchofstudy ,
it_industry  TYPE STANDARD TABLE OF HRCA_INDUSTRY,"TABLES PARAM
wa_industry  LIKE LINE OF it_industry ,
it_typeofjob  TYPE STANDARD TABLE OF T513C,"TABLES PARAM
wa_typeofjob  LIKE LINE OF it_typeofjob ,
it_currency  TYPE STANDARD TABLE OF TCURT,"TABLES PARAM
wa_currency  LIKE LINE OF it_currency ,
it_eeocategorie  TYPE STANDARD TABLE OF T5UEE,"TABLES PARAM
wa_eeocategorie  LIKE LINE OF it_eeocategorie ,
it_aapcategorie  TYPE STANDARD TABLE OF T5UAA,"TABLES PARAM
wa_aapcategorie  LIKE LINE OF it_aapcategorie .

DATA(ld_language) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_persareasubarea to it_persareasubarea.

"populate fields of struture and append to itab
append wa_eegroupsubgroup to it_eegroupsubgroup.

"populate fields of struture and append to itab
append wa_academicgrade to it_academicgrade.

"populate fields of struture and append to itab
append wa_aristrocratictitle to it_aristrocratictitle.

"populate fields of struture and append to itab
append wa_surnameprefix to it_surnameprefix.

"populate fields of struture and append to itab
append wa_secondacadgrade to it_secondacadgrade.

"populate fields of struture and append to itab
append wa_formofaddress to it_formofaddress.

"populate fields of struture and append to itab
append wa_country to it_country.

"populate fields of struture and append to itab
append wa_state to it_state.

"populate fields of struture and append to itab
append wa_languagetable to it_languagetable.

"populate fields of struture and append to itab
append wa_maritalstatus to it_maritalstatus.

"populate fields of struture and append to itab
append wa_ethnicorigin to it_ethnicorigin.

"populate fields of struture and append to itab
append wa_militarystatus to it_militarystatus.

"populate fields of struture and append to itab
append wa_religion to it_religion.

"populate fields of struture and append to itab
append wa_schooltype to it_schooltype.

"populate fields of struture and append to itab
append wa_certificate to it_certificate.

"populate fields of struture and append to itab
append wa_branchofstudy to it_branchofstudy.

"populate fields of struture and append to itab
append wa_industry to it_industry.

"populate fields of struture and append to itab
append wa_typeofjob to it_typeofjob.

"populate fields of struture and append to itab
append wa_currency to it_currency.

"populate fields of struture and append to itab
append wa_eeocategorie to it_eeocategorie.

"populate fields of struture and append to itab
append wa_aapcategorie to it_aapcategorie. . CALL FUNCTION 'HR_RECRUITMENT_INTERFACE_TEXTS' * EXPORTING * language = ld_language IMPORTING error = ld_error * TABLES * persareasubarea = it_persareasubarea * eegroupsubgroup = it_eegroupsubgroup * academicgrade = it_academicgrade * aristrocratictitle = it_aristrocratictitle * surnameprefix = it_surnameprefix * secondacadgrade = it_secondacadgrade * formofaddress = it_formofaddress * country = it_country * state = it_state * languagetable = it_languagetable * maritalstatus = it_maritalstatus * ethnicorigin = it_ethnicorigin * militarystatus = it_militarystatus * religion = it_religion * schooltype = it_schooltype * certificate = it_certificate * branchofstudy = it_branchofstudy * industry = it_industry * typeofjob = it_typeofjob * currency = it_currency * eeocategorie = it_eeocategorie * aapcategorie = it_aapcategorie . " HR_RECRUITMENT_INTERFACE_TEXTS
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_error  TYPE BAPIRETURN ,
ld_language  TYPE SY-LANGU ,
it_persareasubarea  TYPE STANDARD TABLE OF HRPAREA ,
wa_persareasubarea  LIKE LINE OF it_persareasubarea,
it_eegroupsubgroup  TYPE STANDARD TABLE OF HREEGRP ,
wa_eegroupsubgroup  LIKE LINE OF it_eegroupsubgroup,
it_academicgrade  TYPE STANDARD TABLE OF HRGRADE ,
wa_academicgrade  LIKE LINE OF it_academicgrade,
it_aristrocratictitle  TYPE STANDARD TABLE OF HRGRADE ,
wa_aristrocratictitle  LIKE LINE OF it_aristrocratictitle,
it_surnameprefix  TYPE STANDARD TABLE OF HRGRADE ,
wa_surnameprefix  LIKE LINE OF it_surnameprefix,
it_secondacadgrade  TYPE STANDARD TABLE OF HRGRADE ,
wa_secondacadgrade  LIKE LINE OF it_secondacadgrade,
it_formofaddress  TYPE STANDARD TABLE OF T522T ,
wa_formofaddress  LIKE LINE OF it_formofaddress,
it_country  TYPE STANDARD TABLE OF T005T ,
wa_country  LIKE LINE OF it_country,
it_state  TYPE STANDARD TABLE OF T005U ,
wa_state  LIKE LINE OF it_state,
it_languagetable  TYPE STANDARD TABLE OF T002T ,
wa_languagetable  LIKE LINE OF it_languagetable,
it_maritalstatus  TYPE STANDARD TABLE OF T502T ,
wa_maritalstatus  LIKE LINE OF it_maritalstatus,
it_ethnicorigin  TYPE STANDARD TABLE OF T505S ,
wa_ethnicorigin  LIKE LINE OF it_ethnicorigin,
it_militarystatus  TYPE STANDARD TABLE OF T505N ,
wa_militarystatus  LIKE LINE OF it_militarystatus,
it_religion  TYPE STANDARD TABLE OF T516T ,
wa_religion  LIKE LINE OF it_religion,
it_schooltype  TYPE STANDARD TABLE OF HRSLTYP ,
wa_schooltype  LIKE LINE OF it_schooltype,
it_certificate  TYPE STANDARD TABLE OF T519T ,
wa_certificate  LIKE LINE OF it_certificate,
it_branchofstudy  TYPE STANDARD TABLE OF T517X ,
wa_branchofstudy  LIKE LINE OF it_branchofstudy,
it_industry  TYPE STANDARD TABLE OF HRCA_INDUSTRY ,
wa_industry  LIKE LINE OF it_industry,
it_typeofjob  TYPE STANDARD TABLE OF T513C ,
wa_typeofjob  LIKE LINE OF it_typeofjob,
it_currency  TYPE STANDARD TABLE OF TCURT ,
wa_currency  LIKE LINE OF it_currency,
it_eeocategorie  TYPE STANDARD TABLE OF T5UEE ,
wa_eeocategorie  LIKE LINE OF it_eeocategorie,
it_aapcategorie  TYPE STANDARD TABLE OF T5UAA ,
wa_aapcategorie  LIKE LINE OF it_aapcategorie.

ld_language = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_persareasubarea to it_persareasubarea.

"populate fields of struture and append to itab
append wa_eegroupsubgroup to it_eegroupsubgroup.

"populate fields of struture and append to itab
append wa_academicgrade to it_academicgrade.

"populate fields of struture and append to itab
append wa_aristrocratictitle to it_aristrocratictitle.

"populate fields of struture and append to itab
append wa_surnameprefix to it_surnameprefix.

"populate fields of struture and append to itab
append wa_secondacadgrade to it_secondacadgrade.

"populate fields of struture and append to itab
append wa_formofaddress to it_formofaddress.

"populate fields of struture and append to itab
append wa_country to it_country.

"populate fields of struture and append to itab
append wa_state to it_state.

"populate fields of struture and append to itab
append wa_languagetable to it_languagetable.

"populate fields of struture and append to itab
append wa_maritalstatus to it_maritalstatus.

"populate fields of struture and append to itab
append wa_ethnicorigin to it_ethnicorigin.

"populate fields of struture and append to itab
append wa_militarystatus to it_militarystatus.

"populate fields of struture and append to itab
append wa_religion to it_religion.

"populate fields of struture and append to itab
append wa_schooltype to it_schooltype.

"populate fields of struture and append to itab
append wa_certificate to it_certificate.

"populate fields of struture and append to itab
append wa_branchofstudy to it_branchofstudy.

"populate fields of struture and append to itab
append wa_industry to it_industry.

"populate fields of struture and append to itab
append wa_typeofjob to it_typeofjob.

"populate fields of struture and append to itab
append wa_currency to it_currency.

"populate fields of struture and append to itab
append wa_eeocategorie to it_eeocategorie.

"populate fields of struture and append to itab
append wa_aapcategorie to it_aapcategorie.

SAP Documentation for FM HR_RECRUITMENT_INTERFACE_TEXTS


You can use this module to read all the text tables from the R/3 System that are used in the interface for external applicant systems. ...See here for full SAP fm documentation














Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HR_RECRUITMENT_INTERFACE_TEXTS or its description.