SAP RSB1_RO_INFOOBJECT_USAGE Function Module for Checks whether an infoobject is referenced by other infosources









RSB1_RO_INFOOBJECT_USAGE is a standard rsb1 ro 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 Checks whether an infoobject is referenced by other infosources 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 rsb1 ro infoobject usage FM, simply by entering the name RSB1_RO_INFOOBJECT_USAGE into the relevant SAP transaction such as SE37 or SE38.

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



Function RSB1_RO_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 'RSB1_RO_INFOOBJECT_USAGE'"Checks whether an infoobject is referenced by other infosources
EXPORTING
I_INFOOBJECTNAME = "InfoObject, which is under investigation.
* I_INFOSOURCENAME = '' "Current Infosource

IMPORTING
E_NO_OF_REFS = "Number of references
E_NO_OTHER_REFS = "Number of other referencing

EXCEPTIONS
NO_REFERENCES = 1
.



IMPORTING Parameters details for RSB1_RO_INFOOBJECT_USAGE

I_INFOOBJECTNAME - InfoObject, which is under investigation.

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

I_INFOSOURCENAME - Current Infosource

Data type: ROIS-ISOURCE
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RSB1_RO_INFOOBJECT_USAGE

E_NO_OF_REFS - Number of references

Data type: I
Optional: No
Call by Reference: Yes

E_NO_OTHER_REFS - Number of other referencing

Data type: I
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_REFERENCES - Transfered InfoObject is unknown.

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

Copy and paste ABAP code example for RSB1_RO_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_e_no_of_refs  TYPE I, "   
lv_no_references  TYPE I, "   
lv_i_infoobjectname  TYPE RODIOBJ-IOBJNM, "   
lv_e_no_other_refs  TYPE I, "   
lv_i_infosourcename  TYPE ROIS-ISOURCE. "   ''

  CALL FUNCTION 'RSB1_RO_INFOOBJECT_USAGE'  "Checks whether an infoobject is referenced by other infosources
    EXPORTING
         I_INFOOBJECTNAME = lv_i_infoobjectname
         I_INFOSOURCENAME = lv_i_infosourcename
    IMPORTING
         E_NO_OF_REFS = lv_e_no_of_refs
         E_NO_OTHER_REFS = lv_e_no_other_refs
    EXCEPTIONS
        NO_REFERENCES = 1
. " RSB1_RO_INFOOBJECT_USAGE




ABAP code using 7.40 inline data declarations to call FM RSB1_RO_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.

 
 
"SELECT single IOBJNM FROM RODIOBJ INTO @DATA(ld_i_infoobjectname).
 
 
"SELECT single ISOURCE FROM ROIS INTO @DATA(ld_i_infosourcename).
DATA(ld_i_infosourcename) = ''.
 


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!