/AWS1/IF_FRM=>GETHOOKRESULT()¶
About GetHookResult¶
Retrieves detailed information and remediation guidance for a Hook invocation result.
Method Signature¶
METHODS /AWS1/IF_FRM~GETHOOKRESULT
IMPORTING
!IV_HOOKRESULTID TYPE /AWS1/FRMHOOKINVOCATIONID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_frmgethookrsltoutput
RAISING
/AWS1/CX_FRMHOOKRSLTNOTFOUNDEX
/AWS1/CX_FRMCLIENTEXC
/AWS1/CX_FRMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_hookresultid TYPE /AWS1/FRMHOOKINVOCATIONID /AWS1/FRMHOOKINVOCATIONID¶
The unique identifier (ID) of the Hook invocation result that you want details about. You can get the ID from the ListHookResults operation.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_frmgethookrsltoutput /AWS1/CL_FRMGETHOOKRSLTOUTPUT¶
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->gethookresult( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_hookinvocationid = lo_result->get_hookresultid( ).
lv_hookinvocationpoint = lo_result->get_invocationpoint( ).
lv_hookfailuremode = lo_result->get_failuremode( ).
lv_hooktypename = lo_result->get_typename( ).
lv_hooktypename = lo_result->get_originaltypename( ).
lv_hooktypeversionid = lo_result->get_typeversionid( ).
lv_hooktypeconfigurationve = lo_result->get_typeconfversionid( ).
lv_hooktypearn = lo_result->get_typearn( ).
lv_hookstatus = lo_result->get_status( ).
lv_hookstatusreason = lo_result->get_hookstatusreason( ).
lv_timestamp = lo_result->get_invokedat( ).
lo_hooktarget = lo_result->get_target( ).
IF lo_hooktarget IS NOT INITIAL.
lv_hooktargettype = lo_hooktarget->get_targettype( ).
lv_hooktargettypename = lo_hooktarget->get_targettypename( ).
lv_hooktargetid = lo_hooktarget->get_targetid( ).
lv_hooktargetaction = lo_hooktarget->get_action( ).
ENDIF.
LOOP AT lo_result->get_annotations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_annotationname = lo_row_1->get_annotationname( ).
lv_annotationstatus = lo_row_1->get_status( ).
lv_remediationmessagestatu = lo_row_1->get_statusmessage( ).
lv_remediationmessageremed = lo_row_1->get_remediationmessage( ).
lv_annotationremediationli = lo_row_1->get_remediationlink( ).
lv_annotationseveritylevel = lo_row_1->get_severitylevel( ).
ENDIF.
ENDLOOP.
ENDIF.