SAP RH_SAP_ORG_OBJEC_REL_CHECK Function Module for
RH_SAP_ORG_OBJEC_REL_CHECK is a standard rh sap org objec rel check 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 sap org objec rel check FM, simply by entering the name RH_SAP_ORG_OBJEC_REL_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHWO
Program Name: SAPLRHWO
Main Program: SAPLRHWO
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RH_SAP_ORG_OBJEC_REL_CHECK 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_SAP_ORG_OBJEC_REL_CHECK'".
EXPORTING
ACT_OBJTYPE = "
* AUTHORITY_CHECK = 'X' "
ACT_OBJKEY = "
ACT_PLVAR = "
ACT_OTYPE = "
ACT_OBJID = "
* ACT_ISTAT = '1' "
* ACT_BEGDA = SY-DATUM "
* ACT_ENDDA = '99991231' "
* READ_P1208 = 'X' "
IMPORTING
VALID_BEGDA = "
VALID_ENDDA = "
TABLES
* ACT_P1208 = "
EXCEPTIONS
SAP_OBJECT_KEY_NOT_VALID = 1 ORG_OBJECT_NOT_VALID = 2 ORG_OBJECT_ALREADY_RELATED = 3 NO_AUTHORITY = 4
IMPORTING Parameters details for RH_SAP_ORG_OBJEC_REL_CHECK
ACT_OBJTYPE -
Data type: P1208-OBJTYPOptional: No
Call by Reference: No ( called with pass by value option)
AUTHORITY_CHECK -
Data type: P1208-HISTODefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_OBJKEY -
Data type: P1208-OBJKEYOptional: No
Call by Reference: No ( called with pass by value option)
ACT_PLVAR -
Data type: P1208-PLVAROptional: No
Call by Reference: No ( called with pass by value option)
ACT_OTYPE -
Data type: P1208-OTYPEOptional: No
Call by Reference: No ( called with pass by value option)
ACT_OBJID -
Data type: P1208-OBJIDOptional: No
Call by Reference: No ( called with pass by value option)
ACT_ISTAT -
Data type: P1208-ISTATDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_BEGDA -
Data type: P1208-BEGDADefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_ENDDA -
Data type: P1208-ENDDADefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_P1208 -
Data type: P1208-HISTODefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RH_SAP_ORG_OBJEC_REL_CHECK
VALID_BEGDA -
Data type: P1208-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
VALID_ENDDA -
Data type: P1208-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_SAP_ORG_OBJEC_REL_CHECK
ACT_P1208 -
Data type: P1208Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SAP_OBJECT_KEY_NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ORG_OBJECT_NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ORG_OBJECT_ALREADY_RELATED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_SAP_ORG_OBJEC_REL_CHECK 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: | ||||
| lt_act_p1208 | TYPE STANDARD TABLE OF P1208, " | |||
| lv_act_objtype | TYPE P1208-OBJTYP, " | |||
| lv_valid_begda | TYPE P1208-BEGDA, " | |||
| lv_sap_object_key_not_valid | TYPE P1208, " | |||
| lv_authority_check | TYPE P1208-HISTO, " 'X' | |||
| lv_act_objkey | TYPE P1208-OBJKEY, " | |||
| lv_valid_endda | TYPE P1208-ENDDA, " | |||
| lv_org_object_not_valid | TYPE P1208, " | |||
| lv_act_plvar | TYPE P1208-PLVAR, " | |||
| lv_org_object_already_related | TYPE P1208, " | |||
| lv_act_otype | TYPE P1208-OTYPE, " | |||
| lv_no_authority | TYPE P1208, " | |||
| lv_act_objid | TYPE P1208-OBJID, " | |||
| lv_act_istat | TYPE P1208-ISTAT, " '1' | |||
| lv_act_begda | TYPE P1208-BEGDA, " SY-DATUM | |||
| lv_act_endda | TYPE P1208-ENDDA, " '99991231' | |||
| lv_read_p1208 | TYPE P1208-HISTO. " 'X' |
|   CALL FUNCTION 'RH_SAP_ORG_OBJEC_REL_CHECK' " |
| EXPORTING | ||
| ACT_OBJTYPE | = lv_act_objtype | |
| AUTHORITY_CHECK | = lv_authority_check | |
| ACT_OBJKEY | = lv_act_objkey | |
| ACT_PLVAR | = lv_act_plvar | |
| ACT_OTYPE | = lv_act_otype | |
| ACT_OBJID | = lv_act_objid | |
| ACT_ISTAT | = lv_act_istat | |
| ACT_BEGDA | = lv_act_begda | |
| ACT_ENDDA | = lv_act_endda | |
| READ_P1208 | = lv_read_p1208 | |
| IMPORTING | ||
| VALID_BEGDA | = lv_valid_begda | |
| VALID_ENDDA | = lv_valid_endda | |
| TABLES | ||
| ACT_P1208 | = lt_act_p1208 | |
| EXCEPTIONS | ||
| SAP_OBJECT_KEY_NOT_VALID = 1 | ||
| ORG_OBJECT_NOT_VALID = 2 | ||
| ORG_OBJECT_ALREADY_RELATED = 3 | ||
| NO_AUTHORITY = 4 | ||
| . " RH_SAP_ORG_OBJEC_REL_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM RH_SAP_ORG_OBJEC_REL_CHECK
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 OBJTYP FROM P1208 INTO @DATA(ld_act_objtype). | ||||
| "SELECT single BEGDA FROM P1208 INTO @DATA(ld_valid_begda). | ||||
| "SELECT single HISTO FROM P1208 INTO @DATA(ld_authority_check). | ||||
| DATA(ld_authority_check) | = 'X'. | |||
| "SELECT single OBJKEY FROM P1208 INTO @DATA(ld_act_objkey). | ||||
| "SELECT single ENDDA FROM P1208 INTO @DATA(ld_valid_endda). | ||||
| "SELECT single PLVAR FROM P1208 INTO @DATA(ld_act_plvar). | ||||
| "SELECT single OTYPE FROM P1208 INTO @DATA(ld_act_otype). | ||||
| "SELECT single OBJID FROM P1208 INTO @DATA(ld_act_objid). | ||||
| "SELECT single ISTAT FROM P1208 INTO @DATA(ld_act_istat). | ||||
| DATA(ld_act_istat) | = '1'. | |||
| "SELECT single BEGDA FROM P1208 INTO @DATA(ld_act_begda). | ||||
| DATA(ld_act_begda) | = SY-DATUM. | |||
| "SELECT single ENDDA FROM P1208 INTO @DATA(ld_act_endda). | ||||
| DATA(ld_act_endda) | = '99991231'. | |||
| "SELECT single HISTO FROM P1208 INTO @DATA(ld_read_p1208). | ||||
| DATA(ld_read_p1208) | = 'X'. | |||
Search for further information about these or an SAP related objects