SAP HRTMC_GET_PERSON_DATA Function Module for NOTRANSL: Read Person Data from Memory









HRTMC_GET_PERSON_DATA is a standard hrtmc get person data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Read Person Data from Memory processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for hrtmc get person data FM, simply by entering the name HRTMC_GET_PERSON_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRTMC_SET_GET_DATA
Program Name: SAPLHRTMC_SET_GET_DATA
Main Program: SAPLHRTMC_SET_GET_DATA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HRTMC_GET_PERSON_DATA pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'HRTMC_GET_PERSON_DATA'"NOTRANSL: Read Person Data from Memory
EXPORTING
* IV_ID = "
* IV_MEM_ID = "

IMPORTING
ET_PERSONIDS_WITH_PERNRS = "Tab: Central Person ID Plus Related Personnel Numbers
ET_NO_AUTH_CHECK = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
ET_P_WITH_CP_AND_PS = "Selected P Plus CP Plus Other Ps
ET_OBJIDS = "Table Type for Structure HROBJID
.



IMPORTING Parameters details for HRTMC_GET_PERSON_DATA

IV_ID -

Data type: TEXT5
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_MEM_ID -

Data type: TEXT10
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for HRTMC_GET_PERSON_DATA

ET_PERSONIDS_WITH_PERNRS - Tab: Central Person ID Plus Related Personnel Numbers

Data type: HRTMC_T_PERNRS_OF_PERSONID
Optional: No
Call by Reference: Yes

ET_NO_AUTH_CHECK - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

Data type: BOOLE_D
Optional: No
Call by Reference: Yes

ET_P_WITH_CP_AND_PS - Selected P Plus CP Plus Other Ps

Data type: HRTMC_T_PERNRS_AND_PERSONID
Optional: No
Call by Reference: Yes

ET_OBJIDS - Table Type for Structure HROBJID

Data type: HROBJECT_TAB
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRTMC_GET_PERSON_DATA Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_iv_id  TYPE TEXT5, "   
lv_et_personids_with_pernrs  TYPE HRTMC_T_PERNRS_OF_PERSONID, "   
lv_iv_mem_id  TYPE TEXT10, "   
lv_et_no_auth_check  TYPE BOOLE_D, "   
lv_et_p_with_cp_and_ps  TYPE HRTMC_T_PERNRS_AND_PERSONID, "   
lv_et_objids  TYPE HROBJECT_TAB. "   

  CALL FUNCTION 'HRTMC_GET_PERSON_DATA'  "NOTRANSL: Read Person Data from Memory
    EXPORTING
         IV_ID = lv_iv_id
         IV_MEM_ID = lv_iv_mem_id
    IMPORTING
         ET_PERSONIDS_WITH_PERNRS = lv_et_personids_with_pernrs
         ET_NO_AUTH_CHECK = lv_et_no_auth_check
         ET_P_WITH_CP_AND_PS = lv_et_p_with_cp_and_ps
         ET_OBJIDS = lv_et_objids
. " HRTMC_GET_PERSON_DATA




ABAP code using 7.40 inline data declarations to call FM HRTMC_GET_PERSON_DATA

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!