SAP RSAC2_ROUTINE_USAGE Function Module for Where-used list for routines in transfer rules









RSAC2_ROUTINE_USAGE is a standard rsac2 routine 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 Where-used list for routines in transfer rules 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 rsac2 routine usage FM, simply by entering the name RSAC2_ROUTINE_USAGE into the relevant SAP transaction such as SE37 or SE38.

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



Function RSAC2_ROUTINE_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 'RSAC2_ROUTINE_USAGE'"Where-used list for routines in transfer rules
EXPORTING
I_T_CODEID = "ID for ABAP Code

IMPORTING
E_USED = "Boolean
E_T_CODEID_USAGE = "BW Repository: Table of TLOGO Objects (with Type)
.



IMPORTING Parameters details for RSAC2_ROUTINE_USAGE

I_T_CODEID - ID for ABAP Code

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

EXPORTING Parameters details for RSAC2_ROUTINE_USAGE

E_USED - Boolean

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

E_T_CODEID_USAGE - BW Repository: Table of TLOGO Objects (with Type)

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

Copy and paste ABAP code example for RSAC2_ROUTINE_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_used  TYPE RS_BOOL, "   
lv_i_t_codeid  TYPE RSAA_T_CODEID_SINGLE, "   
lv_e_t_codeid_usage  TYPE RSAA_T_CODEID_USAGE. "   

  CALL FUNCTION 'RSAC2_ROUTINE_USAGE'  "Where-used list for routines in transfer rules
    EXPORTING
         I_T_CODEID = lv_i_t_codeid
    IMPORTING
         E_USED = lv_e_used
         E_T_CODEID_USAGE = lv_e_t_codeid_usage
. " RSAC2_ROUTINE_USAGE




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

 
 
 


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!