SAP RH_PERNR_TABLE_CREATE Function Module for
RH_PERNR_TABLE_CREATE is a standard rh pernr table create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rh pernr table create FM, simply by entering the name RH_PERNR_TABLE_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHPR
Program Name: SAPLRHPR
Main Program: SAPLRHPR
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RH_PERNR_TABLE_CREATE 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 'RH_PERNR_TABLE_CREATE'".
EXPORTING
* RECALC_CHECK = 'X' "
* ENQUEUE_PERSONS = 'X' "
* SEND_MESSAGE = 'X' "
* SET_DO_INTEGRATION = 'X' "
* FCODE = "
IMPORTING
RP_SUBRC = "
TABLES
STC_TABELLE = "
STC_TABELLE2 = "
PERNR_TAB_AKTION = "
* MSG_TAB = "
IMPORTING Parameters details for RH_PERNR_TABLE_CREATE
RECALC_CHECK -
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENQUEUE_PERSONS -
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
SEND_MESSAGE -
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
SET_DO_INTEGRATION -
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
FCODE -
Data type: FCODEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RH_PERNR_TABLE_CREATE
RP_SUBRC -
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
TABLES Parameters details for RH_PERNR_TABLE_CREATE
STC_TABELLE -
Data type: HRI_STC_TABELLEOptional: No
Call by Reference: No ( called with pass by value option)
STC_TABELLE2 -
Data type: HRI_STC_TABELLE2Optional: No
Call by Reference: No ( called with pass by value option)
PERNR_TAB_AKTION -
Data type: HRI_PERNR_TABOptional: No
Call by Reference: No ( called with pass by value option)
MSG_TAB -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_PERNR_TABLE_CREATE 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_rp_subrc | TYPE SY-SUBRC, " | |||
| lt_stc_tabelle | TYPE STANDARD TABLE OF HRI_STC_TABELLE, " | |||
| lv_recalc_check | TYPE FLAG, " 'X' | |||
| lt_stc_tabelle2 | TYPE STANDARD TABLE OF HRI_STC_TABELLE2, " | |||
| lv_enqueue_persons | TYPE FLAG, " 'X' | |||
| lv_send_message | TYPE FLAG, " 'X' | |||
| lt_pernr_tab_aktion | TYPE STANDARD TABLE OF HRI_PERNR_TAB, " | |||
| lt_msg_tab | TYPE STANDARD TABLE OF HRI_PERNR_TAB, " | |||
| lv_set_do_integration | TYPE FLAG, " 'X' | |||
| lv_fcode | TYPE FCODE. " |
|   CALL FUNCTION 'RH_PERNR_TABLE_CREATE' " |
| EXPORTING | ||
| RECALC_CHECK | = lv_recalc_check | |
| ENQUEUE_PERSONS | = lv_enqueue_persons | |
| SEND_MESSAGE | = lv_send_message | |
| SET_DO_INTEGRATION | = lv_set_do_integration | |
| FCODE | = lv_fcode | |
| IMPORTING | ||
| RP_SUBRC | = lv_rp_subrc | |
| TABLES | ||
| STC_TABELLE | = lt_stc_tabelle | |
| STC_TABELLE2 | = lt_stc_tabelle2 | |
| PERNR_TAB_AKTION | = lt_pernr_tab_aktion | |
| MSG_TAB | = lt_msg_tab | |
| . " RH_PERNR_TABLE_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM RH_PERNR_TABLE_CREATE
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.| "SELECT single SUBRC FROM SY INTO @DATA(ld_rp_subrc). | ||||
| DATA(ld_recalc_check) | = 'X'. | |||
| DATA(ld_enqueue_persons) | = 'X'. | |||
| DATA(ld_send_message) | = 'X'. | |||
| DATA(ld_set_do_integration) | = 'X'. | |||
Search for further information about these or an SAP related objects