SAP RH_CHECK_ORG_OBJECT_EXISTS Function Module for Check Existence of OrgObject









RH_CHECK_ORG_OBJECT_EXISTS is a standard rh check org object exists SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check Existence of OrgObject 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 rh check org object exists FM, simply by entering the name RH_CHECK_ORG_OBJECT_EXISTS into the relevant SAP transaction such as SE37 or SE38.

Function Group: RHWF
Program Name: SAPLRHWF
Main Program: SAPLRHWF
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RH_CHECK_ORG_OBJECT_EXISTS 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_ORG_OBJECT_EXISTS'"Check Existence of OrgObject
EXPORTING
ACT_OBJECT_EXT = "
* ACT_PLVAR = "
* ACT_LANGU = SY-LANGU "
* ACT_ISTAT = '1' "
* ACT_BEGDA = SY-DATUM "
* ACT_ENDDA = SY-DATUM "
* AUTHORITY_CHECK = 'X' "
* READ_DB = "

IMPORTING
ACT_OTYPE_TEXT = "
ACT_SHORT = "
ACT_STEXT = "
ACT_OBEG = "
ACT_OEND = "
ACT_OSTAT = "
ACT_OBJECT_EXT = "
ACT_PLVAR = "

EXCEPTIONS
NO_ACTIVE_PLVAR = 1 NO_ORG_OBJECT = 2 ORG_OBJECT_NOT_FOUND = 3
.



IMPORTING Parameters details for RH_CHECK_ORG_OBJECT_EXISTS

ACT_OBJECT_EXT -

Data type: RHOBJECTS-OBJECT
Optional: No
Call by Reference: No ( called with pass by value option)

ACT_PLVAR -

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

ACT_LANGU -

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACT_ISTAT -

Data type: OBJEC-ISTAT
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACT_BEGDA -

Data type: OBJEC-BEGDA
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACT_ENDDA -

Data type: OBJEC-ENDDA
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUTHORITY_CHECK -

Data type: HRRHAS-AUTHY
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_DB -

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

EXPORTING Parameters details for RH_CHECK_ORG_OBJECT_EXISTS

ACT_OTYPE_TEXT -

Data type: T777O-OTEXT
Optional: No
Call by Reference: No ( called with pass by value option)

ACT_SHORT -

Data type: OBJEC-SHORT
Optional: No
Call by Reference: No ( called with pass by value option)

ACT_STEXT -

Data type: OBJEC-STEXT
Optional: No
Call by Reference: No ( called with pass by value option)

ACT_OBEG -

Data type: OBJEC-BEGDA
Optional: No
Call by Reference: No ( called with pass by value option)

ACT_OEND -

Data type: OBJEC-ENDDA
Optional: No
Call by Reference: No ( called with pass by value option)

ACT_OSTAT -

Data type: OBJEC-ISTAT
Optional: No
Call by Reference: No ( called with pass by value option)

ACT_OBJECT_EXT -

Data type: RHOBJECTS-OBJECT
Optional: No
Call by Reference: No ( called with pass by value option)

ACT_PLVAR -

Data type: OBJEC-PLVAR
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_ACTIVE_PLVAR -

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

NO_ORG_OBJECT -

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

ORG_OBJECT_NOT_FOUND -

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

