SAP RH_CHECK_POSITION_FOR_UPDATE Function Module for
RH_CHECK_POSITION_FOR_UPDATE is a standard rh check position for update 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 check position for update FM, simply by entering the name RH_CHECK_POSITION_FOR_UPDATE 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_CHECK_POSITION_FOR_UPDATE 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_CHECK_POSITION_FOR_UPDATE'".
EXPORTING
* CHECKPOSITION = "
* CONSISTENCY_OLD = "
* ENQUEUE = "
* OBSOLET = "
* COSTCENTER = "
* POS_TAB_CC_CHECK = "
* PROZENT = "
* CHECK_TIMCO = "
* CHECKOTYPE = 'S' "
* WITH_STRU_AUTH = 'X' "
* IV_NO_SPLIT_CHECK = ' ' "
* CHECKBEGDA = "
* CHECKENDDA = '99991231' "
* CHECKPERSON = "
* CHECKPROZENT = 0 "
* CHECKIT0001 = "
* CHECKCODE = 'INS' "
* AUTHY = "
* CONSISTENCY = "
IMPORTING
CHECKSUBRC = "
SUBRC_PROZENT = "
TABLES
* POSITION_TAB = "
* POSITION_TAB_RESULT = "
SUBRC_MESSAGE_TAB = "
IMPORTING Parameters details for RH_CHECK_POSITION_FOR_UPDATE
CHECKPOSITION -
Data type: PLOG-OBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
CONSISTENCY_OLD -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
ENQUEUE -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
OBSOLET -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
COSTCENTER -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
POS_TAB_CC_CHECK -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
PROZENT -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
CHECK_TIMCO -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
CHECKOTYPE -
Data type: P0001-OTYPEDefault: 'S'
Optional: Yes
Call by Reference: Yes
WITH_STRU_AUTH -
Data type: BOOLE_DDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_NO_SPLIT_CHECK -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
CHECKBEGDA -
Data type: PLOG-BEGDAOptional: Yes
Call by Reference: No ( called with pass by value option)
CHECKENDDA -
Data type: PLOG-ENDDADefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECKPERSON -
Data type: PA0001-PERNROptional: Yes
Call by Reference: No ( called with pass by value option)
CHECKPROZENT -
Data type: P1001-PROZTOptional: Yes
Call by Reference: No ( called with pass by value option)
CHECKIT0001 -
Data type: P0001Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECKCODE -
Data type: SY-TCODEDefault: 'INS'
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUTHY -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
CONSISTENCY -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RH_CHECK_POSITION_FOR_UPDATE
CHECKSUBRC -
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
SUBRC_PROZENT -
Data type: P1001-PROZTOptional: No
Call by Reference: Yes
TABLES Parameters details for RH_CHECK_POSITION_FOR_UPDATE
POSITION_TAB -
Data type: HRI_POSITION_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
POSITION_TAB_RESULT -
Data type: HRI_POSITION_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
SUBRC_MESSAGE_TAB -
Data type: HRRHAD_MSGOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_CHECK_POSITION_FOR_UPDATE 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_checksubrc | TYPE SY-SUBRC, " | |||
| lt_position_tab | TYPE STANDARD TABLE OF HRI_POSITION_TAB, " | |||
| lv_checkposition | TYPE PLOG-OBJID, " | |||
| lv_consistency_old | TYPE CHAR1, " | |||
| lv_enqueue | TYPE CHAR1, " | |||
| lv_obsolet | TYPE CHAR1, " | |||
| lv_costcenter | TYPE CHAR1, " | |||
| lv_pos_tab_cc_check | TYPE CHAR1, " | |||
| lv_prozent | TYPE CHAR1, " | |||
| lv_check_timco | TYPE CHAR1, " | |||
| lv_checkotype | TYPE P0001-OTYPE, " 'S' | |||
| lv_with_stru_auth | TYPE BOOLE_D, " 'X' | |||
| lv_iv_no_split_check | TYPE BOOLE_D, " SPACE | |||
| lv_checkbegda | TYPE PLOG-BEGDA, " | |||
| lv_subrc_prozent | TYPE P1001-PROZT, " | |||
| lt_position_tab_result | TYPE STANDARD TABLE OF HRI_POSITION_TAB, " | |||
| lv_checkendda | TYPE PLOG-ENDDA, " '99991231' | |||
| lt_subrc_message_tab | TYPE STANDARD TABLE OF HRRHAD_MSG, " | |||
| lv_checkperson | TYPE PA0001-PERNR, " | |||
| lv_checkprozent | TYPE P1001-PROZT, " 0 | |||
| lv_checkit0001 | TYPE P0001, " | |||
| lv_checkcode | TYPE SY-TCODE, " 'INS' | |||
| lv_authy | TYPE CHAR1, " | |||
| lv_consistency | TYPE CHAR1. " |
|   CALL FUNCTION 'RH_CHECK_POSITION_FOR_UPDATE' " |
| EXPORTING | ||
| CHECKPOSITION | = lv_checkposition | |
| CONSISTENCY_OLD | = lv_consistency_old | |
| ENQUEUE | = lv_enqueue | |
| OBSOLET | = lv_obsolet | |
| COSTCENTER | = lv_costcenter | |
| POS_TAB_CC_CHECK | = lv_pos_tab_cc_check | |
| PROZENT | = lv_prozent | |
| CHECK_TIMCO | = lv_check_timco | |
| CHECKOTYPE | = lv_checkotype | |
| WITH_STRU_AUTH | = lv_with_stru_auth | |
| IV_NO_SPLIT_CHECK | = lv_iv_no_split_check | |
| CHECKBEGDA | = lv_checkbegda | |
| CHECKENDDA | = lv_checkendda | |
| CHECKPERSON | = lv_checkperson | |
| CHECKPROZENT | = lv_checkprozent | |
| CHECKIT0001 | = lv_checkit0001 | |
| CHECKCODE | = lv_checkcode | |
| AUTHY | = lv_authy | |
| CONSISTENCY | = lv_consistency | |
| IMPORTING | ||
| CHECKSUBRC | = lv_checksubrc | |
| SUBRC_PROZENT | = lv_subrc_prozent | |
| TABLES | ||
| POSITION_TAB | = lt_position_tab | |
| POSITION_TAB_RESULT | = lt_position_tab_result | |
| SUBRC_MESSAGE_TAB | = lt_subrc_message_tab | |
| . " RH_CHECK_POSITION_FOR_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM RH_CHECK_POSITION_FOR_UPDATE
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_checksubrc). | ||||
| "SELECT single OBJID FROM PLOG INTO @DATA(ld_checkposition). | ||||
| "SELECT single OTYPE FROM P0001 INTO @DATA(ld_checkotype). | ||||
| DATA(ld_checkotype) | = 'S'. | |||
| DATA(ld_with_stru_auth) | = 'X'. | |||
| DATA(ld_iv_no_split_check) | = ' '. | |||
| "SELECT single BEGDA FROM PLOG INTO @DATA(ld_checkbegda). | ||||
| "SELECT single PROZT FROM P1001 INTO @DATA(ld_subrc_prozent). | ||||
| "SELECT single ENDDA FROM PLOG INTO @DATA(ld_checkendda). | ||||
| DATA(ld_checkendda) | = '99991231'. | |||
| "SELECT single PERNR FROM PA0001 INTO @DATA(ld_checkperson). | ||||
| "SELECT single PROZT FROM P1001 INTO @DATA(ld_checkprozent). | ||||
| "SELECT single TCODE FROM SY INTO @DATA(ld_checkcode). | ||||
| DATA(ld_checkcode) | = 'INS'. | |||
Search for further information about these or an SAP related objects