Skip to content

/AWS1/IF_WAD=>DELETEAGENTCONTEXT()

About DeleteAgentContext

Deletes a context associated with a profile.

Method Signature

METHODS /AWS1/IF_WAD~DELETEAGENTCONTEXT
  IMPORTING
    !IV_PROFILEARN TYPE /AWS1/WADAGENTPROFILEARN OPTIONAL
    !IV_ID TYPE /AWS1/WADUUID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_waddeleteagentctxrsp
  RAISING
    /AWS1/CX_WADACCESSDENIEDEX
    /AWS1/CX_WADINTERNALSERVEREX
    /AWS1/CX_WADRESOURCENOTFOUNDEX
    /AWS1/CX_WADTHROTTLINGEX
    /AWS1/CX_WADVALIDATIONEX
    /AWS1/CX_WADCLIENTEXC
    /AWS1/CX_WADSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_profilearn TYPE /AWS1/WADAGENTPROFILEARN /AWS1/WADAGENTPROFILEARN

The Amazon Resource Name (ARN) of the profile containing the context.

iv_id TYPE /AWS1/WADUUID /AWS1/WADUUID

The unique identifier of the context to delete.

RETURNING

oo_output TYPE REF TO /aws1/cl_waddeleteagentctxrsp /AWS1/CL_WADDELETEAGENTCTXRSP

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->deleteagentcontext(
  iv_id = |string|
  iv_profilearn = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.