Skip to content

/AWS1/IF_BCD=>CREATESCHEDULEDREPORT()

About CreateScheduledReport

Creates a new scheduled report for a dashboard. A scheduled report automatically generates and delivers dashboard snapshots on a recurring schedule. Reports are delivered within 15 minutes of the scheduled delivery time.

Method Signature

METHODS /AWS1/IF_BCD~CREATESCHEDULEDREPORT
  IMPORTING
    !IO_SCHEDULEDREPORT TYPE REF TO /AWS1/CL_BCDSCHDDREPORTINPUT OPTIONAL
    !IT_RESOURCETAGS TYPE /AWS1/CL_BCDRESOURCETAG=>TT_RESOURCETAGLIST OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/BCDCLIENTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bcdcreateschddrptrsp
  RAISING
    /AWS1/CX_BCDACCESSDENIEDEX
    /AWS1/CX_BCDCONFLICTEXCEPTION
    /AWS1/CX_BCDINTERNALSERVEREX
    /AWS1/CX_BCDSERVICEQUOTAEXCDEX
    /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:

io_scheduledreport TYPE REF TO /AWS1/CL_BCDSCHDDREPORTINPUT /AWS1/CL_BCDSCHDDREPORTINPUT

The configuration for the scheduled report, including the dashboard to report on, the schedule, and the execution role that the service will use to generate the dashboard snapshot.

Optional arguments:

it_resourcetags TYPE /AWS1/CL_BCDRESOURCETAG=>TT_RESOURCETAGLIST TT_RESOURCETAGLIST

The tags to apply to the scheduled report resource for organization and management.

iv_clienttoken TYPE /AWS1/BCDCLIENTTOKEN /AWS1/BCDCLIENTTOKEN

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

RETURNING

oo_output TYPE REF TO /aws1/cl_bcdcreateschddrptrsp /AWS1/CL_BCDCREATESCHDDRPTRSP

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->createscheduledreport(
  io_scheduledreport = new /aws1/cl_bcdschddreportinput(
    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_dashboardarn = |string|
    iv_description = |string|
    iv_name = |string|
    iv_schddreportexecrolearn = |string|
  )
  it_resourcetags = VALUE /aws1/cl_bcdresourcetag=>tt_resourcetaglist(
    (
      new /aws1/cl_bcdresourcetag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_clienttoken = |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.