Skip to content

/AWS1/IF_REV=>UPDATEFAILUREMODEFINDING()

About UpdateFailureModeFinding

Updates an existing finding.

Method Signature

METHODS /AWS1/IF_REV~UPDATEFAILUREMODEFINDING
  IMPORTING
    !IV_FINDINGID TYPE /AWS1/REVUUID OPTIONAL
    !IV_STATUS TYPE /AWS1/REVFINDINGSTATUS OPTIONAL
    !IV_SERVICEARN TYPE /AWS1/REVARN OPTIONAL
    !IV_COMMENT TYPE /AWS1/REVSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_revupdfailmodefndgrsp
  RAISING
    /AWS1/CX_REVACCESSDENIEDEX
    /AWS1/CX_REVCONFLICTEXCEPTION
    /AWS1/CX_REVINTERNALSERVEREX
    /AWS1/CX_REVRESOURCENOTFOUNDEX
    /AWS1/CX_REVVLDTNEXCEPTION
    /AWS1/CX_REVCLIENTEXC
    /AWS1/CX_REVSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_findingid TYPE /AWS1/REVUUID /AWS1/REVUUID

The identifier of the finding to update.

iv_status TYPE /AWS1/REVFINDINGSTATUS /AWS1/REVFINDINGSTATUS

The new status for the finding.

iv_servicearn TYPE /AWS1/REVARN /AWS1/REVARN

ARN identifier.

Optional arguments:

iv_comment TYPE /AWS1/REVSTRING /AWS1/REVSTRING

A comment about the finding update.

RETURNING

oo_output TYPE REF TO /aws1/cl_revupdfailmodefndgrsp /AWS1/CL_REVUPDFAILMODEFNDGRSP

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->updatefailuremodefinding(
  iv_comment = |string|
  iv_findingid = |string|
  iv_servicearn = |string|
  iv_status = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_finding = lo_result->get_finding( ).
  IF lo_finding IS NOT INITIAL.
    lv_uuid = lo_finding->get_findingid( ).
    lv_string = lo_finding->get_name( ).
    lv_entitydescription = lo_finding->get_description( ).
    lv_failurecategory = lo_finding->get_failurecategory( ).
    lv_findingstatus = lo_finding->get_status( ).
    lv_string = lo_finding->get_reasoning( ).
    lv_string = lo_finding->get_comment( ).
    lv_findingseverity = lo_finding->get_severity( ).
    LOOP AT lo_finding->get_servicefunctions( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_entityid = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_policycomponent = lo_finding->get_policycomponent( ).
    LOOP AT lo_finding->get_infrandcoderecs( ) into lo_row_2.
      lo_row_3 = lo_row_2.
      IF lo_row_3 IS NOT INITIAL.
        LOOP AT lo_row_3->get_suggestedchanges( ) into lo_row_4.
          lo_row_5 = lo_row_4.
          IF lo_row_5 IS NOT INITIAL.
            lv_entitydescription = lo_row_5->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDLOOP.
    LOOP AT lo_finding->get_observabilityrecs( ) into lo_row_6.
      lo_row_7 = lo_row_6.
      IF lo_row_7 IS NOT INITIAL.
        LOOP AT lo_row_7->get_suggestedchanges( ) into lo_row_4.
          lo_row_5 = lo_row_4.
          IF lo_row_5 IS NOT INITIAL.
            lv_entitydescription = lo_row_5->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDLOOP.
    LOOP AT lo_finding->get_testingrecommendations( ) into lo_row_8.
      lo_row_9 = lo_row_8.
      IF lo_row_9 IS NOT INITIAL.
        LOOP AT lo_row_9->get_suggestedchanges( ) into lo_row_4.
          lo_row_5 = lo_row_4.
          IF lo_row_5 IS NOT INITIAL.
            lv_entitydescription = lo_row_5->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDLOOP.
    lv_timestamp = lo_finding->get_updatedat( ).
  ENDIF.
ENDIF.