/AWS1/IF_CNK=>UPDATECASE()¶
About UpdateCase¶
If you provide a value for PerformedBy.UserArn you must also have connect:DescribeUser permission on the User ARN resource that you provide
Updates the values of fields on a case. Fields to be updated are received as an array of id/value pairs identical to the CreateCase input .
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Method Signature¶
METHODS /AWS1/IF_CNK~UPDATECASE
IMPORTING
!IV_DOMAINID TYPE /AWS1/CNKDOMAINID OPTIONAL
!IV_CASEID TYPE /AWS1/CNKCASEID OPTIONAL
!IT_FIELDS TYPE /AWS1/CL_CNKFIELDVALUE=>TT_FIELDVALUELIST OPTIONAL
!IO_PERFORMEDBY TYPE REF TO /AWS1/CL_CNKUSERUNION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cnkupdatecaseresponse
RAISING
/AWS1/CX_CNKACCESSDENIEDEX
/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_caseid TYPE /AWS1/CNKCASEID /AWS1/CNKCASEID¶
A unique identifier of the case.
it_fields TYPE /AWS1/CL_CNKFIELDVALUE=>TT_FIELDVALUELIST TT_FIELDVALUELIST¶
An array of objects with
fieldId(matching ListFields/DescribeField) and value union data, structured identical toCreateCase.
Optional arguments:¶
io_performedby TYPE REF TO /AWS1/CL_CNKUSERUNION /AWS1/CL_CNKUSERUNION¶
Represents the entity that performed the action.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cnkupdatecaseresponse /AWS1/CL_CNKUPDATECASERESPONSE¶
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->updatecase(
io_performedby = new /aws1/cl_cnkuserunion(
iv_customentity = |string|
iv_userarn = |string|
)
it_fields = VALUE /aws1/cl_cnkfieldvalue=>tt_fieldvaluelist(
(
new /aws1/cl_cnkfieldvalue(
io_value = new /aws1/cl_cnkfieldvalueunion(
io_emptyvalue = new /aws1/cl_cnkemptyfieldvalue( )
iv_booleanvalue = ABAP_TRUE
iv_doublevalue = '0.1'
iv_stringvalue = |string|
iv_userarnvalue = |string|
)
iv_id = |string|
)
)
)
iv_caseid = |string|
iv_domainid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.