/AWS1/IF_GUS=>GETSCAN()¶
About GetScan¶
Returns details about a scan, including whether or not a scan has completed.
Method Signature¶
METHODS /AWS1/IF_GUS~GETSCAN
IMPORTING
!IV_SCANNAME TYPE /AWS1/GUSSCANNAME OPTIONAL
!IV_RUNID TYPE /AWS1/GUSUUID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gusgetscanresponse
RAISING
/AWS1/CX_GUSACCESSDENIEDEX
/AWS1/CX_GUSINTERNALSERVEREX
/AWS1/CX_GUSRESOURCENOTFOUNDEX
/AWS1/CX_GUSTHROTTLINGEX
/AWS1/CX_GUSVALIDATIONEX
/AWS1/CX_GUSCLIENTEXC
/AWS1/CX_GUSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_scanname TYPE /AWS1/GUSSCANNAME /AWS1/GUSSCANNAME¶
The name of the scan you want to view details about.
Optional arguments:¶
iv_runid TYPE /AWS1/GUSUUID /AWS1/GUSUUID¶
UUID that identifies the individual scan run you want to view details about. You retrieve this when you call the
CreateScanoperation. Defaults to the latest scan run if missing.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gusgetscanresponse /AWS1/CL_GUSGETSCANRESPONSE¶
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->getscan(
iv_runid = |string|
iv_scanname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_scanname = lo_result->get_scanname( ).
lv_uuid = lo_result->get_runid( ).
lv_scanstate = lo_result->get_scanstate( ).
lv_timestamp = lo_result->get_createdat( ).
lv_analysistype = lo_result->get_analysistype( ).
lv_timestamp = lo_result->get_updatedat( ).
lv_long = lo_result->get_numberofrevisions( ).
lv_scannamearn = lo_result->get_scannamearn( ).
lv_errormessage = lo_result->get_errormessage( ).
ENDIF.