/AWS1/IF_CNT=>DESCRIBEHOURSOFOPERATION()¶
About DescribeHoursOfOperation¶
Describes the hours of operation.
Method Signature¶
METHODS /AWS1/IF_CNT~DESCRIBEHOURSOFOPERATION
IMPORTING
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID OPTIONAL
!IV_HOURSOFOPERATIONID TYPE /AWS1/CNTHOURSOFOPERATIONID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntdescrhoursofoprsp
RAISING
/AWS1/CX_CNTINTERNALSERVICEEX
/AWS1/CX_CNTINVALIDPARAMETEREX
/AWS1/CX_CNTINVALIDREQUESTEX
/AWS1/CX_CNTRESOURCENOTFOUNDEX
/AWS1/CX_CNTTHROTTLINGEX
/AWS1/CX_CNTCLIENTEXC
/AWS1/CX_CNTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_instanceid TYPE /AWS1/CNTINSTANCEID /AWS1/CNTINSTANCEID¶
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
iv_hoursofoperationid TYPE /AWS1/CNTHOURSOFOPERATIONID /AWS1/CNTHOURSOFOPERATIONID¶
The identifier for the hours of operation.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cntdescrhoursofoprsp /AWS1/CL_CNTDESCRHOURSOFOPRSP¶
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->describehoursofoperation(
iv_hoursofoperationid = |string|
iv_instanceid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_hoursofoperation = lo_result->get_hoursofoperation( ).
IF lo_hoursofoperation IS NOT INITIAL.
lv_hoursofoperationid = lo_hoursofoperation->get_hoursofoperationid( ).
lv_arn = lo_hoursofoperation->get_hoursofoperationarn( ).
lv_commonnamelength127 = lo_hoursofoperation->get_name( ).
lv_hoursofoperationdescrip = lo_hoursofoperation->get_description( ).
lv_timezone = lo_hoursofoperation->get_timezone( ).
LOOP AT lo_hoursofoperation->get_config( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_hoursofoperationdays = lo_row_1->get_day( ).
lo_hoursofoperationtimesli = lo_row_1->get_starttime( ).
IF lo_hoursofoperationtimesli IS NOT INITIAL.
lv_hours24format = lo_hoursofoperationtimesli->get_hours( ).
lv_minuteslimit60 = lo_hoursofoperationtimesli->get_minutes( ).
ENDIF.
lo_hoursofoperationtimesli = lo_row_1->get_endtime( ).
IF lo_hoursofoperationtimesli IS NOT INITIAL.
lv_hours24format = lo_hoursofoperationtimesli->get_hours( ).
lv_minuteslimit60 = lo_hoursofoperationtimesli->get_minutes( ).
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_hoursofoperation->get_tags( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_timestamp = lo_hoursofoperation->get_lastmodifiedtime( ).
lv_regionname = lo_hoursofoperation->get_lastmodifiedregion( ).
ENDIF.
ENDIF.