/AWS1/IF_CN2=>UPDCAMPAIGNCOMMUNICATIONTIME()¶
About UpdateCampaignCommunicationTime¶
Updates the communication time config for a campaign. This API is idempotent.
Method Signature¶
METHODS /AWS1/IF_CN2~UPDCAMPAIGNCOMMUNICATIONTIME
  IMPORTING
    !IV_ID TYPE /AWS1/CN2CAMPAIGNID OPTIONAL
    !IO_COMMUNICATIONTIMECONFIG TYPE REF TO /AWS1/CL_CN2COMMUNICATIONTIM00 OPTIONAL
  RAISING
    /AWS1/CX_CN2ACCESSDENIEDEX
    /AWS1/CX_CN2CONFLICTEXCEPTION
    /AWS1/CX_CN2INTERNALSERVEREX
    /AWS1/CX_CN2INVCAMPAIGNSTATEEX
    /AWS1/CX_CN2RESOURCENOTFOUNDEX
    /AWS1/CX_CN2VALIDATIONEX
    /AWS1/CX_CN2CLIENTEXC
    /AWS1/CX_CN2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_id TYPE /AWS1/CN2CAMPAIGNID /AWS1/CN2CAMPAIGNID¶
id
io_communicationtimeconfig TYPE REF TO /AWS1/CL_CN2COMMUNICATIONTIM00 /AWS1/CL_CN2COMMUNICATIONTIM00¶
communicationTimeConfig
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.
lo_client->updcampaigncommunicationtime(
  io_communicationtimeconfig = new /aws1/cl_cn2communicationtim00(
    io_email = new /aws1/cl_cn2timewindow(
      io_openhours = new /aws1/cl_cn2openhours(
        it_dailyhours = VALUE /aws1/cl_cn2timerange=>tt_dailyhours(
          (
            VALUE /aws1/cl_cn2timerange=>ts_dailyhours_maprow(
              key = |string|
              value = VALUE /aws1/cl_cn2timerange=>tt_timerangelist(
                (
                  new /aws1/cl_cn2timerange(
                    iv_endtime = |string|
                    iv_starttime = |string|
                  )
                )
              )
            )
          )
        )
      )
      io_restrictedperiods = new /aws1/cl_cn2restrictedperiods(
        it_restrictedperiodlist = VALUE /aws1/cl_cn2restrictedperiod=>tt_restrictedperiodlist(
          (
            new /aws1/cl_cn2restrictedperiod(
              iv_enddate = |string|
              iv_name = |string|
              iv_startdate = |string|
            )
          )
        )
      )
    )
    io_localtimezoneconfig = new /aws1/cl_cn2localtimezonecfg(
      it_localtimezonedetection = VALUE /aws1/cl_cn2localtimezonedet_w=>tt_localtimezonedetection(
        ( new /aws1/cl_cn2localtimezonedet_w( |string| ) )
      )
      iv_defaulttimezone = |string|
    )
    io_sms = new /aws1/cl_cn2timewindow(
      io_openhours = new /aws1/cl_cn2openhours(
        it_dailyhours = VALUE /aws1/cl_cn2timerange=>tt_dailyhours(
          (
            VALUE /aws1/cl_cn2timerange=>ts_dailyhours_maprow(
              key = |string|
              value = VALUE /aws1/cl_cn2timerange=>tt_timerangelist(
                (
                  new /aws1/cl_cn2timerange(
                    iv_endtime = |string|
                    iv_starttime = |string|
                  )
                )
              )
            )
          )
        )
      )
      io_restrictedperiods = new /aws1/cl_cn2restrictedperiods(
        it_restrictedperiodlist = VALUE /aws1/cl_cn2restrictedperiod=>tt_restrictedperiodlist(
          (
            new /aws1/cl_cn2restrictedperiod(
              iv_enddate = |string|
              iv_name = |string|
              iv_startdate = |string|
            )
          )
        )
      )
    )
    io_telephony = new /aws1/cl_cn2timewindow(
      io_openhours = new /aws1/cl_cn2openhours(
        it_dailyhours = VALUE /aws1/cl_cn2timerange=>tt_dailyhours(
          (
            VALUE /aws1/cl_cn2timerange=>ts_dailyhours_maprow(
              key = |string|
              value = VALUE /aws1/cl_cn2timerange=>tt_timerangelist(
                (
                  new /aws1/cl_cn2timerange(
                    iv_endtime = |string|
                    iv_starttime = |string|
                  )
                )
              )
            )
          )
        )
      )
      io_restrictedperiods = new /aws1/cl_cn2restrictedperiods(
        it_restrictedperiodlist = VALUE /aws1/cl_cn2restrictedperiod=>tt_restrictedperiodlist(
          (
            new /aws1/cl_cn2restrictedperiod(
              iv_enddate = |string|
              iv_name = |string|
              iv_startdate = |string|
            )
          )
        )
      )
    )
  )
  iv_id = |string|
).