Copy and paste ABAP code example for RH_CHECK_ORG_OBJECT_EXISTS 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_act_object_ext  TYPE RHOBJECTS-OBJECT, "   
lv_act_otype_text  TYPE T777O-OTEXT, "   
lv_no_active_plvar  TYPE T777O, "   
lv_act_plvar  TYPE OBJEC-PLVAR, "   
lv_act_short  TYPE OBJEC-SHORT, "   
lv_no_org_object  TYPE OBJEC, "   
lv_act_langu  TYPE SY-LANGU, "   SY-LANGU
lv_act_stext  TYPE OBJEC-STEXT, "   
lv_org_object_not_found  TYPE OBJEC, "   
lv_act_obeg  TYPE OBJEC-BEGDA, "   
lv_act_istat  TYPE OBJEC-ISTAT, "   '1'
lv_act_oend  TYPE OBJEC-ENDDA, "   
lv_act_begda  TYPE OBJEC-BEGDA, "   SY-DATUM
lv_act_endda  TYPE OBJEC-ENDDA, "   SY-DATUM
lv_act_ostat  TYPE OBJEC-ISTAT, "   
lv_act_object_ext  TYPE RHOBJECTS-OBJECT, "   
lv_authority_check  TYPE HRRHAS-AUTHY, "   'X'
lv_read_db  TYPE OBJEC-HISTO, "   
lv_act_plvar  TYPE OBJEC-PLVAR. "   

  CALL FUNCTION 'RH_CHECK_ORG_OBJECT_EXISTS'  "Check Existence of OrgObject
    EXPORTING
         ACT_OBJECT_EXT = lv_act_object_ext
         ACT_PLVAR = lv_act_plvar
         ACT_LANGU = lv_act_langu
         ACT_ISTAT = lv_act_istat
         ACT_BEGDA = lv_act_begda
         ACT_ENDDA = lv_act_endda
         AUTHORITY_CHECK = lv_authority_check
         READ_DB = lv_read_db
    IMPORTING
         ACT_OTYPE_TEXT = lv_act_otype_text
         ACT_SHORT = lv_act_short
         ACT_STEXT = lv_act_stext
         ACT_OBEG = lv_act_obeg
         ACT_OEND = lv_act_oend
         ACT_OSTAT = lv_act_ostat
         ACT_OBJECT_EXT = lv_act_object_ext
         ACT_PLVAR = lv_act_plvar
    EXCEPTIONS
        NO_ACTIVE_PLVAR = 1
        NO_ORG_OBJECT = 2
        ORG_OBJECT_NOT_FOUND = 3
. " RH_CHECK_ORG_OBJECT_EXISTS




ABAP code using 7.40 inline data declarations to call FM RH_CHECK_ORG_OBJECT_EXISTS

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 OBJECT FROM RHOBJECTS INTO @DATA(ld_act_object_ext).
 
"SELECT single OTEXT FROM T777O INTO @DATA(ld_act_otype_text).
 
 
"SELECT single PLVAR FROM OBJEC INTO @DATA(ld_act_plvar).
 
"SELECT single SHORT FROM OBJEC INTO @DATA(ld_act_short).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_act_langu).
DATA(ld_act_langu) = SY-LANGU.
 
"SELECT single STEXT FROM OBJEC INTO @DATA(ld_act_stext).
 
 
"SELECT single BEGDA FROM OBJEC INTO @DATA(ld_act_obeg).
 
"SELECT single ISTAT FROM OBJEC INTO @DATA(ld_act_istat).
DATA(ld_act_istat) = '1'.
 
"SELECT single ENDDA FROM OBJEC INTO @DATA(ld_act_oend).
 
"SELECT single BEGDA FROM OBJEC INTO @DATA(ld_act_begda).
DATA(ld_act_begda) = SY-DATUM.
 
"SELECT single ENDDA FROM OBJEC INTO @DATA(ld_act_endda).
DATA(ld_act_endda) = SY-DATUM.
 
"SELECT single ISTAT FROM OBJEC INTO @DATA(ld_act_ostat).
 
"SELECT single OBJECT FROM RHOBJECTS INTO @DATA(ld_act_object_ext).
 
"SELECT single AUTHY FROM HRRHAS INTO @DATA(ld_authority_check).
DATA(ld_authority_check) = 'X'.
 
"SELECT single HISTO FROM OBJEC INTO @DATA(ld_read_db).
 
"SELECT single PLVAR FROM OBJEC INTO @DATA(ld_act_plvar).
 


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!