Skip to content

/AWS1/IF_BCD=>EXECUTESCHEDULEDREPORT()

About ExecuteScheduledReport

Triggers an immediate execution of a scheduled report, outside of its regular schedule. The scheduled report must be in ENABLED state. Calling this operation on a DISABLED scheduled report returns a ValidationException.

If a clientToken is provided, the service uses it for idempotency. Requests with the same client token will not trigger a new execution within the same minute.

Method Signature

METHODS /AWS1/IF_BCD~EXECUTESCHEDULEDREPORT
  IMPORTING
    !IV_ARN TYPE /AWS1/BCDSCHEDULEDREPORTARN OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/BCDCLIENTTOKEN OPTIONAL
    !IV_DRYRUN TYPE /AWS1/BCDBOOLEAN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bcdexecuteschddrptrsp
  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 execute.

Optional arguments:

iv_clienttoken TYPE /AWS1/BCDCLIENTTOKEN /AWS1/BCDCLIENTTOKEN

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

iv_dryrun TYPE /AWS1/BCDBOOLEAN /AWS1/BCDBOOLEAN

When set to true, validates the scheduled report configuration without triggering an actual execution.

RETURNING

oo_output TYPE REF TO /aws1/cl_bcdexecuteschddrptrsp /AWS1/CL_BCDEXECUTESCHDDRPTRSP

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->executescheduledreport(
  iv_arn = |string|
  iv_clienttoken = |string|
  iv_dryrun = ABAP_TRUE
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_healthstatus = lo_result->get_healthstatus( ).
  IF lo_healthstatus IS NOT INITIAL.
    lv_healthstatuscode = lo_healthstatus->get_statuscode( ).
    lv_generictimestamp = lo_healthstatus->get_lastrefreshedat( ).
    LOOP AT lo_healthstatus->get_statusreasons( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_statusreason = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
  lv_boolean = lo_result->get_executiontriggered( ).
ENDIF.