Skip to content

/AWS1/IF_TCE=>UPDATEREGISTRYRECORDSTATUS()

About UpdateRegistryRecordStatus

Updates the status of a registry record as part of the registry's curation workflow, for example to approve or reject a record that is pending approval, or to deprecate an approved record so that it is no longer discoverable

Method Signature

METHODS /AWS1/IF_TCE~UPDATEREGISTRYRECORDSTATUS
  IMPORTING
    !IV_REGISTRYID TYPE /AWS1/TCEREGISTRYIDENTIFIER OPTIONAL
    !IV_RECORDID TYPE /AWS1/TCERECORDIDENTIFIER OPTIONAL
    !IV_STATUS TYPE /AWS1/TCEREGISTRYRECORDSTATUS OPTIONAL
    !IV_STATUSREASON TYPE /AWS1/TCESTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tceupdregrecstatrsp
  RAISING
    /AWS1/CX_TCEACCESSDENIEDEX
    /AWS1/CX_TCECONFLICTEXCEPTION
    /AWS1/CX_TCEINTERNALSERVEREX
    /AWS1/CX_TCERESOURCENOTFOUNDEX
    /AWS1/CX_TCETHROTTLINGEX
    /AWS1/CX_TCEVLDTNEXCEPTION
    /AWS1/CX_TCECLIENTEXC
    /AWS1/CX_TCESERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_registryid TYPE /AWS1/TCEREGISTRYIDENTIFIER /AWS1/TCEREGISTRYIDENTIFIER

The identifier of the registry containing the record (ARN or ID)

iv_recordid TYPE /AWS1/TCERECORDIDENTIFIER /AWS1/TCERECORDIDENTIFIER

The identifier of the registry record to update the status of (ARN or ID)

iv_status TYPE /AWS1/TCEREGISTRYRECORDSTATUS /AWS1/TCEREGISTRYRECORDSTATUS

The target status for the registry record

iv_statusreason TYPE /AWS1/TCESTRING /AWS1/TCESTRING

The reason for the status change, for example why the record was approved, rejected, or deprecated

RETURNING

oo_output TYPE REF TO /aws1/cl_tceupdregrecstatrsp /AWS1/CL_TCEUPDREGRECSTATRSP

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->updateregistryrecordstatus(
  iv_recordid = |string|
  iv_registryid = |string|
  iv_status = |string|
  iv_statusreason = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_registryarn = lo_result->get_registryarn( ).
  lv_registryrecordarn = lo_result->get_recordarn( ).
  lv_registryrecordid = lo_result->get_recordid( ).
  lv_registryrecordstatus = lo_result->get_status( ).
  lv_string = lo_result->get_statusreason( ).
  lv_datetimestamp = lo_result->get_updatedat( ).
ENDIF.