RSAR_COMSTRUCTURE_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_COMSTRUCTURE_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_COMSTRUCTURE_DELETE' "Deleting a communication structure
EXPORTING
i_isource = " rsa_isource InfoSource
i_istype = " rs_char1 Type of InfoSource
* i_without_popup = " rs_bool Delete without prompt
* i_without_log = " rs_bool Don't open log
EXCEPTIONS
UNKNOWN_ISOURCE = 1 " Communication structure does not exist
CANCELLED = 2 " Cancellation by user
UNKNOWN_OBJECT_TYPE = 3 " Invalid type of InfoSource
NO_COMSTRUCTURE = 4 " No communication structure for this InfoSource
COMSTRUCTURE_USED = 5 " Communication structure is still used
NOT_ALLOWED = 6 " Deletion Not Allowed
OBJECT_LOCKED = 7 "
. " RSAR_COMSTRUCTURE_DELETE
The ABAP code below is a full code listing to execute function module RSAR_COMSTRUCTURE_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_isource) = 'Check type of data required'.
DATA(ld_i_istype) = 'Check type of data required'.
DATA(ld_i_without_popup) = 'Check type of data required'.
DATA(ld_i_without_log) = 'Check type of data required'. . CALL FUNCTION 'RSAR_COMSTRUCTURE_DELETE' EXPORTING i_isource = ld_i_isource i_istype = ld_i_istype * i_without_popup = ld_i_without_popup * i_without_log = ld_i_without_log EXCEPTIONS UNKNOWN_ISOURCE = 1 CANCELLED = 2 UNKNOWN_OBJECT_TYPE = 3 NO_COMSTRUCTURE = 4 COMSTRUCTURE_USED = 5 NOT_ALLOWED = 6 OBJECT_LOCKED = 7 . " RSAR_COMSTRUCTURE_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_isource | TYPE RSA_ISOURCE , |
| ld_i_istype | TYPE RS_CHAR1 , |
| ld_i_without_popup | TYPE RS_BOOL , |
| ld_i_without_log | TYPE RS_BOOL . |
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_COMSTRUCTURE_DELETE or its description.
RSAR_COMSTRUCTURE_DELETE - Deleting a communication structure RSAR_COMSTRUCTURE_DEACTIVATE - Disabling a communication structure RSAR_COMSTRUCTURE_ACTIVATE - BIW: Customizing communication structure for dialog function module RSAR_CODS_INFOSOURCE_ACTIVATE - Mapping, comm. str., transf. str. create & activate (Infosource exists RSAR_CLEANUP_AFTER_IMPORT - Removes leftover objects after deletion in CTS (IS, KS, TS) RSAR_CHECK_REQUEST - Checking the request in PSA technical table