SAP RSAR_LOGICAL_SYSTEM_CREATE_NEW Function Module for Create a new source system









RSAR_LOGICAL_SYSTEM_CREATE_NEW is a standard rsar logical system create new SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create a new source system 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 logical system create new FM, simply by entering the name RSAR_LOGICAL_SYSTEM_CREATE_NEW 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_LOGICAL_SYSTEM_CREATE_NEW 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_LOGICAL_SYSTEM_CREATE_NEW'"Create a new source system
EXPORTING
I_SRCTYPE = "Transfer mode of metadata
* I_PASSWORD_BIW = "
* I_MANUELL = "
* I_NO_AUTHORITY = "Boolean
* I_NO_TRANSPORT = "Boolean
* I_DESTINATION = "Logical Destination (Specified when Function Is Called)
* I_DIALOG_DEST = "Logical Destination (Specified When Function Is Called)
* I_METHOD = "Identification of a registered RFC server program
* I_PROGRAM = "Program name (complete path)
* I_GWHOST = "Gateway host name
* I_GWSERVICE = "Gateway Service
* I_RESTORE = "
* I_SRC3DTYP = "Type of BAPI Source System
* I_SRC3DREL = "Release of a 3rd Party Source System
* I_UDC = "JNDI Name of the BI SDK Source System
* I_OLTP_PART_DONE = "RSAP_SOURCESYSTEM_BIW_CONNECT already done
* I_DO_UPLOAD = "' ' = Popup, 'Y' = Yes, 'N' = No
* I_VIRTORIG = "Original of SourceSystem dummy
* I_BOBJDS_REPOSITORY = "DataServices Repository
* I_BOBJDS_JOBSERVER = "Server
* I_BOBJDS_SYSTEMCONFIG = "System Configuration of Data Services
* I_BOBJDS_DATASTORE = "Data services DataStore
* I_APPLSERVER = "Name of target host
* I_CTC_RESTORE = "CTC 'Restore'
* I_SYSTEMID = "
* I_SYSTEMNO = "
* I_CLIENT = "Client ID of Current User
* I_USER_OLTP = "
* I_PASSWORD_OLTP = "
* I_USER_BIW = "

CHANGING
* C_LANGU = SY-LANGU "Language
* C_LOGSYS = "SourceSystem Name
* C_STEXT = "Source system description

EXCEPTIONS
LOGSYS_EXISTS = 1 INVALID_RFCDES = 10 RFCDES_EXISTS = 11 INVALID_SYSTEMTYPE = 12 NO_RFC_DESTINATION_SOURCE = 13 NO_ENTRY_IN_T000_SOURCE = 14 NO_USER_DEFINED_SOURCE = 15 NO_TSPREFIX_DEFINED_SOURCE = 16 UNKNOWN_LOGICAL_SYSTEM = 17 NO_FREE_NAMESPACE = 18 CANCELLED = 2 IDOC_TEMPLATE_NOT_FOUND = 3 INVALID_IDOC_TYPE_NAME = 4 UNAUTHORIZED = 5 INTERNAL_ERROR = 6 OBJECT_LOCKED = 7 REMOTE_CONNECT_FAILED = 8 INVALID_TO_SAANORM = 9
.



IMPORTING Parameters details for RSAR_LOGICAL_SYSTEM_CREATE_NEW

I_SRCTYPE - Transfer mode of metadata

Data type: RSA_SRCTYPE
Optional: No
Call by Reference: No ( called with pass by value option)

I_PASSWORD_BIW -

Data type: XU400-NEWCODE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MANUELL -

Data type: RS_BOOL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_AUTHORITY - Boolean

Data type: RS_BOOL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_TRANSPORT - Boolean

Data type: RS_BOOL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DESTINATION - Logical Destination (Specified when Function Is Called)

Data type: RFCDEST
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DIALOG_DEST - Logical Destination (Specified When Function Is Called)

Data type: RFCDEST
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_METHOD - Identification of a registered RFC server program

Data type: RFCREGID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PROGRAM - Program name (complete path)

Data type: RFCEXEC
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GWHOST - Gateway host name

Data type: RFCGWHOST
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GWSERVICE - Gateway Service

Data type: RFCGWSERV
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RESTORE -

Data type: RS_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SRC3DTYP - Type of BAPI Source System

Data type: RSSRC3DTYP
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SRC3DREL - Release of a 3rd Party Source System

Data type: RSSRC3DREL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UDC - JNDI Name of the BI SDK Source System

Data type: RSSDK_NAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OLTP_PART_DONE - RSAP_SOURCESYSTEM_BIW_CONNECT already done

Data type: RS_BOOL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DO_UPLOAD - ' ' = Popup, 'Y' = Yes, 'N' = No

Data type: CHAR1
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VIRTORIG - Original of SourceSystem dummy

