/AWS1/CL_AUM=>CREATEASSESSMENTREPORT()
¶
About CreateAssessmentReport¶
Creates an assessment report for the specified assessment.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_name
TYPE /AWS1/AUMASSESSMENTREPORTNAME
/AWS1/AUMASSESSMENTREPORTNAME
¶
The name of the new assessment report.
iv_assessmentid
TYPE /AWS1/AUMUUID
/AWS1/AUMUUID
¶
The identifier for the assessment.
Optional arguments:¶
iv_description
TYPE /AWS1/AUMASSESSMENTREPORTDESC
/AWS1/AUMASSESSMENTREPORTDESC
¶
The description of the assessment report.
iv_querystatement
TYPE /AWS1/AUMQUERYSTATEMENT
/AWS1/AUMQUERYSTATEMENT
¶
A SQL statement that represents an evidence finder query.
Provide this parameter when you want to generate an assessment report from the results of an evidence finder search query. When you use this parameter, Audit Manager generates a one-time report using only the evidence from the query output. This report does not include any assessment evidence that was manually added to a report using the console, or associated with a report using the API.
To use this parameter, the enablementStatus of evidence finder must be
ENABLED
.For examples and help resolving
queryStatement
validation exceptions, see Troubleshooting evidence finder issues in the Audit Manager User Guide.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_aumcreassessmentrpt01
/AWS1/CL_AUMCREASSESSMENTRPT01
¶
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->/aws1/if_aum~createassessmentreport(
iv_assessmentid = |string|
iv_description = |string|
iv_name = |string|
iv_querystatement = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_assessmentreport = lo_result->get_assessmentreport( ).
IF lo_assessmentreport IS NOT INITIAL.
lv_uuid = lo_assessmentreport->get_id( ).
lv_assessmentreportname = lo_assessmentreport->get_name( ).
lv_assessmentreportdescrip = lo_assessmentreport->get_description( ).
lv_accountid = lo_assessmentreport->get_awsaccountid( ).
lv_uuid = lo_assessmentreport->get_assessmentid( ).
lv_assessmentname = lo_assessmentreport->get_assessmentname( ).
lv_username = lo_assessmentreport->get_author( ).
lv_assessmentreportstatus = lo_assessmentreport->get_status( ).
lv_timestamp = lo_assessmentreport->get_creationtime( ).
ENDIF.
ENDIF.