SAP RSAR_TRANSTRUCTURE_GET Function Module for Reading a transfer structure
RSAR_TRANSTRUCTURE_GET is a standard rsar transtructure get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reading a transfer structure 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 get FM, simply by entering the name RSAR_TRANSTRUCTURE_GET 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_GET 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_GET'"Reading a transfer structure.
EXPORTING
* I_LANGU = SY-LANGU "Requested Language
I_TRANSTRU = "Name of the transfer structure
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "Requested object version
* I_COMSTRU = "Name of communication structure
* I_OLTPSOURCE = "DataSource (evaluation only in D)
* I_LOGSYS = "Source system (evaluation only in D)
IMPORTING
E_S_TS = "General information about InfoSource
E_T_TSFIELD = "Fields with technical properties
E_T_TSFIELDTXT = "Fields with technical properties and texts
E_T_TSRULES = "Transfer rules
E_T_TSSFIELD = "Screen output format of the transfer structure
E_S_ODS = "Current ODS table
EXCEPTIONS
TRANSTRU_NOT_FOUND = 1 TRANSTRU_INVALID = 2 INTERNAL_ERROR = 3
IMPORTING Parameters details for RSAR_TRANSTRUCTURE_GET
I_LANGU - Requested Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TRANSTRU - Name of the transfer structure
Data type: RSA_TRANSTRUOptional: No
Call by Reference: No ( called with pass by value option)
I_OBJVERS - Requested object version
Data type: RS_OBJVERSDefault: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_COMSTRU - Name of communication structure
Data type: RSA_COMSTRUOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OLTPSOURCE - DataSource (evaluation only in D)
Data type: ROOSOURCEROptional: Yes
Call by Reference: Yes
I_LOGSYS - Source system (evaluation only in D)
Data type: RSSLOGSYSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSAR_TRANSTRUCTURE_GET
E_S_TS - General information about InfoSource
Data type: RSARC_S_RSTSOptional: No
Call by Reference: No ( called with pass by value option)
E_T_TSFIELD - Fields with technical properties
Data type: RSARC_T_RSTSFIELDOptional: No
Call by Reference: No ( called with pass by value option)
E_T_TSFIELDTXT - Fields with technical properties and texts
Data type: RSARC_T_RSTSFIELDTXTOptional: No
Call by Reference: No ( called with pass by value option)
E_T_TSRULES - Transfer rules
Data type: RSARC_T_RSTSRULESOptional: No
Call by Reference: No ( called with pass by value option)
E_T_TSSFIELD - Screen output format of the transfer structure
Data type: RSARC_T_RSSTSFIELDOptional: No
Call by Reference: No ( called with pass by value option)
E_S_ODS - Current ODS table
Data type: RSARC_S_ODSOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TRANSTRU_NOT_FOUND - Transfer structure does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TRANSTRU_INVALID - Transfer structure is invalid
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Unexpected internal error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSAR_TRANSTRUCTURE_GET 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 | TYPE RSARC_S_RSTS, " | |||
| lv_i_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_transtru_not_found | TYPE SY, " | |||
| lv_i_transtru | TYPE RSA_TRANSTRU, " | |||
| lv_e_t_tsfield | TYPE RSARC_T_RSTSFIELD, " | |||
| lv_transtru_invalid | TYPE RSARC_T_RSTSFIELD, " | |||
| lv_i_objvers | TYPE RS_OBJVERS, " RS_C_OBJVERS-ACTIVE | |||
| lv_e_t_tsfieldtxt | TYPE RSARC_T_RSTSFIELDTXT, " | |||
| lv_internal_error | TYPE RSARC_T_RSTSFIELDTXT, " | |||
| lv_i_comstru | TYPE RSA_COMSTRU, " | |||
| lv_e_t_tsrules | TYPE RSARC_T_RSTSRULES, " | |||
| lv_e_t_tssfield | TYPE RSARC_T_RSSTSFIELD, " | |||
| lv_i_oltpsource | TYPE ROOSOURCER, " | |||
| lv_e_s_ods | TYPE RSARC_S_ODS, " | |||
| lv_i_logsys | TYPE RSSLOGSYS. " |
|   CALL FUNCTION 'RSAR_TRANSTRUCTURE_GET' "Reading a transfer structure |
| EXPORTING | ||
| I_LANGU | = lv_i_langu | |
| I_TRANSTRU | = lv_i_transtru | |
| I_OBJVERS | = lv_i_objvers | |
| I_COMSTRU | = lv_i_comstru | |
| I_OLTPSOURCE | = lv_i_oltpsource | |
| I_LOGSYS | = lv_i_logsys | |
| IMPORTING | ||
| E_S_TS | = lv_e_s_ts | |
| E_T_TSFIELD | = lv_e_t_tsfield | |
| E_T_TSFIELDTXT | = lv_e_t_tsfieldtxt | |
| E_T_TSRULES | = lv_e_t_tsrules | |
| E_T_TSSFIELD | = lv_e_t_tssfield | |
| E_S_ODS | = lv_e_s_ods | |
| EXCEPTIONS | ||
| TRANSTRU_NOT_FOUND = 1 | ||
| TRANSTRU_INVALID = 2 | ||
| INTERNAL_ERROR = 3 | ||
| . " RSAR_TRANSTRUCTURE_GET | ||
ABAP code using 7.40 inline data declarations to call FM RSAR_TRANSTRUCTURE_GET
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 LANGU FROM SY INTO @DATA(ld_i_langu). | ||||
| DATA(ld_i_langu) | = SY-LANGU. | |||
| DATA(ld_i_objvers) | = RS_C_OBJVERS-ACTIVE. | |||
Search for further information about these or an SAP related objects