Skip to content

/AWS1/IF_REV=>GETFAILUREMODEFINDING()

About GetFailureModeFinding

Retrieves a finding by findingId.

Method Signature

METHODS /AWS1/IF_REV~GETFAILUREMODEFINDING
  IMPORTING
    !IV_FINDINGID TYPE /AWS1/REVUUID OPTIONAL
    !IV_SERVICEARN TYPE /AWS1/REVARN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_revgetfailmodefndgrsp
  RAISING
    /AWS1/CX_REVACCESSDENIEDEX
    /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 unique identifier of the finding to retrieve.

iv_servicearn TYPE /AWS1/REVARN /AWS1/REVARN

ARN identifier.

RETURNING

oo_output TYPE REF TO /aws1/cl_revgetfailmodefndgrsp /AWS1/CL_REVGETFAILMODEFNDGRSP

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->getfailuremodefinding(
  iv_findingid = |string|
  iv_servicearn = |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.