Data type: RSSLOGSYS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BOBJDS_REPOSITORY - DataServices Repository

Data type: RSBOBJDS_REPOSITORY
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BOBJDS_JOBSERVER - Server

Data type: RSBOBJDS_SERVER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BOBJDS_SYSTEMCONFIG - System Configuration of Data Services

Data type: RSBOBJDS_SYSTEMCONFIG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BOBJDS_DATASTORE - Data services DataStore

Data type: RSBOBJDS_DATASTORE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_APPLSERVER - Name of target host

Data type: RFCDISPLAY-RFCHOST
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CTC_RESTORE - CTC 'Restore'

Data type: RS_BOOL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SYSTEMID -

Data type: SY-SYSID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SYSTEMNO -

Data type: RS_CHAR2
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CLIENT - Client ID of Current User

Data type: SYMANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_USER_OLTP -

Data type: USR02-BNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PASSWORD_OLTP -

Data type: XU400-NEWCODE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_USER_BIW -

Data type: USR02-BNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for RSAR_LOGICAL_SYSTEM_CREATE_NEW

C_LANGU - Language

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

C_LOGSYS - SourceSystem Name

Data type: RSA_LOGSYS
Optional: Yes
Call by Reference: No ( called with pass by value option)

C_STEXT - Source system description

Data type: TBDLST-STEXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

LOGSYS_EXISTS - Logical system already exists

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_RFCDES -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RFCDES_EXISTS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_SYSTEMTYPE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_RFC_DESTINATION_SOURCE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_ENTRY_IN_T000_SOURCE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_USER_DEFINED_SOURCE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_TSPREFIX_DEFINED_SOURCE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

UNKNOWN_LOGICAL_SYSTEM -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_FREE_NAMESPACE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CANCELLED - Canceled by user input

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

IDOC_TEMPLATE_NOT_FOUND - IDOC template 'RSSEND' was not found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_IDOC_TYPE_NAME - The given IDOC type name is invalid

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

UNAUTHORIZED - No createion of IDOC parameter possible

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNAL_ERROR - An internal error has occurred

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECT_LOCKED - The logical system is locked

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

