/AWS1/IF_CWE=>UPDATEARCHIVE()¶
About UpdateArchive¶
Updates the specified archive.
Method Signature¶
METHODS /AWS1/IF_CWE~UPDATEARCHIVE
  IMPORTING
    !IV_ARCHIVENAME TYPE /AWS1/CWEARCHIVENAME OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/CWEARCHIVEDESCRIPTION OPTIONAL
    !IV_EVENTPATTERN TYPE /AWS1/CWEEVENTPATTERN OPTIONAL
    !IV_RETENTIONDAYS TYPE /AWS1/CWERETENTIONDAYS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cweupdatearchiversp
  RAISING
    /AWS1/CX_CWECONCURRENTMODEX
    /AWS1/CX_CWEINTERNALEXCEPTION
    /AWS1/CX_CWEINVEVENTPATTERNEX
    /AWS1/CX_CWELIMITEXCEEDEDEX
    /AWS1/CX_CWERESOURCENOTFOUNDEX
    /AWS1/CX_CWECLIENTEXC
    /AWS1/CX_CWESERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_archivename TYPE /AWS1/CWEARCHIVENAME /AWS1/CWEARCHIVENAME¶
The name of the archive to update.
Optional arguments:¶
iv_description TYPE /AWS1/CWEARCHIVEDESCRIPTION /AWS1/CWEARCHIVEDESCRIPTION¶
The description for the archive.
iv_eventpattern TYPE /AWS1/CWEEVENTPATTERN /AWS1/CWEEVENTPATTERN¶
The event pattern to use to filter events sent to the archive.
iv_retentiondays TYPE /AWS1/CWERETENTIONDAYS /AWS1/CWERETENTIONDAYS¶
The number of days to retain events in the archive.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cweupdatearchiversp /AWS1/CL_CWEUPDATEARCHIVERSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC 
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->updatearchive(
  iv_archivename = |string|
  iv_description = |string|
  iv_eventpattern = |string|
  iv_retentiondays = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_archivearn = lo_result->get_archivearn( ).
  lv_archivestate = lo_result->get_state( ).
  lv_archivestatereason = lo_result->get_statereason( ).
  lv_timestamp = lo_result->get_creationtime( ).
ENDIF.