SAP RH_ORG_OBJECT_ID_CONVERT Function Module for Convert Object Type and ID to BOR Type and Key









RH_ORG_OBJECT_ID_CONVERT is a standard rh org object id convert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert Object Type and ID to BOR Type and Key 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 org object id convert FM, simply by entering the name RH_ORG_OBJECT_ID_CONVERT into the relevant SAP transaction such as SE37 or SE38.

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



Function RH_ORG_OBJECT_ID_CONVERT 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_ORG_OBJECT_ID_CONVERT'"Convert Object Type and ID to BOR Type and Key
EXPORTING
* ACT_OTYPE = "
* ACT_OBJID = "
* ACT_PROG = "
* T77EO_OBJECTS_ONLY = "

IMPORTING
BOR_OBJTYPE = "
BOR_OBJKEY = "
ACT_OTYPE = "

EXCEPTIONS
ORG_OBJECT_TYPE_NOT_CONSISTENT = 1 PROG_UNKNOWN = 2 OTYPE_UNKNOWN = 3 EMPTY_OBJTYPE = 4
.



IMPORTING Parameters details for RH_ORG_OBJECT_ID_CONVERT

ACT_OTYPE -

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

ACT_OBJID -

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

ACT_PROG -

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

T77EO_OBJECTS_ONLY -

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

EXPORTING Parameters details for RH_ORG_OBJECT_ID_CONVERT

BOR_OBJTYPE -

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

BOR_OBJKEY -

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

ACT_OTYPE -

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

EXCEPTIONS details

ORG_OBJECT_TYPE_NOT_CONSISTENT -

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

PROG_UNKNOWN -

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

OTYPE_UNKNOWN -

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

EMPTY_OBJTYPE -

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

Copy and paste ABAP code example for RH_ORG_OBJECT_ID_CONVERT 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_otype  TYPE OBJEC-OTYPE, "   
lv_bor_objtype  TYPE HRI1208-OBJTYP, "   
lv_org_object_type_not_consistent  TYPE HRI1208, "   
lv_act_objid  TYPE HRI1208, "   
lv_bor_objkey  TYPE HRI1208-OBJKEY, "   
lv_prog_unknown  TYPE HRI1208, "   
lv_act_prog  TYPE T77EO-PROG, "   
lv_act_otype  TYPE OBJEC-OTYPE, "   
lv_otype_unknown  TYPE OBJEC, "   
lv_empty_objtype  TYPE OBJEC, "   
lv_t77eo_objects_only  TYPE C. "   

  CALL FUNCTION 'RH_ORG_OBJECT_ID_CONVERT'  "Convert Object Type and ID to BOR Type and Key
    EXPORTING
         ACT_OTYPE = lv_act_otype
         ACT_OBJID = lv_act_objid
         ACT_PROG = lv_act_prog
         T77EO_OBJECTS_ONLY = lv_t77eo_objects_only
    IMPORTING
         BOR_OBJTYPE = lv_bor_objtype
         BOR_OBJKEY = lv_bor_objkey
         ACT_OTYPE = lv_act_otype
    EXCEPTIONS
        ORG_OBJECT_TYPE_NOT_CONSISTENT = 1
        PROG_UNKNOWN = 2
        OTYPE_UNKNOWN = 3
        EMPTY_OBJTYPE = 4
. " RH_ORG_OBJECT_ID_CONVERT




ABAP code using 7.40 inline data declarations to call FM RH_ORG_OBJECT_ID_CONVERT

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 OTYPE FROM OBJEC INTO @DATA(ld_act_otype).
 
"SELECT single OBJTYP FROM HRI1208 INTO @DATA(ld_bor_objtype).
 
 
 
"SELECT single OBJKEY FROM HRI1208 INTO @DATA(ld_bor_objkey).
 
 
"SELECT single PROG FROM T77EO INTO @DATA(ld_act_prog).
 
"SELECT single OTYPE FROM OBJEC INTO @DATA(ld_act_otype).
 
 
 
 


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!