SAP RSAR_TRANSTRUCTURE_ACTIVATE Function Module for Activate Transfer Rules









RSAR_TRANSTRUCTURE_ACTIVATE is a standard rsar transtructure activate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Activate 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 rsar transtructure activate FM, simply by entering the name RSAR_TRANSTRUCTURE_ACTIVATE 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_TRANSTRUCTURE_ACTIVATE 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_TRANSTRUCTURE_ACTIVATE'"Activate Transfer Rules
EXPORTING
I_OBJECT = "Name of Object ( of the OLTP Source! from 2.0A)
* I_DM_SEVERITY = ' ' "Data Mart Severity
* I_USE_PROPOSAL = RS_C_FALSE "Use dataelements of I_T_TSFIELD
* I_NO_PROG_GENERATE = RS_C_FALSE "No program generation
* I_SEGMENT_ID = "Segment ID
I_OBJTYPE = "Object Type
I_LOGSYS = "Source System
I_T_TSFIELD = "Transferstructure fields
I_T_TSMAPPING = "Transfer rules
I_TRANSTRU_NAME = "Name of the transfer structure
* I_WITHOUT_LOG = RS_C_FALSE "Don't open an own log
* I_WITHOUT_TRANSPORT = RS_C_FALSE "No Transportation (After Import Method))
* I_WITHOUT_VERSIONING = RS_C_FALSE "No PSA versioning allowed

CHANGING
* C_S_IS_ADMIN = "Header data for screen display

EXCEPTIONS
NO_ENTRIES_IN_FIELDTABLE = 1 ERROR_BY_ACTIVATE_CONVRULES = 10 ERROR_BY_ACTIVATE_FORMULA = 11 INFOOBJECT_INACTIVE = 12 ERROR_BY_CREATE_TRANSTRU_BIW = 13 PROGRAM_GENERATION_ERROR = 14 COMMUNICATION_FAILURES = 15 ERROR_ON_OLTP_TRANSTRU = 16 NO_PSA_VERSION_ALLOWED = 17 WRONG_OBJECTTYPE = 2 OBJECT_UNKNOWN = 3 NO_ACTIVE_COMSTRUCTURE = 4 UNKNOWN_LOGSYS = 5 OBJECT_LOCKED = 6 INCONSISTENCY = 7 ERROR_BY_SAVE_TABLE = 8 ERROR_BY_NAME_DETERMINATION = 9
.



IMPORTING Parameters details for RSAR_TRANSTRUCTURE_ACTIVATE

I_OBJECT - Name of Object ( of the OLTP Source! from 2.0A)

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

I_DM_SEVERITY - Data Mart Severity

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

I_USE_PROPOSAL - Use dataelements of I_T_TSFIELD

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_PROG_GENERATE - No program generation

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SEGMENT_ID - Segment ID

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

I_OBJTYPE - Object Type

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

I_LOGSYS - Source System

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

I_T_TSFIELD - Transferstructure fields

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

I_T_TSMAPPING - Transfer rules

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

I_TRANSTRU_NAME - Name of the transfer structure

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

I_WITHOUT_LOG - Don't open an own log

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WITHOUT_TRANSPORT - No Transportation (After Import Method))

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WITHOUT_VERSIONING - No PSA versioning allowed

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for RSAR_TRANSTRUCTURE_ACTIVATE

C_S_IS_ADMIN - Header data for screen display

Data type: RSARC_S_ISOLTP_ADMIN
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_ENTRIES_IN_FIELDTABLE - Field list was empty passed

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

ERROR_BY_ACTIVATE_CONVRULES -

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

ERROR_BY_ACTIVATE_FORMULA - Failed to activate formulas

Data type:
Optional: No
Call by Reference: Yes

INFOOBJECT_INACTIVE - InfoObject is not actice

Data type:
Optional: No
Call by Reference: Yes

ERROR_BY_CREATE_TRANSTRU_BIW - Error on generating the transfer structure on BW side

Data type:
Optional: No
Call by Reference: Yes

PROGRAM_GENERATION_ERROR - Failed to create the transfer program

Data type:
Optional: No
Call by Reference: Yes

COMMUNICATION_FAILURES - Error in communication with the source system

Data type:
Optional: No
Call by Reference: Yes

ERROR_ON_OLTP_TRANSTRU - Error on generating the transfer structure on OLTP side

Data type:
Optional: No
Call by Reference: Yes

NO_PSA_VERSION_ALLOWED - No PSA versioning allowed

Data type:
Optional: No
Call by Reference: Yes

WRONG_OBJECTTYPE - Objecttype unknown

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

OBJECT_UNKNOWN - Object unknown, possibly incorrect object type

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

NO_ACTIVE_COMSTRUCTURE - Communication structure is not active / available

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

UNKNOWN_LOGSYS - Logical System (OLTP) is Unknown

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

OBJECT_LOCKED - InfoSource, logical system in use

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

INCONSISTENCY -

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

ERROR_BY_SAVE_TABLE - Failed to save the active version of Transferrules

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

