Skip to content

/AWS1/IF_CNT=>UPDATEUSERCONFIG()

About UpdateUserConfig

Updates the configuration settings for the specified user, including per-channel auto-accept and after contact work (ACW) timeout settings.

This operation replaces the UpdateUserPhoneConfig API. While UpdateUserPhoneConfig applies the same ACW timeout to all channels, UpdateUserConfig allows you to set different auto-accept and ACW timeout values for each channel type.

Method Signature

METHODS /AWS1/IF_CNT~UPDATEUSERCONFIG
  IMPORTING
    !IT_AUTOACCEPTCONFIGS TYPE /AWS1/CL_CNTAUTOACCEPTCONFIG=>TT_AUTOACCEPTCONFIGS OPTIONAL
    !IT_AFTERCONTACTWORKCONFIGS TYPE /AWS1/CL_CNTAFRCONTWORKCFGPE00=>TT_AFTERCONTACTWORKCONFIGS OPTIONAL
    !IT_PHONENUMBERCONFIGS TYPE /AWS1/CL_CNTPHONENUMBERCONFIG=>TT_PHONENUMBERCONFIGS OPTIONAL
    !IT_PERSISTENTCONNCONFIGS TYPE /AWS1/CL_CNTPERSISTENTCONNCFG=>TT_PERSISTENTCONNECTIONCONFIGS OPTIONAL
    !IT_VOICEENHANCEMENTCONFIGS TYPE /AWS1/CL_CNTVOICEENHMENTCONFIG=>TT_VOICEENHANCEMENTCONFIGS OPTIONAL
    !IV_USERID TYPE /AWS1/CNTUSERID OPTIONAL
    !IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID OPTIONAL
  RAISING
    /AWS1/CX_CNTCONDALOPFAILEDEX
    /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_userid TYPE /AWS1/CNTUSERID /AWS1/CNTUSERID

The identifier of the user account.

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.

Optional arguments:

it_autoacceptconfigs TYPE /AWS1/CL_CNTAUTOACCEPTCONFIG=>TT_AUTOACCEPTCONFIGS TT_AUTOACCEPTCONFIGS

The list of auto-accept configuration settings for each channel. When auto-accept is enabled for a channel, available agents are automatically connected to contacts from that channel without needing to manually accept. Auto-accept connects agents to contacts in less than one second.

it_aftercontactworkconfigs TYPE /AWS1/CL_CNTAFRCONTWORKCFGPE00=>TT_AFTERCONTACTWORKCONFIGS TT_AFTERCONTACTWORKCONFIGS

The list of after contact work (ACW) timeout configuration settings for each channel. ACW timeout specifies how many seconds agents have for after contact work, such as entering notes about the contact. The minimum setting is 1 second, and the maximum is 2,000,000 seconds (24 days). Enter 0 for an indefinite amount of time, meaning agents must manually choose to end ACW.

it_phonenumberconfigs TYPE /AWS1/CL_CNTPHONENUMBERCONFIG=>TT_PHONENUMBERCONFIGS TT_PHONENUMBERCONFIGS

The list of phone number configuration settings for each channel.

it_persistentconnconfigs TYPE /AWS1/CL_CNTPERSISTENTCONNCFG=>TT_PERSISTENTCONNECTIONCONFIGS TT_PERSISTENTCONNECTIONCONFIGS

The list of persistent connection configuration settings for each channel.

it_voiceenhancementconfigs TYPE /AWS1/CL_CNTVOICEENHMENTCONFIG=>TT_VOICEENHANCEMENTCONFIGS TT_VOICEENHANCEMENTCONFIGS

The list of voice enhancement configuration settings for each channel.

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->updateuserconfig(
  it_aftercontactworkconfigs = VALUE /aws1/cl_cntafrcontworkcfgpe00=>tt_aftercontactworkconfigs(
    (
      new /aws1/cl_cntafrcontworkcfgpe00(
        io_aftercontactworkconfig = new /aws1/cl_cntaftercontworkcfg( 123 )
        io_agfirstcallafrcontworkcfg = new /aws1/cl_cntaftercontworkcfg( 123 )
        iv_channel = |string|
      )
    )
  )
  it_autoacceptconfigs = VALUE /aws1/cl_cntautoacceptconfig=>tt_autoacceptconfigs(
    (
      new /aws1/cl_cntautoacceptconfig(
        iv_agentfirstcallautoaccept = ABAP_TRUE
        iv_autoaccept = ABAP_TRUE
        iv_channel = |string|
      )
    )
  )
  it_persistentconnconfigs = VALUE /aws1/cl_cntpersistentconncfg=>tt_persistentconnectionconfigs(
    (
      new /aws1/cl_cntpersistentconncfg(
        iv_channel = |string|
        iv_persistentconnection = ABAP_TRUE
      )
    )
  )
  it_phonenumberconfigs = VALUE /aws1/cl_cntphonenumberconfig=>tt_phonenumberconfigs(
    (
      new /aws1/cl_cntphonenumberconfig(
        iv_channel = |string|
        iv_phonenumber = |string|
        iv_phonetype = |string|
      )
    )
  )
  it_voiceenhancementconfigs = VALUE /aws1/cl_cntvoiceenhmentconfig=>tt_voiceenhancementconfigs(
    (
      new /aws1/cl_cntvoiceenhmentconfig(
        iv_channel = |string|
        iv_voiceenhancementmode = |string|
      )
    )
  )
  iv_instanceid = |string|
  iv_userid = |string|
).