Skip to content

/AWS1/IF_SHI=>GETCASEATTACHMENTUPLOADURL()

About GetCaseAttachmentUploadUrl

Uploads an attachment to a case.

Method Signature

IMPORTING

Required arguments:

iv_caseid TYPE /AWS1/SHICASEID /AWS1/SHICASEID

Required element for GetCaseAttachmentUploadUrl to identify the case ID for uploading an attachment.

iv_filename TYPE /AWS1/SHIFILENAME /AWS1/SHIFILENAME

Required element for GetCaseAttachmentUploadUrl to identify the file name of the attachment to upload.

iv_contentlength TYPE /AWS1/SHICONTENTLENGTH /AWS1/SHICONTENTLENGTH

Required element for GetCaseAttachmentUploadUrl to identify the size of the file attachment.

Optional arguments:

iv_clienttoken TYPE /AWS1/SHISTRING /AWS1/SHISTRING

The clientToken field is an idempotency key used to ensure that repeated attempts for a single action will be ignored by the server during retries. A caller supplied unique ID (typically a UUID) should be provided.

RETURNING

oo_output TYPE REF TO /aws1/cl_shigetcaseattachmen03 /AWS1/CL_SHIGETCASEATTACHMEN03

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->/aws1/if_shi~getcaseattachmentuploadurl(
  iv_caseid = |string|
  iv_clienttoken = |string|
  iv_contentlength = 123
  iv_filename = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_url = lo_result->get_attachmentpresignedurl( ).
ENDIF.

Invoke GetCaseAttachmentUploadUrl

Invoke GetCaseAttachmentUploadUrl

DATA(lo_result) = lo_client->/aws1/if_shi~getcaseattachmentuploadurl(
  iv_caseid = |8403556009|
  iv_contentlength = 1500
  iv_filename = |TestFileName|
).