REMOTE_CONNECT_FAILED - No connection to the logical system possible

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_TO_SAANORM - Name of the source system is prohibited by SAANorm

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RSAR_LOGICAL_SYSTEM_CREATE_NEW 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_c_langu  TYPE SY-LANGU, "   SY-LANGU
lv_i_srctype  TYPE RSA_SRCTYPE, "   
lv_logsys_exists  TYPE RSA_SRCTYPE, "   
lv_invalid_rfcdes  TYPE RSA_SRCTYPE, "   
lv_i_password_biw  TYPE XU400-NEWCODE, "   
lv_i_manuell  TYPE RS_BOOL, "   
lv_rfcdes_exists  TYPE RS_BOOL, "   
lv_i_no_authority  TYPE RS_BOOL, "   
lv_invalid_systemtype  TYPE RS_BOOL, "   
lv_i_no_transport  TYPE RS_BOOL, "   
lv_no_rfc_destination_source  TYPE RS_BOOL, "   
lv_i_destination  TYPE RFCDEST, "   
lv_no_entry_in_t000_source  TYPE RFCDEST, "   
lv_i_dialog_dest  TYPE RFCDEST, "   
lv_no_user_defined_source  TYPE RFCDEST, "   
lv_i_method  TYPE RFCREGID, "   
lv_no_tsprefix_defined_source  TYPE RFCREGID, "   
lv_i_program  TYPE RFCEXEC, "   
lv_unknown_logical_system  TYPE RFCEXEC, "   
lv_i_gwhost  TYPE RFCGWHOST, "   
lv_no_free_namespace  TYPE RFCGWHOST, "   
lv_i_gwservice  TYPE RFCGWSERV, "   
lv_c_logsys  TYPE RSA_LOGSYS, "   
lv_cancelled  TYPE RSA_LOGSYS, "   
lv_i_restore  TYPE RS_FLAG, "   
lv_i_src3dtyp  TYPE RSSRC3DTYP, "   
lv_i_src3drel  TYPE RSSRC3DREL, "   
lv_i_udc  TYPE RSSDK_NAME, "   
lv_i_oltp_part_done  TYPE RS_BOOL, "   
lv_i_do_upload  TYPE CHAR1, "   
lv_i_virtorig  TYPE RSSLOGSYS, "   
lv_i_bobjds_repository  TYPE RSBOBJDS_REPOSITORY, "   
lv_i_bobjds_jobserver  TYPE RSBOBJDS_SERVER, "   
lv_i_bobjds_systemconfig  TYPE RSBOBJDS_SYSTEMCONFIG, "   
lv_i_bobjds_datastore  TYPE RSBOBJDS_DATASTORE, "   
lv_c_stext  TYPE TBDLST-STEXT, "   
lv_i_applserver  TYPE RFCDISPLAY-RFCHOST, "   
lv_idoc_template_not_found  TYPE RFCDISPLAY, "   
lv_i_ctc_restore  TYPE RS_BOOL, "   
lv_i_systemid  TYPE SY-SYSID, "   
lv_invalid_idoc_type_name  TYPE SY, "   
lv_i_systemno  TYPE RS_CHAR2, "   
lv_unauthorized  TYPE RS_CHAR2, "   
lv_i_client  TYPE SYMANDT, "   
lv_internal_error  TYPE SYMANDT, "   
lv_i_user_oltp  TYPE USR02-BNAME, "   
lv_object_locked  TYPE USR02, "   
lv_i_password_oltp  TYPE XU400-NEWCODE, "   
lv_remote_connect_failed  TYPE XU400, "   
lv_i_user_biw  TYPE USR02-BNAME, "   
lv_invalid_to_saanorm  TYPE USR02. "   

  CALL FUNCTION 'RSAR_LOGICAL_SYSTEM_CREATE_NEW'  "Create a new source system
    EXPORTING
         I_SRCTYPE = lv_i_srctype
         I_PASSWORD_BIW = lv_i_password_biw
         I_MANUELL = lv_i_manuell
         I_NO_AUTHORITY = lv_i_no_authority
         I_NO_TRANSPORT = lv_i_no_transport
         I_DESTINATION = lv_i_destination
         I_DIALOG_DEST = lv_i_dialog_dest
         I_METHOD = lv_i_method
         I_PROGRAM = lv_i_program
         I_GWHOST = lv_i_gwhost
         I_GWSERVICE = lv_i_gwservice
         I_RESTORE = lv_i_restore
         I_SRC3DTYP = lv_i_src3dtyp
         I_SRC3DREL = lv_i_src3drel
         I_UDC = lv_i_udc
         I_OLTP_PART_DONE = lv_i_oltp_part_done
         I_DO_UPLOAD = lv_i_do_upload
         I_VIRTORIG = lv_i_virtorig
         I_BOBJDS_REPOSITORY = lv_i_bobjds_repository
         I_BOBJDS_JOBSERVER = lv_i_bobjds_jobserver
         I_BOBJDS_SYSTEMCONFIG = lv_i_bobjds_systemconfig
         I_BOBJDS_DATASTORE = lv_i_bobjds_datastore
         I_APPLSERVER = lv_i_applserver
         I_CTC_RESTORE = lv_i_ctc_restore
         I_SYSTEMID = lv_i_systemid
         I_SYSTEMNO = lv_i_systemno
         I_CLIENT = lv_i_client
         I_USER_OLTP = lv_i_user_oltp
         I_PASSWORD_OLTP = lv_i_password_oltp
         I_USER_BIW = lv_i_user_biw
    CHANGING
         C_LANGU = lv_c_langu
         C_LOGSYS = lv_c_logsys
         C_STEXT = lv_c_stext
    EXCEPTIONS
        LOGSYS_EXISTS = 1
        INVALID_RFCDES = 10
        RFCDES_EXISTS = 11
        INVALID_SYSTEMTYPE = 12
        NO_RFC_DESTINATION_SOURCE = 13
        NO_ENTRY_IN_T000_SOURCE = 14
        NO_USER_DEFINED_SOURCE = 15
        NO_TSPREFIX_DEFINED_SOURCE = 16
        UNKNOWN_LOGICAL_SYSTEM = 17
        NO_FREE_NAMESPACE = 18
        CANCELLED = 2
        IDOC_TEMPLATE_NOT_FOUND = 3
        INVALID_IDOC_TYPE_NAME = 4
        UNAUTHORIZED = 5
        INTERNAL_ERROR = 6
        OBJECT_LOCKED = 7
        REMOTE_CONNECT_FAILED = 8
        INVALID_TO_SAANORM = 9
. " RSAR_LOGICAL_SYSTEM_CREATE_NEW




ABAP code using 7.40 inline data declarations to call FM RSAR_LOGICAL_SYSTEM_CREATE_NEW

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_c_langu).
DATA(ld_c_langu) = SY-LANGU.
 
 
 
 
"SELECT single NEWCODE FROM XU400 INTO @DATA(ld_i_password_biw).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single STEXT FROM TBDLST INTO @DATA(ld_c_stext).
 
"SELECT single RFCHOST FROM RFCDISPLAY INTO @DATA(ld_i_applserver).
 
 
 
"SELECT single SYSID FROM SY INTO @DATA(ld_i_systemid).
 
 
 
 
 
 
"SELECT single BNAME FROM USR02 INTO @DATA(ld_i_user_oltp).
 
 
"SELECT single NEWCODE FROM XU400 INTO @DATA(ld_i_password_oltp).
 
 
"SELECT single BNAME FROM USR02 INTO @DATA(ld_i_user_biw).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!