/AWS1/IF_ACO=>PUTREPORTDEFINITION()¶
About PutReportDefinition¶
Creates the report definition for a report in Application Cost Profiler.
Method Signature¶
METHODS /AWS1/IF_ACO~PUTREPORTDEFINITION
IMPORTING
!IV_REPORTID TYPE /AWS1/ACOREPORTID OPTIONAL
!IV_REPORTDESCRIPTION TYPE /AWS1/ACOREPORTDESCRIPTION OPTIONAL
!IV_REPORTFREQUENCY TYPE /AWS1/ACOREPORTFREQUENCY OPTIONAL
!IV_FORMAT TYPE /AWS1/ACOFORMAT OPTIONAL
!IO_DESTINATIONS3LOCATION TYPE REF TO /AWS1/CL_ACOS3LOCATION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_acoputreportdefnrslt
RAISING
/AWS1/CX_ACOACCESSDENIEDEX
/AWS1/CX_ACOINTERNALSERVEREX
/AWS1/CX_ACOSERVICEQUOTAEXCDEX
/AWS1/CX_ACOTHROTTLINGEX
/AWS1/CX_ACOVALIDATIONEX
/AWS1/CX_ACOCLIENTEXC
/AWS1/CX_ACOSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_reportid TYPE /AWS1/ACOREPORTID /AWS1/ACOREPORTID¶
Required. ID of the report. You can choose any valid string matching the pattern for the ID.
iv_reportdescription TYPE /AWS1/ACOREPORTDESCRIPTION /AWS1/ACOREPORTDESCRIPTION¶
Required. Description of the report.
iv_reportfrequency TYPE /AWS1/ACOREPORTFREQUENCY /AWS1/ACOREPORTFREQUENCY¶
Required. The cadence to generate the report.
iv_format TYPE /AWS1/ACOFORMAT /AWS1/ACOFORMAT¶
Required. The format to use for the generated report.
io_destinations3location TYPE REF TO /AWS1/CL_ACOS3LOCATION /AWS1/CL_ACOS3LOCATION¶
Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost Profiler uploads the report.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_acoputreportdefnrslt /AWS1/CL_ACOPUTREPORTDEFNRSLT¶
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->putreportdefinition(
io_destinations3location = new /aws1/cl_acos3location(
iv_bucket = |string|
iv_prefix = |string|
)
iv_format = |string|
iv_reportdescription = |string|
iv_reportfrequency = |string|
iv_reportid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_reportid = lo_result->get_reportid( ).
ENDIF.