SAP RSAR_INFOSOURCE_CREATE_DIALOG Function Module for BIW: Dialog for creating new InfoSources
RSAR_INFOSOURCE_CREATE_DIALOG is a standard rsar infosource create dialog SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BIW: Dialog for creating new InfoSources 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 infosource create dialog FM, simply by entering the name RSAR_INFOSOURCE_CREATE_DIALOG into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSAD
Program Name: SAPLRSAD
Main Program: SAPLRSAD
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSAR_INFOSOURCE_CREATE_DIALOG 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_INFOSOURCE_CREATE_DIALOG'"BIW: Dialog for creating new InfoSources.
EXPORTING
* I_TYP = ' ' "BW Infosource type (transaction data/basic characteristic)
* I_OSOURCE = ' ' "InfoSource
IMPORTING
E_ERROR = "
E_TYP = "
E_STEXT = "
E_MTEXT = "
E_LTEXT = "
E_OSOURCE = "
E_TEMPL_IS = "InfoSource
E_ISOSTYPE = "BW Infosource type (transaction data/basic characteristic)
IMPORTING Parameters details for RSAR_INFOSOURCE_CREATE_DIALOG
I_TYP - BW Infosource type (transaction data/basic characteristic)
Data type: RSISOSTYPEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OSOURCE - InfoSource
Data type: RSIS-ISOURCEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSAR_INFOSOURCE_CREATE_DIALOG
E_ERROR -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_TYP -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_STEXT -
Data type: RS_TXTSHOptional: No
Call by Reference: No ( called with pass by value option)
E_MTEXT -
Data type: RS_TXTMDOptional: No
Call by Reference: No ( called with pass by value option)
E_LTEXT -
Data type: RS_TXTLGOptional: No
Call by Reference: No ( called with pass by value option)
E_OSOURCE -
Data type: RSIS-ISOURCEOptional: No
Call by Reference: No ( called with pass by value option)
E_TEMPL_IS - InfoSource
Data type: RSISOURCEOptional: No
Call by Reference: No ( called with pass by value option)
E_ISOSTYPE - BW Infosource type (transaction data/basic characteristic)
Data type: RSISOSTYPEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSAR_INFOSOURCE_CREATE_DIALOG 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_typ | TYPE RSISOSTYPE, " ' ' | |||
| lv_e_error | TYPE C, " | |||
| lv_e_typ | TYPE C, " | |||
| lv_i_osource | TYPE RSIS-ISOURCE, " ' ' | |||
| lv_e_stext | TYPE RS_TXTSH, " | |||
| lv_e_mtext | TYPE RS_TXTMD, " | |||
| lv_e_ltext | TYPE RS_TXTLG, " | |||
| lv_e_osource | TYPE RSIS-ISOURCE, " | |||
| lv_e_templ_is | TYPE RSISOURCE, " | |||
| lv_e_isostype | TYPE RSISOSTYPE. " |
|   CALL FUNCTION 'RSAR_INFOSOURCE_CREATE_DIALOG' "BIW: Dialog for creating new InfoSources |
| EXPORTING | ||
| I_TYP | = lv_i_typ | |
| I_OSOURCE | = lv_i_osource | |
| IMPORTING | ||
| E_ERROR | = lv_e_error | |
| E_TYP | = lv_e_typ | |
| E_STEXT | = lv_e_stext | |
| E_MTEXT | = lv_e_mtext | |
| E_LTEXT | = lv_e_ltext | |
| E_OSOURCE | = lv_e_osource | |
| E_TEMPL_IS | = lv_e_templ_is | |
| E_ISOSTYPE | = lv_e_isostype | |
| . " RSAR_INFOSOURCE_CREATE_DIALOG | ||
ABAP code using 7.40 inline data declarations to call FM RSAR_INFOSOURCE_CREATE_DIALOG
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_typ) | = ' '. | |||
| "SELECT single ISOURCE FROM RSIS INTO @DATA(ld_i_osource). | ||||
| DATA(ld_i_osource) | = ' '. | |||
| "SELECT single ISOURCE FROM RSIS INTO @DATA(ld_e_osource). | ||||
Search for further information about these or an SAP related objects