SAP RHCT_OBJECT_DISPLAY Function Module for Display Object
RHCT_OBJECT_DISPLAY is a standard rhct object display SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display Object 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 rhct object display FM, simply by entering the name RHCT_OBJECT_DISPLAY into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHCT
Program Name: SAPLRHCT
Main Program: SAPLRHCT
Appliation area: H
Release date: 01-Jan-1970
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RHCT_OBJECT_DISPLAY 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 'RHCT_OBJECT_DISPLAY'"Display Object.
EXPORTING
SEL_OBJECT = "Selected object (object type / object ID)
SEL_ID = "
* CAT_PLVAR = "Plan version
CAT_TYPE = "Catalog category from table T77OC
EXCEPTIONS
OBJECT_NOT_FOUND = 1 NOT_AVAILABLE = 2
IMPORTING Parameters details for RHCT_OBJECT_DISPLAY
SEL_OBJECT - Selected object (object type / object ID)
Data type: HRHCTOBJCOptional: No
Call by Reference: No ( called with pass by value option)
SEL_ID -
Data type: SNODE-IDOptional: No
Call by Reference: No ( called with pass by value option)
CAT_PLVAR - Plan version
Data type: OBJEC-PLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
CAT_TYPE - Catalog category from table T77OC
Data type: T77OC-CATTPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OBJECT_NOT_FOUND - Selected object not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_AVAILABLE - Function does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RHCT_OBJECT_DISPLAY 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_sel_object | TYPE HRHCTOBJC, " | |||
| lv_object_not_found | TYPE HRHCTOBJC, " | |||
| lv_sel_id | TYPE SNODE-ID, " | |||
| lv_not_available | TYPE SNODE, " | |||
| lv_cat_plvar | TYPE OBJEC-PLVAR, " | |||
| lv_cat_type | TYPE T77OC-CATTP. " |
|   CALL FUNCTION 'RHCT_OBJECT_DISPLAY' "Display Object |
| EXPORTING | ||
| SEL_OBJECT | = lv_sel_object | |
| SEL_ID | = lv_sel_id | |
| CAT_PLVAR | = lv_cat_plvar | |
| CAT_TYPE | = lv_cat_type | |
| EXCEPTIONS | ||
| OBJECT_NOT_FOUND = 1 | ||
| NOT_AVAILABLE = 2 | ||
| . " RHCT_OBJECT_DISPLAY | ||
ABAP code using 7.40 inline data declarations to call FM RHCT_OBJECT_DISPLAY
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 ID FROM SNODE INTO @DATA(ld_sel_id). | ||||
| "SELECT single PLVAR FROM OBJEC INTO @DATA(ld_cat_plvar). | ||||
| "SELECT single CATTP FROM T77OC INTO @DATA(ld_cat_type). | ||||
Search for further information about these or an SAP related objects