Skip to content

/AWS1/IF_BCD=>UPDATESCHEDULEDREPORT()

About UpdateScheduledReport

Updates an existing scheduled report's properties, including its name, description, schedule configuration, and widget settings. Only the parameters included in the request are updated; all other properties remain unchanged.

Method Signature

METHODS /AWS1/IF_BCD~UPDATESCHEDULEDREPORT
  IMPORTING
    !IV_ARN TYPE /AWS1/BCDSCHEDULEDREPORTARN OPTIONAL
    !IV_NAME TYPE /AWS1/BCDSCHEDULEDREPORTNAME OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/BCDDESCRIPTION OPTIONAL
    !IV_DASHBOARDARN TYPE /AWS1/BCDDASHBOARDARN OPTIONAL
    !IV_SCHDDREPORTEXECROLEARN TYPE /AWS1/BCDSERVICEROLEARN OPTIONAL
    !IO_SCHEDULECONFIG TYPE REF TO /AWS1/CL_BCDSCHEDULECONFIG OPTIONAL
    !IT_WIDGETIDS TYPE /AWS1/CL_BCDWIDGETIDLIST_W=>TT_WIDGETIDLIST OPTIONAL
    !IO_WIDGETDATERANGEOVERRIDE TYPE REF TO /AWS1/CL_BCDDATETIMERANGE OPTIONAL
    !IV_CLEARWIDGETIDS TYPE /AWS1/BCDBOOLEAN OPTIONAL
    !IV_CLEARWIDGETDATERANGEOVRD TYPE /AWS1/BCDBOOLEAN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bcdupdschddreportrsp
  RAISING
    /AWS1/CX_BCDACCESSDENIEDEX
    /AWS1/CX_BCDCONFLICTEXCEPTION
    /AWS1/CX_BCDINTERNALSERVEREX
    /AWS1/CX_BCDRESOURCENOTFOUNDEX
    /AWS1/CX_BCDTHROTTLINGEX
    /AWS1/CX_BCDVALIDATIONEX
    /AWS1/CX_BCDCLIENTEXC
    /AWS1/CX_BCDSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_arn TYPE /AWS1/BCDSCHEDULEDREPORTARN /AWS1/BCDSCHEDULEDREPORTARN

The ARN of the scheduled report to update.

Optional arguments:

iv_name TYPE /AWS1/BCDSCHEDULEDREPORTNAME /AWS1/BCDSCHEDULEDREPORTNAME

The new name for the scheduled report.

iv_description TYPE /AWS1/BCDDESCRIPTION /AWS1/BCDDESCRIPTION

The new description for the scheduled report.

iv_dashboardarn TYPE /AWS1/BCDDASHBOARDARN /AWS1/BCDDASHBOARDARN

The ARN of the dashboard to associate with the scheduled report.

iv_schddreportexecrolearn TYPE /AWS1/BCDSERVICEROLEARN /AWS1/BCDSERVICEROLEARN

The ARN of the IAM role that the scheduled report uses to execute. Amazon Web Services Billing and Cost Management Dashboards will assume this IAM role while executing the scheduled report.

io_scheduleconfig TYPE REF TO /AWS1/CL_BCDSCHEDULECONFIG /AWS1/CL_BCDSCHEDULECONFIG

The updated schedule configuration for the report.

it_widgetids TYPE /AWS1/CL_BCDWIDGETIDLIST_W=>TT_WIDGETIDLIST TT_WIDGETIDLIST

The list of widget identifiers to include in the scheduled report. If not specified, all widgets in the dashboard are included.

io_widgetdaterangeoverride TYPE REF TO /AWS1/CL_BCDDATETIMERANGE /AWS1/CL_BCDDATETIMERANGE

The date range override to apply to widgets in the scheduled report.

iv_clearwidgetids TYPE /AWS1/BCDBOOLEAN /AWS1/BCDBOOLEAN

Set to true to clear existing widgetIds.

iv_clearwidgetdaterangeovrd TYPE /AWS1/BCDBOOLEAN /AWS1/BCDBOOLEAN

Set to true to clear existing widgetDateRangeOverride.

RETURNING

oo_output TYPE REF TO /aws1/cl_bcdupdschddreportrsp /AWS1/CL_BCDUPDSCHDDREPORTRSP

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->updatescheduledreport(
  io_scheduleconfig = new /aws1/cl_bcdscheduleconfig(
    io_scheduleperiod = new /aws1/cl_bcdscheduleperiod(
      iv_endtime = '20150101000000.0000000'
      iv_starttime = '20150101000000.0000000'
    )
    iv_scheduleexpression = |string|
    iv_schedulexprsntimezone = |string|
    iv_state = |string|
  )
  io_widgetdaterangeoverride = new /aws1/cl_bcddatetimerange(
    io_endtime = new /aws1/cl_bcddatetimevalue(
      iv_type = |string|
      iv_value = |string|
    )
    io_starttime = new /aws1/cl_bcddatetimevalue(
      iv_type = |string|
      iv_value = |string|
    )
  )
  it_widgetids = VALUE /aws1/cl_bcdwidgetidlist_w=>tt_widgetidlist(
    ( new /aws1/cl_bcdwidgetidlist_w( |string| ) )
  )
  iv_arn = |string|
  iv_clearwidgetdaterangeovrd = ABAP_TRUE
  iv_clearwidgetids = ABAP_TRUE
  iv_dashboardarn = |string|
  iv_description = |string|
  iv_name = |string|
  iv_schddreportexecrolearn = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_scheduledreportarn = lo_result->get_arn( ).
ENDIF.