/AWS1/IF_CNK=>UPDATETEMPLATE()¶
About UpdateTemplate¶
Updates the attributes of an existing template. The template attributes that can be modified include name, description, layoutConfiguration, requiredFields, and status. At least one of these attributes must not be null. If a null value is provided for a given attribute, that attribute is ignored and its current value is preserved.
Other template APIs are:
Method Signature¶
METHODS /AWS1/IF_CNK~UPDATETEMPLATE
  IMPORTING
    !IV_DOMAINID TYPE /AWS1/CNKDOMAINID OPTIONAL
    !IV_TEMPLATEID TYPE /AWS1/CNKTEMPLATEID OPTIONAL
    !IV_NAME TYPE /AWS1/CNKTEMPLATENAME OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/CNKTEMPLATEDESCRIPTION OPTIONAL
    !IO_LAYOUTCONFIGURATION TYPE REF TO /AWS1/CL_CNKLAYOUTCONF OPTIONAL
    !IT_REQUIREDFIELDS TYPE /AWS1/CL_CNKREQUIREDFIELD=>TT_REQUIREDFIELDLIST OPTIONAL
    !IV_STATUS TYPE /AWS1/CNKTEMPLATESTATUS OPTIONAL
    !IT_RULES TYPE /AWS1/CL_CNKTEMPLATERULE=>TT_TEMPLATECASERULELIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cnkupdatetmplresponse
  RAISING
    /AWS1/CX_CNKACCESSDENIEDEX
    /AWS1/CX_CNKCONFLICTEXCEPTION
    /AWS1/CX_CNKINTERNALSERVEREX
    /AWS1/CX_CNKRESOURCENOTFOUNDEX
    /AWS1/CX_CNKTHROTTLINGEX
    /AWS1/CX_CNKVALIDATIONEX
    /AWS1/CX_CNKCLIENTEXC
    /AWS1/CX_CNKSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_domainid TYPE /AWS1/CNKDOMAINID /AWS1/CNKDOMAINID¶
The unique identifier of the Cases domain.
iv_templateid TYPE /AWS1/CNKTEMPLATEID /AWS1/CNKTEMPLATEID¶
A unique identifier for the template.
Optional arguments:¶
iv_name TYPE /AWS1/CNKTEMPLATENAME /AWS1/CNKTEMPLATENAME¶
The name of the template. It must be unique per domain.
iv_description TYPE /AWS1/CNKTEMPLATEDESCRIPTION /AWS1/CNKTEMPLATEDESCRIPTION¶
A brief description of the template.
io_layoutconfiguration TYPE REF TO /AWS1/CL_CNKLAYOUTCONF /AWS1/CL_CNKLAYOUTCONF¶
Configuration of layouts associated to the template.
it_requiredfields TYPE /AWS1/CL_CNKREQUIREDFIELD=>TT_REQUIREDFIELDLIST TT_REQUIREDFIELDLIST¶
A list of fields that must contain a value for a case to be successfully created with this template.
iv_status TYPE /AWS1/CNKTEMPLATESTATUS /AWS1/CNKTEMPLATESTATUS¶
The status of the template.
it_rules TYPE /AWS1/CL_CNKTEMPLATERULE=>TT_TEMPLATECASERULELIST TT_TEMPLATECASERULELIST¶
A list of case rules (also known as case field conditions) on a template.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cnkupdatetmplresponse /AWS1/CL_CNKUPDATETMPLRESPONSE¶
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->updatetemplate(
  io_layoutconfiguration = new /aws1/cl_cnklayoutconf( |string| )
  it_requiredfields = VALUE /aws1/cl_cnkrequiredfield=>tt_requiredfieldlist(
    ( new /aws1/cl_cnkrequiredfield( |string| ) )
  )
  it_rules = VALUE /aws1/cl_cnktemplaterule=>tt_templatecaserulelist(
    (
      new /aws1/cl_cnktemplaterule(
        iv_caseruleid = |string|
        iv_fieldid = |string|
      )
    )
  )
  iv_description = |string|
  iv_domainid = |string|
  iv_name = |string|
  iv_status = |string|
  iv_templateid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.