Skip to content

/AWS1/CL_CNK=>CREATETEMPLATE()

About CreateTemplate

Creates a template in the Cases domain. This template is used to define the case object model (that is, to define what data can be captured on cases) in a Cases domain. A template must have a unique name within a domain, and it must reference existing field IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within the same Template. A template can be either Active or Inactive, as indicated by its status. Inactive templates cannot be used to create cases.

Method Signature

IMPORTING

Required arguments:

IV_DOMAINID TYPE /AWS1/CNKDOMAINID /AWS1/CNKDOMAINID

The unique identifier of the Cases domain.

IV_NAME TYPE /AWS1/CNKTEMPLATENAME /AWS1/CNKTEMPLATENAME

A name for the template. It must be unique per domain.

Optional arguments:

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CNKCREATETMPLRESPONSE /AWS1/CL_CNKCREATETMPLRESPONSE