RSAR_LOGICAL_SYSTEM_DELETE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name RSAR_LOGICAL_SYSTEM_DELETE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RSAC
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RSAR_LOGICAL_SYSTEM_DELETE' "Delete existing logical system
EXPORTING
i_logsys = " rsa_logsys Logical system (OLTP)
* i_force_delete = " rs_flag
* i_no_transport = " rs_flag
* i_no_authority = " rs_flag
EXCEPTIONS
UNKNOWN_LOGSYS = 1 " Logical System Does Not Exist
CANCELLED = 2 " Abort by user input
NOT_ALLOWED = 3 " Deletion Not Allowed
OBJECT_LOCKED = 4 " The logical system is locked
DELETE_ERROR_ON_SOURCESYSTEM = 5 " Error during deletion in source system.
REMOTE_CONNECT_FAILED = 6 "
UNAUTHORIZED = 7 "
. " RSAR_LOGICAL_SYSTEM_DELETE
The ABAP code below is a full code listing to execute function module RSAR_LOGICAL_SYSTEM_DELETE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_i_logsys) = 'Check type of data required'.
DATA(ld_i_force_delete) = 'Check type of data required'.
DATA(ld_i_no_transport) = 'Check type of data required'.
DATA(ld_i_no_authority) = 'Check type of data required'. . CALL FUNCTION 'RSAR_LOGICAL_SYSTEM_DELETE' EXPORTING i_logsys = ld_i_logsys * i_force_delete = ld_i_force_delete * i_no_transport = ld_i_no_transport * i_no_authority = ld_i_no_authority EXCEPTIONS UNKNOWN_LOGSYS = 1 CANCELLED = 2 NOT_ALLOWED = 3 OBJECT_LOCKED = 4 DELETE_ERROR_ON_SOURCESYSTEM = 5 REMOTE_CONNECT_FAILED = 6 UNAUTHORIZED = 7 . " RSAR_LOGICAL_SYSTEM_DELETE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_i_logsys | TYPE RSA_LOGSYS , |
| ld_i_force_delete | TYPE RS_FLAG , |
| ld_i_no_transport | TYPE RS_FLAG , |
| ld_i_no_authority | TYPE RS_FLAG . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RSAR_LOGICAL_SYSTEM_DELETE or its description.
RSAR_LOGICAL_SYSTEM_DELETE - Delete existing logical system RSAR_LOGICAL_SYSTEM_CREATE_NEW - Create a new source system RSAR_LOGICAL_SYSTEM_CHECK - Check source system for existence / consistency RSAR_LOGICAL_SYSTEM_ACTIVATE - Activates the source system (v.a. metadata upload) RSAR_LOGICAL_SYSTEMS_CHECK - Check all source systems RSAR_LANGU_IMPORT_SINGLE_OBJ - Loading the metadata of a single object from the OLTP via RFC