ERROR_BY_NAME_DETERMINATION - Error in the calculation of technical names

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

Copy and paste ABAP code example for RSAR_TRANSTRUCTURE_ACTIVATE 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_i_object  TYPE RSA_OBJECT, "   
lv_c_s_is_admin  TYPE RSARC_S_ISOLTP_ADMIN, "   
lv_no_entries_in_fieldtable  TYPE RSARC_S_ISOLTP_ADMIN, "   
lv_i_dm_severity  TYPE RS_CHAR1, "   ' '
lv_error_by_activate_convrules  TYPE RS_CHAR1, "   
lv_i_use_proposal  TYPE RS_BOOL, "   RS_C_FALSE
lv_error_by_activate_formula  TYPE RS_BOOL, "   
lv_i_no_prog_generate  TYPE RS_BOOL, "   RS_C_FALSE
lv_infoobject_inactive  TYPE RS_BOOL, "   
lv_i_segment_id  TYPE RSSEGID, "   
lv_error_by_create_transtru_biw  TYPE RSSEGID, "   
lv_program_generation_error  TYPE RSSEGID, "   
lv_communication_failures  TYPE RSSEGID, "   
lv_error_on_oltp_transtru  TYPE RSSEGID, "   
lv_no_psa_version_allowed  TYPE RSSEGID, "   
lv_i_objtype  TYPE RSA_ISTYPE, "   
lv_wrong_objecttype  TYPE RSA_ISTYPE, "   
lv_i_logsys  TYPE RSA_LOGSYS, "   
lv_object_unknown  TYPE RSA_LOGSYS, "   
lv_i_t_tsfield  TYPE RSARC_T_RSSTSFIELD, "   
lv_no_active_comstructure  TYPE RSARC_T_RSSTSFIELD, "   
lv_i_t_tsmapping  TYPE RSARC_T_RSSTSMAPPING, "   
lv_unknown_logsys  TYPE RSARC_T_RSSTSMAPPING, "   
lv_object_locked  TYPE RSARC_T_RSSTSMAPPING, "   
lv_i_transtru_name  TYPE RSA_TRANSTRU, "   
lv_inconsistency  TYPE RSA_TRANSTRU, "   
lv_i_without_log  TYPE RS_BOOL, "   RS_C_FALSE
lv_error_by_save_table  TYPE RS_BOOL, "   
lv_i_without_transport  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_without_versioning  TYPE RS_BOOL, "   RS_C_FALSE
lv_error_by_name_determination  TYPE RS_BOOL. "   

  CALL FUNCTION 'RSAR_TRANSTRUCTURE_ACTIVATE'  "Activate Transfer Rules
    EXPORTING
         I_OBJECT = lv_i_object
         I_DM_SEVERITY = lv_i_dm_severity
         I_USE_PROPOSAL = lv_i_use_proposal
         I_NO_PROG_GENERATE = lv_i_no_prog_generate
         I_SEGMENT_ID = lv_i_segment_id
         I_OBJTYPE = lv_i_objtype
         I_LOGSYS = lv_i_logsys
         I_T_TSFIELD = lv_i_t_tsfield
         I_T_TSMAPPING = lv_i_t_tsmapping
         I_TRANSTRU_NAME = lv_i_transtru_name
         I_WITHOUT_LOG = lv_i_without_log
         I_WITHOUT_TRANSPORT = lv_i_without_transport
         I_WITHOUT_VERSIONING = lv_i_without_versioning
    CHANGING
         C_S_IS_ADMIN = lv_c_s_is_admin
    EXCEPTIONS
        NO_ENTRIES_IN_FIELDTABLE = 1
        ERROR_BY_ACTIVATE_CONVRULES = 10
        ERROR_BY_ACTIVATE_FORMULA = 11
        INFOOBJECT_INACTIVE = 12
        ERROR_BY_CREATE_TRANSTRU_BIW = 13
        PROGRAM_GENERATION_ERROR = 14
        COMMUNICATION_FAILURES = 15
        ERROR_ON_OLTP_TRANSTRU = 16
        NO_PSA_VERSION_ALLOWED = 17
        WRONG_OBJECTTYPE = 2
        OBJECT_UNKNOWN = 3
        NO_ACTIVE_COMSTRUCTURE = 4
        UNKNOWN_LOGSYS = 5
        OBJECT_LOCKED = 6
        INCONSISTENCY = 7
        ERROR_BY_SAVE_TABLE = 8
        ERROR_BY_NAME_DETERMINATION = 9
. " RSAR_TRANSTRUCTURE_ACTIVATE




ABAP code using 7.40 inline data declarations to call FM RSAR_TRANSTRUCTURE_ACTIVATE

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_dm_severity) = ' '.
 
 
DATA(ld_i_use_proposal) = RS_C_FALSE.
 
 
DATA(ld_i_no_prog_generate) = RS_C_FALSE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_i_without_log) = RS_C_FALSE.
 
 
DATA(ld_i_without_transport) = RS_C_FALSE.
 
DATA(ld_i_without_versioning) = RS_C_FALSE.
 
 


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!