SAP RSAR_ISOURCE_MD_GET Function Module for Read an InfoSource for Master Data
RSAR_ISOURCE_MD_GET is a standard rsar isource md 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 Read an InfoSource for Master Data 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 isource md get FM, simply by entering the name RSAR_ISOURCE_MD_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_ISOURCE_MD_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_ISOURCE_MD_GET'"Read an InfoSource for Master Data.
EXPORTING
* I_LANGU = SY-LANGU "Requested Language
I_ISOURCE = "Name of the requested InfoSource
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "Requested object version
* I_COBJVERS = RS_C_OBJVERS-MODIFIED "Requested object version (KS)
* I_WITHOUT_AUTHORITY = "
* I_TYPE = 'M' "Type: Attributes, Texts, Hierarchies
* I_NO_APPLNM = RS_C_FALSE "Applnm is irrelevant (i.e. mainly IOBJ_GET)
IMPORTING
E_S_OS = "Technical details of the InfoSource
E_S_CS = "
E_T_CSFIELD = "
E_T_CSFIELDTXT = "
E_S_OST = "Determine texts for InfoSource
E_T_OSFIELD = "Key fields with technical properties
E_T_OSFIELDTXT = "Key fields with text and technical properties
E_T_OSATTFD = "Attributes with technical properties
E_T_OSATTFDTXT = "Attributes with texts and technical properties
E_ICON = "Icon for attributes
E_ICON_TEXT = "Icon for texts
E_ICON_HIERARCHY = "Icon for hierarchies
EXCEPTIONS
ISOURCE_NOT_FOUND = 1 UNAUTHORIZED = 2 IOBJ_IS_REF = 3
IMPORTING Parameters details for RSAR_ISOURCE_MD_GET
I_LANGU - Requested Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ISOURCE - Name of the requested InfoSource
Data type: RSA_ISOURCEOptional: 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_COBJVERS - Requested object version (KS)
Data type: RS_OBJVERSDefault: RS_C_OBJVERS-MODIFIED
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WITHOUT_AUTHORITY -
Data type: RS_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TYPE - Type: Attributes, Texts, Hierarchies
Data type: RSREQUTYPEDefault: 'M'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_APPLNM - Applnm is irrelevant (i.e. mainly IOBJ_GET)
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSAR_ISOURCE_MD_GET
E_S_OS - Technical details of the InfoSource
Data type: RSARC_S_RSOSOptional: No
Call by Reference: No ( called with pass by value option)
E_S_CS -
Data type: RSARC_S_RSKSOptional: No
Call by Reference: No ( called with pass by value option)
E_T_CSFIELD -
Data type: RSARC_T_RSKSFIELDOptional: No
Call by Reference: No ( called with pass by value option)
E_T_CSFIELDTXT -
Data type: RSARC_T_RSKSFIELDTXTOptional: No
Call by Reference: No ( called with pass by value option)
E_S_OST - Determine texts for InfoSource
Data type: RSARC_S_RSOSTOptional: No
Call by Reference: No ( called with pass by value option)
E_T_OSFIELD - Key fields with technical properties
Data type: RSARC_T_RSFIELDOptional: No
Call by Reference: No ( called with pass by value option)
E_T_OSFIELDTXT - Key fields with text and technical properties
Data type: RSARC_T_RSFIELDTXTOptional: No
Call by Reference: No ( called with pass by value option)
E_T_OSATTFD - Attributes with technical properties
Data type: RSARC_T_RSFIELDOptional: No
Call by Reference: No ( called with pass by value option)
E_T_OSATTFDTXT - Attributes with texts and technical properties
Data type: RSARC_T_RSFIELDTXTOptional: No
Call by Reference: No ( called with pass by value option)
E_ICON - Icon for attributes
Data type: RS_ICONOptional: No
Call by Reference: No ( called with pass by value option)
E_ICON_TEXT - Icon for texts
Data type: RS_ICONOptional: No
Call by Reference: No ( called with pass by value option)
E_ICON_HIERARCHY - Icon for hierarchies
Data type: RS_ICONOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ISOURCE_NOT_FOUND - InfoSource does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNAUTHORIZED - No Authorization
Data type:Optional: No
Call by Reference: Yes
IOBJ_IS_REF - InfoObject references another IO
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSAR_ISOURCE_MD_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_os | TYPE RSARC_S_RSOS, " | |||
| lv_i_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_isource_not_found | TYPE SY, " | |||
| lv_e_s_cs | TYPE RSARC_S_RSKS, " | |||
| lv_e_t_csfield | TYPE RSARC_T_RSKSFIELD, " | |||
| lv_e_t_csfieldtxt | TYPE RSARC_T_RSKSFIELDTXT, " | |||
| lv_e_s_ost | TYPE RSARC_S_RSOST, " | |||
| lv_i_isource | TYPE RSA_ISOURCE, " | |||
| lv_unauthorized | TYPE RSA_ISOURCE, " | |||
| lv_i_objvers | TYPE RS_OBJVERS, " RS_C_OBJVERS-ACTIVE | |||
| lv_e_t_osfield | TYPE RSARC_T_RSFIELD, " | |||
| lv_iobj_is_ref | TYPE RSARC_T_RSFIELD, " | |||
| lv_i_cobjvers | TYPE RS_OBJVERS, " RS_C_OBJVERS-MODIFIED | |||
| lv_e_t_osfieldtxt | TYPE RSARC_T_RSFIELDTXT, " | |||
| lv_e_t_osattfd | TYPE RSARC_T_RSFIELD, " | |||
| lv_i_without_authority | TYPE RS_BOOL, " | |||
| lv_i_type | TYPE RSREQUTYPE, " 'M' | |||
| lv_e_t_osattfdtxt | TYPE RSARC_T_RSFIELDTXT, " | |||
| lv_e_icon | TYPE RS_ICON, " | |||
| lv_i_no_applnm | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_e_icon_text | TYPE RS_ICON, " | |||
| lv_e_icon_hierarchy | TYPE RS_ICON. " |
|   CALL FUNCTION 'RSAR_ISOURCE_MD_GET' "Read an InfoSource for Master Data |
| EXPORTING | ||
| I_LANGU | = lv_i_langu | |
| I_ISOURCE | = lv_i_isource | |
| I_OBJVERS | = lv_i_objvers | |
| I_COBJVERS | = lv_i_cobjvers | |
| I_WITHOUT_AUTHORITY | = lv_i_without_authority | |
| I_TYPE | = lv_i_type | |
| I_NO_APPLNM | = lv_i_no_applnm | |
| IMPORTING | ||
| E_S_OS | = lv_e_s_os | |
| E_S_CS | = lv_e_s_cs | |
| E_T_CSFIELD | = lv_e_t_csfield | |
| E_T_CSFIELDTXT | = lv_e_t_csfieldtxt | |
| E_S_OST | = lv_e_s_ost | |
| E_T_OSFIELD | = lv_e_t_osfield | |
| E_T_OSFIELDTXT | = lv_e_t_osfieldtxt | |
| E_T_OSATTFD | = lv_e_t_osattfd | |
| E_T_OSATTFDTXT | = lv_e_t_osattfdtxt | |
| E_ICON | = lv_e_icon | |
| E_ICON_TEXT | = lv_e_icon_text | |
| E_ICON_HIERARCHY | = lv_e_icon_hierarchy | |
| EXCEPTIONS | ||
| ISOURCE_NOT_FOUND = 1 | ||
| UNAUTHORIZED = 2 | ||
| IOBJ_IS_REF = 3 | ||
| . " RSAR_ISOURCE_MD_GET | ||
ABAP code using 7.40 inline data declarations to call FM RSAR_ISOURCE_MD_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. | |||
| DATA(ld_i_cobjvers) | = RS_C_OBJVERS-MODIFIED. | |||
| DATA(ld_i_type) | = 'M'. | |||
| DATA(ld_i_no_applnm) | = RS_C_FALSE. | |||
Search for further information about these or an SAP related objects