Skip to content

/AWS1/IF_CWS=>DELETEINSTRCONFIGURATION()

About DeleteInstrumentationConfiguration

Deletes the specified instrumentation configuration. SDKs remove the instrumentation during their next sync after the configuration is deleted or expires.

Method Signature

METHODS /AWS1/IF_CWS~DELETEINSTRCONFIGURATION
  IMPORTING
    !IV_INSTRUMENTATIONTYPE TYPE /AWS1/CWSINSTRUMENTATIONTYPE OPTIONAL
    !IV_SERVICE TYPE /AWS1/CWSSTRING OPTIONAL
    !IV_ENVIRONMENT TYPE /AWS1/CWSSTRING OPTIONAL
    !IV_SIGNALTYPE TYPE /AWS1/CWSDYNINSTRSIGNALTYPE OPTIONAL
    !IO_LOCATIONIDENTIFIER TYPE REF TO /AWS1/CL_CWSLOCATIONIDENTIFIER OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwsdeleteinstrconfrsp
  RAISING
    /AWS1/CX_CWSRESOURCENOTFOUNDEX
    /AWS1/CX_CWSTHROTTLINGEX
    /AWS1/CX_CWSVALIDATIONEX
    /AWS1/CX_CWSCLIENTEXC
    /AWS1/CX_CWSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_instrumentationtype TYPE /AWS1/CWSINSTRUMENTATIONTYPE /AWS1/CWSINSTRUMENTATIONTYPE

Type of instrumentation configuration (BREAKPOINT or PROBE). Required to identify the configuration to delete.

iv_service TYPE /AWS1/CWSSTRING /AWS1/CWSSTRING

Service name for the instrumentation configuration.

iv_environment TYPE /AWS1/CWSSTRING /AWS1/CWSSTRING

Environment name for the instrumentation configuration.

iv_signaltype TYPE /AWS1/CWSDYNINSTRSIGNALTYPE /AWS1/CWSDYNINSTRSIGNALTYPE

Signal type for the instrumentation configuration.

io_locationidentifier TYPE REF TO /AWS1/CL_CWSLOCATIONIDENTIFIER /AWS1/CL_CWSLOCATIONIDENTIFIER

Location identifier - either full code location or a pre-computed hash.

RETURNING

oo_output TYPE REF TO /aws1/cl_cwsdeleteinstrconfrsp /AWS1/CL_CWSDELETEINSTRCONFRSP

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->deleteinstrconfiguration(
  io_locationidentifier = new /aws1/cl_cwslocationidentifier(
    io_codelocation = new /aws1/cl_cwscodelocation(
      iv_classname = |string|
      iv_codeunit = |string|
      iv_filepath = |string|
      iv_language = |string|
      iv_linenumber = 123
      iv_methodname = |string|
    )
    iv_locationhash = |string|
  )
  iv_environment = |string|
  iv_instrumentationtype = |string|
  iv_service = |string|
  iv_signaltype = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_dynamicinstrumentationd = lo_result->get_deletionstatus( ).
ENDIF.