SAP RSAC2_TRANSFERRULES_COPY_INT Function Module for Copy Tranfer Rule









RSAC2_TRANSFERRULES_COPY_INT is a standard rsac2 transferrules copy int SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Copy Tranfer Rule 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 transferrules copy int FM, simply by entering the name RSAC2_TRANSFERRULES_COPY_INT 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_TRANSFERRULES_COPY_INT 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_TRANSFERRULES_COPY_INT'"Copy Tranfer Rule
EXPORTING
I_S_TS_ADM = "Dialog structure transfer rules header
I_T_RSSTSMAPPING = "Table Transfer Structure Communication Struct./Trnsfr Strctr
I_R_RSAR_FORMULAS = "Formula Builder BW
I_T_RSSTSFIELD = "Table Transfer Struture Field Definition Transfer Structure

IMPORTING
E_S_TS_ADM = "Dialog structure transfer rules header
E_T_RSSTSMAPPING = "Table Transfer Structure Communication Struct./Trnsfr Strctr
E_R_RSAR_FORMULAS = "Formula Builder BW

EXCEPTIONS
ROUTINE_COPY_ERROR = 1 FORMULA_COPY_ERROR = 2
.



IMPORTING Parameters details for RSAC2_TRANSFERRULES_COPY_INT

I_S_TS_ADM - Dialog structure transfer rules header

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

I_T_RSSTSMAPPING - Table Transfer Structure Communication Struct./Trnsfr Strctr

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

I_R_RSAR_FORMULAS - Formula Builder BW

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

I_T_RSSTSFIELD - Table Transfer Struture Field Definition Transfer Structure

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

EXPORTING Parameters details for RSAC2_TRANSFERRULES_COPY_INT

E_S_TS_ADM - Dialog structure transfer rules header

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

E_T_RSSTSMAPPING - Table Transfer Structure Communication Struct./Trnsfr Strctr

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

E_R_RSAR_FORMULAS - Formula Builder BW

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

EXCEPTIONS details

ROUTINE_COPY_ERROR -

Data type:
Optional: No
Call by Reference: Yes

FORMULA_COPY_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSAC2_TRANSFERRULES_COPY_INT 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_s_ts_adm  TYPE RSAD_TSHEADER, "   
lv_i_s_ts_adm  TYPE RSAD_TSHEADER, "   
lv_routine_copy_error  TYPE RSAD_TSHEADER, "   
lv_e_t_rsstsmapping  TYPE RSARC_T_RSSTSMAPPING, "   
lv_i_t_rsstsmapping  TYPE RSARC_T_RSSTSMAPPING, "   
lv_formula_copy_error  TYPE RSARC_T_RSSTSMAPPING, "   
lv_e_r_rsar_formulas  TYPE CL_RSAR_FORMULAS, "   
lv_i_r_rsar_formulas  TYPE CL_RSAR_FORMULAS, "   
lv_i_t_rsstsfield  TYPE RSARC_T_RSSTSFIELD. "   

  CALL FUNCTION 'RSAC2_TRANSFERRULES_COPY_INT'  "Copy Tranfer Rule
    EXPORTING
         I_S_TS_ADM = lv_i_s_ts_adm
         I_T_RSSTSMAPPING = lv_i_t_rsstsmapping
         I_R_RSAR_FORMULAS = lv_i_r_rsar_formulas
         I_T_RSSTSFIELD = lv_i_t_rsstsfield
    IMPORTING
         E_S_TS_ADM = lv_e_s_ts_adm
         E_T_RSSTSMAPPING = lv_e_t_rsstsmapping
         E_R_RSAR_FORMULAS = lv_e_r_rsar_formulas
    EXCEPTIONS
        ROUTINE_COPY_ERROR = 1
        FORMULA_COPY_ERROR = 2
. " RSAC2_TRANSFERRULES_COPY_INT




ABAP code using 7.40 inline data declarations to call FM RSAC2_TRANSFERRULES_COPY_INT

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!