/AWS1/IF_BCD=>GETSCHEDULEDREPORT()¶
About GetScheduledReport¶
Retrieves the configuration and metadata of a specified scheduled report.
Method Signature¶
METHODS /AWS1/IF_BCD~GETSCHEDULEDREPORT
IMPORTING
!IV_ARN TYPE /AWS1/BCDSCHEDULEDREPORTARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bcdgetschddreportrsp
RAISING
/AWS1/CX_BCDACCESSDENIEDEX
/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 retrieve.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bcdgetschddreportrsp /AWS1/CL_BCDGETSCHDDREPORTRSP¶
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->getscheduledreport( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_scheduledreport = lo_result->get_scheduledreport( ).
IF lo_scheduledreport IS NOT INITIAL.
lv_scheduledreportarn = lo_scheduledreport->get_arn( ).
lv_scheduledreportname = lo_scheduledreport->get_name( ).
lv_dashboardarn = lo_scheduledreport->get_dashboardarn( ).
lv_servicerolearn = lo_scheduledreport->get_schddreportexecrolearn( ).
lo_scheduleconfig = lo_scheduledreport->get_scheduleconfig( ).
IF lo_scheduleconfig IS NOT INITIAL.
lv_genericstring = lo_scheduleconfig->get_scheduleexpression( ).
lv_genericstring = lo_scheduleconfig->get_schedulexprsntimezone( ).
lo_scheduleperiod = lo_scheduleconfig->get_scheduleperiod( ).
IF lo_scheduleperiod IS NOT INITIAL.
lv_generictimestamp = lo_scheduleperiod->get_starttime( ).
lv_generictimestamp = lo_scheduleperiod->get_endtime( ).
ENDIF.
lv_schedulestate = lo_scheduleconfig->get_state( ).
ENDIF.
lv_description = lo_scheduledreport->get_description( ).
LOOP AT lo_scheduledreport->get_widgetids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lo_datetimerange = lo_scheduledreport->get_widgetdaterangeoverride( ).
IF lo_datetimerange IS NOT INITIAL.
lo_datetimevalue = lo_datetimerange->get_starttime( ).
IF lo_datetimevalue IS NOT INITIAL.
lv_datetimetype = lo_datetimevalue->get_type( ).
lv_genericstring = lo_datetimevalue->get_value( ).
ENDIF.
lo_datetimevalue = lo_datetimerange->get_endtime( ).
IF lo_datetimevalue IS NOT INITIAL.
lv_datetimetype = lo_datetimevalue->get_type( ).
lv_genericstring = lo_datetimevalue->get_value( ).
ENDIF.
ENDIF.
lv_generictimestamp = lo_scheduledreport->get_createdat( ).
lv_generictimestamp = lo_scheduledreport->get_updatedat( ).
lv_generictimestamp = lo_scheduledreport->get_lastexecutionat( ).
lo_healthstatus = lo_scheduledreport->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_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_statusreason = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.