RSAR_ODS_API_DEL 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_ODS_API_DEL into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RSAODS
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RSAR_ODS_API_DEL' "
EXPORTING
i_request = " rsari_requestid Request
* i_isource = " rsa_isource InfoSource
* i_istype = " rsa_istype InfoSource type
* i_logsys = " rsa_logsys Source System
i_date = " sy-datum To determine the version date
* i_odsname = " rsa_odsname Log. ODS-Name
* i_force = RS_C_FALSE " rs_bool Boolean
* i_dont_check = RS_C_FALSE " rs_bool Don't check RNR in directory tables
* i_version = " rsaversion Version
* i_new_psa = RS_C_FALSE " rs_bool Called from new PSA?
* i_abap_unit_call = RS_C_FALSE " rs_bool Called from PSA API unit tests? (internal use !)
EXCEPTIONS
PARAMETER_FAILURE = 1 " Missing or Incorrect Parameter
NO_ODS_FOUND = 2 " No ODS found
DELETE_ERROR = 3 " Error when deleting
. " RSAR_ODS_API_DEL
The ABAP code below is a full code listing to execute function module RSAR_ODS_API_DEL 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_request) = 'Check type of data required'.
DATA(ld_i_isource) = 'Check type of data required'.
DATA(ld_i_istype) = 'Check type of data required'.
DATA(ld_i_logsys) = 'Check type of data required'.
DATA(ld_i_date) = '20210129'.
DATA(ld_i_odsname) = '20210129'.
DATA(ld_i_force) = '20210129'.
DATA(ld_i_dont_check) = '20210129'.
DATA(ld_i_version) = '20210129'.
DATA(ld_i_new_psa) = '20210129'.
DATA(ld_i_abap_unit_call) = '20210129'. . CALL FUNCTION 'RSAR_ODS_API_DEL' EXPORTING i_request = ld_i_request * i_isource = ld_i_isource * i_istype = ld_i_istype * i_logsys = ld_i_logsys i_date = ld_i_date * i_odsname = ld_i_odsname * i_force = ld_i_force * i_dont_check = ld_i_dont_check * i_version = ld_i_version * i_new_psa = ld_i_new_psa * i_abap_unit_call = ld_i_abap_unit_call EXCEPTIONS PARAMETER_FAILURE = 1 NO_ODS_FOUND = 2 DELETE_ERROR = 3 . " RSAR_ODS_API_DEL
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 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_request | TYPE RSARI_REQUESTID , |
| ld_i_isource | TYPE RSA_ISOURCE , |
| ld_i_istype | TYPE RSA_ISTYPE , |
| ld_i_logsys | TYPE RSA_LOGSYS , |
| ld_i_date | TYPE SY-DATUM , |
| ld_i_odsname | TYPE RSA_ODSNAME , |
| ld_i_force | TYPE RS_BOOL , |
| ld_i_dont_check | TYPE RS_BOOL , |
| ld_i_version | TYPE RSAVERSION , |
| ld_i_new_psa | TYPE RS_BOOL , |
| ld_i_abap_unit_call | 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_ODS_API_DEL or its description.
RSAR_ODS_API_DEL - RSAR_OBJECT_TEXTS_NEUHAUS - Text callback for Neuhaus RSAR_NAME_GET - Creates a new name for the specified object type RSAR_NAME_DETERMINE - RSAR_NAMESPACE_CHECK - Checks the namespace for Info Sources RSAR_META_DATA_ISTD_MAINTAIN - Handles changes to the metadata (information source for appl. data)