SAP RSAR_GET_SOURCESYSTEM_PARMS Function Module for Popup for parameter input for the source system connection
RSAR_GET_SOURCESYSTEM_PARMS is a standard rsar get sourcesystem parms SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Popup for parameter input for the source system connection 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 get sourcesystem parms FM, simply by entering the name RSAR_GET_SOURCESYSTEM_PARMS 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_GET_SOURCESYSTEM_PARMS 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_GET_SOURCESYSTEM_PARMS'"Popup for parameter input for the source system connection.
EXPORTING
* I_SRCTYPE = "Type of Source System
* I_ONLY_PASSWORD = "Request password from BWREMOTE only
* I_USER_NAME = "Username (ALEREMOTE)
IMPORTING
E_LOGSYS = "
E_SYSTEMNO = "
E_MANUELL = "
E_ERROR = "
E_RESTORE = "Boolean
E_DESTINATION = "Logical Destination (Specified When Function Is Called)
E_DIALOG_DEST = "Logical Destination (Specified When Function Is Called)
E_SRC3DTYP = "Type of BAPI Source System
E_SRC3DREL = "Release of a 3rd Party Source System
E_UDC = "JNDI Name of the BI SDK Source System
E_VIRTORIG = "Original system for dummy
E_STEXT = "
E_SRCTYPE = "
E_PASSWORD = "
E_PASSWORD_BIW = "
E_USER_NAME = "
E_USER_BIW = "
E_APPLSERVER = "Name of Target Host
E_SYSTEMID = "
EXCEPTIONS
MISSING_ENTRY_IN_RSADMIN = 1
IMPORTING Parameters details for RSAR_GET_SOURCESYSTEM_PARMS
I_SRCTYPE - Type of Source System
Data type: RSSRCTYPEOptional: Yes
Call by Reference: Yes
I_ONLY_PASSWORD - Request password from BWREMOTE only
Data type: RS_BOOLOptional: Yes
Call by Reference: Yes
I_USER_NAME - Username (ALEREMOTE)
Data type: USR02-BNAMEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSAR_GET_SOURCESYSTEM_PARMS
E_LOGSYS -
Data type: RSA_LOGSYSOptional: No
Call by Reference: No ( called with pass by value option)
E_SYSTEMNO -
Data type: RSBASIDOC-TSPREFIXOptional: No
Call by Reference: No ( called with pass by value option)
E_MANUELL -
Data type: RS_BOOLOptional: No
Call by Reference: No ( called with pass by value option)
E_ERROR -
Data type: RS_BOOLOptional: No
Call by Reference: No ( called with pass by value option)
E_RESTORE - Boolean
Data type: RS_BOOLOptional: No
Call by Reference: No ( called with pass by value option)
E_DESTINATION - Logical Destination (Specified When Function Is Called)
Data type: RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
E_DIALOG_DEST - Logical Destination (Specified When Function Is Called)
Data type: RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
E_SRC3DTYP - Type of BAPI Source System
Data type: RSSRC3DTYPOptional: No
Call by Reference: No ( called with pass by value option)
E_SRC3DREL - Release of a 3rd Party Source System
Data type: RSSRC3DRELOptional: No
Call by Reference: No ( called with pass by value option)
E_UDC - JNDI Name of the BI SDK Source System
Data type: RSSDK_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
E_VIRTORIG - Original system for dummy
Data type: RSSLOGSYSOptional: No
Call by Reference: No ( called with pass by value option)
E_STEXT -
Data type: TBDLST-STEXTOptional: No
Call by Reference: No ( called with pass by value option)
E_SRCTYPE -
Data type: RSA_SRCTYPEOptional: No
Call by Reference: No ( called with pass by value option)
E_PASSWORD -
Data type: XU400-NEWCODEOptional: No
Call by Reference: No ( called with pass by value option)
E_PASSWORD_BIW -
Data type: XU400-NEWCODEOptional: No
Call by Reference: No ( called with pass by value option)
E_USER_NAME -
Data type: USR02-BNAMEOptional: No
Call by Reference: No ( called with pass by value option)
E_USER_BIW -
Data type: USR02-BNAMEOptional: No
Call by Reference: No ( called with pass by value option)
E_APPLSERVER - Name of Target Host
Data type: RFCDISPLAY-RFCHOSTOptional: No
Call by Reference: No ( called with pass by value option)
E_SYSTEMID -
Data type: SY-SYSIDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MISSING_ENTRY_IN_RSADMIN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSAR_GET_SOURCESYSTEM_PARMS 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_logsys | TYPE RSA_LOGSYS, " | |||
| lv_i_srctype | TYPE RSSRCTYPE, " | |||
| lv_missing_entry_in_rsadmin | TYPE RSSRCTYPE, " | |||
| lv_e_systemno | TYPE RSBASIDOC-TSPREFIX, " | |||
| lv_e_manuell | TYPE RS_BOOL, " | |||
| lv_e_error | TYPE RS_BOOL, " | |||
| lv_e_restore | TYPE RS_BOOL, " | |||
| lv_e_destination | TYPE RFCDEST, " | |||
| lv_e_dialog_dest | TYPE RFCDEST, " | |||
| lv_e_src3dtyp | TYPE RSSRC3DTYP, " | |||
| lv_e_src3drel | TYPE RSSRC3DREL, " | |||
| lv_e_udc | TYPE RSSDK_NAME, " | |||
| lv_e_virtorig | TYPE RSSLOGSYS, " | |||
| lv_e_stext | TYPE TBDLST-STEXT, " | |||
| lv_i_only_password | TYPE RS_BOOL, " | |||
| lv_e_srctype | TYPE RSA_SRCTYPE, " | |||
| lv_i_user_name | TYPE USR02-BNAME, " | |||
| lv_e_password | TYPE XU400-NEWCODE, " | |||
| lv_e_password_biw | TYPE XU400-NEWCODE, " | |||
| lv_e_user_name | TYPE USR02-BNAME, " | |||
| lv_e_user_biw | TYPE USR02-BNAME, " | |||
| lv_e_applserver | TYPE RFCDISPLAY-RFCHOST, " | |||
| lv_e_systemid | TYPE SY-SYSID. " |
|   CALL FUNCTION 'RSAR_GET_SOURCESYSTEM_PARMS' "Popup for parameter input for the source system connection |
| EXPORTING | ||
| I_SRCTYPE | = lv_i_srctype | |
| I_ONLY_PASSWORD | = lv_i_only_password | |
| I_USER_NAME | = lv_i_user_name | |
| IMPORTING | ||
| E_LOGSYS | = lv_e_logsys | |
| E_SYSTEMNO | = lv_e_systemno | |
| E_MANUELL | = lv_e_manuell | |
| E_ERROR | = lv_e_error | |
| E_RESTORE | = lv_e_restore | |
| E_DESTINATION | = lv_e_destination | |
| E_DIALOG_DEST | = lv_e_dialog_dest | |
| E_SRC3DTYP | = lv_e_src3dtyp | |
| E_SRC3DREL | = lv_e_src3drel | |
| E_UDC | = lv_e_udc | |
| E_VIRTORIG | = lv_e_virtorig | |
| E_STEXT | = lv_e_stext | |
| E_SRCTYPE | = lv_e_srctype | |
| E_PASSWORD | = lv_e_password | |
| E_PASSWORD_BIW | = lv_e_password_biw | |
| E_USER_NAME | = lv_e_user_name | |
| E_USER_BIW | = lv_e_user_biw | |
| E_APPLSERVER | = lv_e_applserver | |
| E_SYSTEMID | = lv_e_systemid | |
| EXCEPTIONS | ||
| MISSING_ENTRY_IN_RSADMIN = 1 | ||
| . " RSAR_GET_SOURCESYSTEM_PARMS | ||
ABAP code using 7.40 inline data declarations to call FM RSAR_GET_SOURCESYSTEM_PARMS
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 TSPREFIX FROM RSBASIDOC INTO @DATA(ld_e_systemno). | ||||
| "SELECT single STEXT FROM TBDLST INTO @DATA(ld_e_stext). | ||||
| "SELECT single BNAME FROM USR02 INTO @DATA(ld_i_user_name). | ||||
| "SELECT single NEWCODE FROM XU400 INTO @DATA(ld_e_password). | ||||
| "SELECT single NEWCODE FROM XU400 INTO @DATA(ld_e_password_biw). | ||||
| "SELECT single BNAME FROM USR02 INTO @DATA(ld_e_user_name). | ||||
| "SELECT single BNAME FROM USR02 INTO @DATA(ld_e_user_biw). | ||||
| "SELECT single RFCHOST FROM RFCDISPLAY INTO @DATA(ld_e_applserver). | ||||
| "SELECT single SYSID FROM SY INTO @DATA(ld_e_systemid). | ||||
Search for further information about these or an SAP related objects