SAP REPOSITORY_INFO_SYSTEM Function Module for
REPOSITORY_INFO_SYSTEM is a standard repository info system 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 repository info system FM, simply by entering the name REPOSITORY_INFO_SYSTEM into the relevant SAP transaction such as SE37 or SE38.
Function Group: SEUA
Program Name: SAPLSEUA
Main Program: SAPLSEUA
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function REPOSITORY_INFO_SYSTEM 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 'REPOSITORY_INFO_SYSTEM'".
EXPORTING
OBJECT_TYPE = "Object ID according to EUOBJV-ID (INTERNAL NE 'X')
* ACTION = 'S' "Actions 'Find', 'Where-used', 'Environment' ('W', 'F' and 'E')
* OBJECT_NAME = "Object name
* ENCLOSING_OBJECT = "Enclosing objects (e.g. program)
* SUPPRESS_SELECTION = "
* VARIANT = "
* SHOW_AS_POPUP = "
IMPORTING
OBJECT_NAME_SELECTED = "Object name SET/GET (e.g. Form)
ENCLOSING_OBJECT_SELECTED = "Enclosing objects (e.g. program)
EXCEPTIONS
CANCEL = 1 WRONG_TYPE = 2
IMPORTING Parameters details for REPOSITORY_INFO_SYSTEM
OBJECT_TYPE - Object ID according to EUOBJV-ID (INTERNAL NE 'X')
Data type: EUOBJ-IDOptional: No
Call by Reference: No ( called with pass by value option)
ACTION - Actions 'Find', 'Where-used', 'Environment' ('W', 'F' and 'E')
Data type: SY-INPUTDefault: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJECT_NAME - Object name
Data type:Optional: Yes
Call by Reference: Yes
ENCLOSING_OBJECT - Enclosing objects (e.g. program)
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SUPPRESS_SELECTION -
Data type: SY-INPUTOptional: Yes
Call by Reference: No ( called with pass by value option)
VARIANT -
Data type: RSVAR-VARIANTOptional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_AS_POPUP -
Data type: SY-INPUTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for REPOSITORY_INFO_SYSTEM
OBJECT_NAME_SELECTED - Object name SET/GET (e.g. Form)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENCLOSING_OBJECT_SELECTED - Enclosing objects (e.g. program)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCEL - F12 executed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_TYPE - Type for INFO_OBJECT not implemented
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for REPOSITORY_INFO_SYSTEM 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_cancel | TYPE STRING, " | |||
lv_object_type | TYPE EUOBJ-ID, " | |||
lv_object_name_selected | TYPE EUOBJ, " | |||
lv_action | TYPE SY-INPUT, " 'S' | |||
lv_wrong_type | TYPE SY, " | |||
lv_enclosing_object_selected | TYPE SY, " | |||
lv_object_name | TYPE SY, " | |||
lv_enclosing_object | TYPE SY, " | |||
lv_suppress_selection | TYPE SY-INPUT, " | |||
lv_variant | TYPE RSVAR-VARIANT, " | |||
lv_show_as_popup | TYPE SY-INPUT. " |
  CALL FUNCTION 'REPOSITORY_INFO_SYSTEM' " |
EXPORTING | ||
OBJECT_TYPE | = lv_object_type | |
ACTION | = lv_action | |
OBJECT_NAME | = lv_object_name | |
ENCLOSING_OBJECT | = lv_enclosing_object | |
SUPPRESS_SELECTION | = lv_suppress_selection | |
VARIANT | = lv_variant | |
SHOW_AS_POPUP | = lv_show_as_popup | |
IMPORTING | ||
OBJECT_NAME_SELECTED | = lv_object_name_selected | |
ENCLOSING_OBJECT_SELECTED | = lv_enclosing_object_selected | |
EXCEPTIONS | ||
CANCEL = 1 | ||
WRONG_TYPE = 2 | ||
. " REPOSITORY_INFO_SYSTEM |
ABAP code using 7.40 inline data declarations to call FM REPOSITORY_INFO_SYSTEM
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 EUOBJ INTO @DATA(ld_object_type). | ||||
"SELECT single INPUT FROM SY INTO @DATA(ld_action). | ||||
DATA(ld_action) | = 'S'. | |||
"SELECT single INPUT FROM SY INTO @DATA(ld_suppress_selection). | ||||
"SELECT single VARIANT FROM RSVAR INTO @DATA(ld_variant). | ||||
"SELECT single INPUT FROM SY INTO @DATA(ld_show_as_popup). | ||||
Search for further information about these or an SAP related objects