SAP RSAR_INFOOBJECT_USAGE Function Module for Reference for InfoObjects
RSAR_INFOOBJECT_USAGE is a standard rsar infoobject usage SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reference for InfoObjects 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 rsar infoobject usage FM, simply by entering the name RSAR_INFOOBJECT_USAGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSAC
Program Name: SAPLRSAC
Main Program: SAPLRSAC
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSAR_INFOOBJECT_USAGE 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 'RSAR_INFOOBJECT_USAGE'"Reference for InfoObjects.
EXPORTING
I_INFOOBJECT = "Info-Object
* I_LOGSYS = '*' "Logical system
* I_OBJVERS = 'A' "Object Version
IMPORTING
E_T_IOBJ_ISTD = "IOBJ_ISTD usage table
E_T_IOBJ_ISMD = "IOBJ_ISMD usage table
E_T_IOBJ_ISTI = "IOBJ_ISTI usage table
E_T_IOBJ_ISMI = "IOBJ_ISMI usage table
EXCEPTIONS
NO_USAGE = 1 ILLEGAL_INPUT = 2
IMPORTING Parameters details for RSAR_INFOOBJECT_USAGE
I_INFOOBJECT - Info-Object
Data type: RSD_IOBJNMOptional: No
Call by Reference: No ( called with pass by value option)
I_LOGSYS - Logical system
Data type: RSA_LOGSYSDefault: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJVERS - Object Version
Data type: RSOBJVERSDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSAR_INFOOBJECT_USAGE
E_T_IOBJ_ISTD - IOBJ_ISTD usage table
Data type: RS_T_USED_BYOptional: No
Call by Reference: Yes
E_T_IOBJ_ISMD - IOBJ_ISMD usage table
Data type: RS_T_USED_BYOptional: No
Call by Reference: Yes
E_T_IOBJ_ISTI - IOBJ_ISTI usage table
Data type: RS_T_USED_BYOptional: No
Call by Reference: Yes
E_T_IOBJ_ISMI - IOBJ_ISMI usage table
Data type: RS_T_USED_BYOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_USAGE - no where-used function available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ILLEGAL_INPUT - Invalid Entry
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSAR_INFOOBJECT_USAGE 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_no_usage | TYPE STRING, " | |||
| lv_i_infoobject | TYPE RSD_IOBJNM, " | |||
| lv_e_t_iobj_istd | TYPE RS_T_USED_BY, " | |||
| lv_i_logsys | TYPE RSA_LOGSYS, " '*' | |||
| lv_e_t_iobj_ismd | TYPE RS_T_USED_BY, " | |||
| lv_illegal_input | TYPE RS_T_USED_BY, " | |||
| lv_i_objvers | TYPE RSOBJVERS, " 'A' | |||
| lv_e_t_iobj_isti | TYPE RS_T_USED_BY, " | |||
| lv_e_t_iobj_ismi | TYPE RS_T_USED_BY. " |
|   CALL FUNCTION 'RSAR_INFOOBJECT_USAGE' "Reference for InfoObjects |
| EXPORTING | ||
| I_INFOOBJECT | = lv_i_infoobject | |
| I_LOGSYS | = lv_i_logsys | |
| I_OBJVERS | = lv_i_objvers | |
| IMPORTING | ||
| E_T_IOBJ_ISTD | = lv_e_t_iobj_istd | |
| E_T_IOBJ_ISMD | = lv_e_t_iobj_ismd | |
| E_T_IOBJ_ISTI | = lv_e_t_iobj_isti | |
| E_T_IOBJ_ISMI | = lv_e_t_iobj_ismi | |
| EXCEPTIONS | ||
| NO_USAGE = 1 | ||
| ILLEGAL_INPUT = 2 | ||
| . " RSAR_INFOOBJECT_USAGE | ||
ABAP code using 7.40 inline data declarations to call FM RSAR_INFOOBJECT_USAGE
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_i_logsys) | = '*'. | |||
| DATA(ld_i_objvers) | = 'A'. | |||
Search for further information about these or an SAP related objects