SAP RHOM_GET_EXISTING_OBJECTS Function Module for
RHOM_GET_EXISTING_OBJECTS is a standard rhom get existing objects 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 rhom get existing objects FM, simply by entering the name RHOM_GET_EXISTING_OBJECTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHOM_OBJECTS_CREATE
Program Name: SAPLRHOM_OBJECTS_CREATE
Main Program: SAPLRHOM_OBJECTS_CREATE
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RHOM_GET_EXISTING_OBJECTS 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 'RHOM_GET_EXISTING_OBJECTS'".
EXPORTING
* PLVAR = "
OTYPE = "
* OSVECT = '1' "
* OSTAT = '1' "
* BEGDA = "
* ENDDA = "
* BUFFER_MODE = "
IMPORTING
ACTPLVAR = "
ACTOTYPE = "
ACTOSTAT = "
ACTSVECT = "
TABLES
EXISTING_OBJECTS = "
* OBJECTINDEX = "
EXCEPTIONS
NO_ACTIVE_PLVAR = 1 PLVAR_NOT_VALID = 2 OTYPE_NOT_FOUND = 3 OTYPE_NOT_ALLOWED = 4
IMPORTING Parameters details for RHOM_GET_EXISTING_OBJECTS
PLVAR -
Data type: PLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
OTYPE -
Data type: OTYPEOptional: No
Call by Reference: No ( called with pass by value option)
OSVECT -
Data type: SVECTDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OSTAT -
Data type: OBJEC-ISTATDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
BEGDA -
Data type: DOptional: Yes
Call by Reference: No ( called with pass by value option)
ENDDA -
Data type: DOptional: Yes
Call by Reference: No ( called with pass by value option)
BUFFER_MODE -
Data type: FLAG_XOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RHOM_GET_EXISTING_OBJECTS
ACTPLVAR -
Data type: PLVAROptional: No
Call by Reference: No ( called with pass by value option)
ACTOTYPE -
Data type: OTYPEOptional: No
Call by Reference: No ( called with pass by value option)
ACTOSTAT -
Data type: ISTAT_DOptional: No
Call by Reference: No ( called with pass by value option)
ACTSVECT -
Data type: SVECTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RHOM_GET_EXISTING_OBJECTS
EXISTING_OBJECTS -
Data type: P1000Optional: No
Call by Reference: No ( called with pass by value option)
OBJECTINDEX -
Data type: HROBJECTOptional: Yes
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)
PLVAR_NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTYPE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTYPE_NOT_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RHOM_GET_EXISTING_OBJECTS 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_plvar | TYPE PLVAR, " | |||
| lv_actplvar | TYPE PLVAR, " | |||
| lv_no_active_plvar | TYPE PLVAR, " | |||
| lt_existing_objects | TYPE STANDARD TABLE OF P1000, " | |||
| lv_otype | TYPE OTYPE, " | |||
| lv_actotype | TYPE OTYPE, " | |||
| lt_objectindex | TYPE STANDARD TABLE OF HROBJECT, " | |||
| lv_plvar_not_valid | TYPE HROBJECT, " | |||
| lv_osvect | TYPE SVECT, " '1' | |||
| lv_actostat | TYPE ISTAT_D, " | |||
| lv_otype_not_found | TYPE ISTAT_D, " | |||
| lv_ostat | TYPE OBJEC-ISTAT, " '1' | |||
| lv_actsvect | TYPE SVECT, " | |||
| lv_otype_not_allowed | TYPE SVECT, " | |||
| lv_begda | TYPE D, " | |||
| lv_endda | TYPE D, " | |||
| lv_buffer_mode | TYPE FLAG_X. " |
|   CALL FUNCTION 'RHOM_GET_EXISTING_OBJECTS' " |
| EXPORTING | ||
| PLVAR | = lv_plvar | |
| OTYPE | = lv_otype | |
| OSVECT | = lv_osvect | |
| OSTAT | = lv_ostat | |
| BEGDA | = lv_begda | |
| ENDDA | = lv_endda | |
| BUFFER_MODE | = lv_buffer_mode | |
| IMPORTING | ||
| ACTPLVAR | = lv_actplvar | |
| ACTOTYPE | = lv_actotype | |
| ACTOSTAT | = lv_actostat | |
| ACTSVECT | = lv_actsvect | |
| TABLES | ||
| EXISTING_OBJECTS | = lt_existing_objects | |
| OBJECTINDEX | = lt_objectindex | |
| EXCEPTIONS | ||
| NO_ACTIVE_PLVAR = 1 | ||
| PLVAR_NOT_VALID = 2 | ||
| OTYPE_NOT_FOUND = 3 | ||
| OTYPE_NOT_ALLOWED = 4 | ||
| . " RHOM_GET_EXISTING_OBJECTS | ||
ABAP code using 7.40 inline data declarations to call FM RHOM_GET_EXISTING_OBJECTS
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.| DATA(ld_osvect) | = '1'. | |||
| "SELECT single ISTAT FROM OBJEC INTO @DATA(ld_ostat). | ||||
| DATA(ld_ostat) | = '1'. | |||
Search for further information about these or an SAP related objects