SAP RSAR_ISOURCE_MD_CREATE Function Module for Creating an InfoSource for master data
RSAR_ISOURCE_MD_CREATE is a standard rsar isource md create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Creating 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 create FM, simply by entering the name RSAR_ISOURCE_MD_CREATE 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_CREATE 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_CREATE'"Creating an InfoSource for master data.
EXPORTING
* I_LANGU = SY-LANGU "Requested Language
I_IOBJNM = "Name of related InfoObjects
I_APPLNM = "The InfoSource associated application
* I_TXTSH = "Short Text for the InfoSource
* I_TXTMD = "Text for InfoSource
* I_TXTLG = "Long Text for the InfoSource
EXCEPTIONS
OSOURCE_EXISTS = 1 IOBJ_NOT_FOUND = 2 OBJECT_LOCKED = 3 CANCELLED = 4 UNAUTHORIZED = 5 ABORTED = 6
IMPORTING Parameters details for RSAR_ISOURCE_MD_CREATE
I_LANGU - Requested Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_IOBJNM - Name of related InfoObjects
Data type: RSD_IOBJNMOptional: No
Call by Reference: No ( called with pass by value option)
I_APPLNM - The InfoSource associated application
Data type: RSAPPL-APPLNMOptional: No
Call by Reference: No ( called with pass by value option)
I_TXTSH - Short Text for the InfoSource
Data type: RS_TXTSHOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TXTMD - Text for InfoSource
Data type: RS_TXTMDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TXTLG - Long Text for the InfoSource
Data type: RS_TXTLGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OSOURCE_EXISTS - Object Source already exists
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IOBJ_NOT_FOUND - InfoObject Not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECT_LOCKED - InfoSource locked
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CANCELLED - Cancellation by user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNAUTHORIZED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ABORTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSAR_ISOURCE_MD_CREATE 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_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_osource_exists | TYPE SY, " | |||
| lv_i_iobjnm | TYPE RSD_IOBJNM, " | |||
| lv_iobj_not_found | TYPE RSD_IOBJNM, " | |||
| lv_i_applnm | TYPE RSAPPL-APPLNM, " | |||
| lv_object_locked | TYPE RSAPPL, " | |||
| lv_i_txtsh | TYPE RS_TXTSH, " | |||
| lv_cancelled | TYPE RS_TXTSH, " | |||
| lv_i_txtmd | TYPE RS_TXTMD, " | |||
| lv_unauthorized | TYPE RS_TXTMD, " | |||
| lv_aborted | TYPE RS_TXTMD, " | |||
| lv_i_txtlg | TYPE RS_TXTLG. " |
|   CALL FUNCTION 'RSAR_ISOURCE_MD_CREATE' "Creating an InfoSource for master data |
| EXPORTING | ||
| I_LANGU | = lv_i_langu | |
| I_IOBJNM | = lv_i_iobjnm | |
| I_APPLNM | = lv_i_applnm | |
| I_TXTSH | = lv_i_txtsh | |
| I_TXTMD | = lv_i_txtmd | |
| I_TXTLG | = lv_i_txtlg | |
| EXCEPTIONS | ||
| OSOURCE_EXISTS = 1 | ||
| IOBJ_NOT_FOUND = 2 | ||
| OBJECT_LOCKED = 3 | ||
| CANCELLED = 4 | ||
| UNAUTHORIZED = 5 | ||
| ABORTED = 6 | ||
| . " RSAR_ISOURCE_MD_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM RSAR_ISOURCE_MD_CREATE
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. | |||
| "SELECT single APPLNM FROM RSAPPL INTO @DATA(ld_i_applnm). | ||||
Search for further information about these or an SAP related objects