Skip to content

/AWS1/IF_SUP=>ADDCOMMUNICATIONTOCASE()

About AddCommunicationToCase

Adds additional customer communication to a Amazon Web Services Support case. Use the caseId parameter to identify the case to which to add communication. To list a set of email addresses to copy on the communication, use the ccEmailAddresses parameter. The communicationBody value contains the text of the communication.

To attach files larger than 5 MB to the communication, use the uploadIds parameter.

Amazon Web Services Support automatically redacts sensitive information from support cases to protect your data. The following information is replaced with [REDACTED_BY_Amazon Web Services] and is not stored:

  • Amazon Web Services secret keys - The complete key is replaced. Example: [REDACTED_BY_Amazon Web Services]

  • Private keys - The complete key is replaced. Example: [REDACTED_BY_Amazon Web Services]

  • Credit card numbers - The number is redacted, but the last 4 digits remain. Example: [REDACTED_BY_Amazon Web Services]-7016

This sensitive information is never required by Amazon Web Services Support.

  • You must have an Amazon Web Services Business Support+, Amazon Web Services Enterprise Support, or Amazon Web Services Unified Operations plan to use the Amazon Web Services Support API. If you're in an Amazon Web Services Region that doesn't offer one of these Amazon Web Services Support plans, or if you haven't transitioned to one of these plans, you can use the Amazon Web Services Support API with a Business, Enterprise On-Ramp, or Enterprise Support plan.

  • If you call the Amazon Web Services Support API from an account that doesn't have an Amazon Web Services Business Support+, Amazon Web Services Enterprise Support, or Amazon Web Services Unified Operations plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Method Signature

METHODS /AWS1/IF_SUP~ADDCOMMUNICATIONTOCASE
  IMPORTING
    !IV_CASEID TYPE /AWS1/SUPCASEID OPTIONAL
    !IV_COMMUNICATIONBODY TYPE /AWS1/SUPCOMMUNICATIONBODY OPTIONAL
    !IT_CCEMAILADDRESSES TYPE /AWS1/CL_SUPCCEMAILADDRESSLS00=>TT_CCEMAILADDRESSLIST OPTIONAL
    !IV_ATTACHMENTSETID TYPE /AWS1/SUPATTACHMENTSETID OPTIONAL
    !IT_UPLOADIDS TYPE /AWS1/CL_SUPUPLOADIDS_W=>TT_UPLOADIDS OPTIONAL
    !IV_DRYRUN TYPE /AWS1/SUPNULLABLEBOOLEANTYPE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_supaddcommunication01
  RAISING
    /AWS1/CX_SUPATTACHMENTSETEXP00
    /AWS1/CX_SUPATTACHMENTSETIDN00
    /AWS1/CX_SUPCASEIDNOTFOUND
    /AWS1/CX_SUPDRYRUNOPEXCEPTION
    /AWS1/CX_SUPINTERNALSERVERERR
    /AWS1/CX_SUPCLIENTEXC
    /AWS1/CX_SUPSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_communicationbody TYPE /AWS1/SUPCOMMUNICATIONBODY /AWS1/SUPCOMMUNICATIONBODY

The body of an email communication to add to the support case.

Optional arguments:

iv_caseid TYPE /AWS1/SUPCASEID /AWS1/SUPCASEID

The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-exen-2025-c4c1d2bf33c5cf47

it_ccemailaddresses TYPE /AWS1/CL_SUPCCEMAILADDRESSLS00=>TT_CCEMAILADDRESSLIST TT_CCEMAILADDRESSLIST

The email addresses in the CC line of an email to be added to the support case.

iv_attachmentsetid TYPE /AWS1/SUPATTACHMENTSETID /AWS1/SUPATTACHMENTSETID

The ID of a set of one or more attachments for the communication to add to the case. Create the set by calling AddAttachmentsToSet. Each attachment in the set must be 5 MB or smaller. To attach files larger than 5 MB, use uploadIds.

it_uploadids TYPE /AWS1/CL_SUPUPLOADIDS_W=>TT_UPLOADIDS TT_UPLOADIDS

A list of upload IDs that identify attachments to add to the case. Each uploadId is returned by the GetAttachmentUploadLinks operation. The upload must reach the attachment-ready state by calling CompleteAttachmentUpload before it can be passed here. Use uploadIds to attach files of any supported size, including files larger than 5 MB.

iv_dryrun TYPE /AWS1/SUPNULLABLEBOOLEANTYPE /AWS1/SUPNULLABLEBOOLEANTYPE

Specifies whether to validate the request without actually adding the communication to the case. When set to true, the request is validated but the communication isn't added, and the operation returns a DryRunOperationException. When omitted or set to false, the request runs normally.

RETURNING

oo_output TYPE REF TO /aws1/cl_supaddcommunication01 /AWS1/CL_SUPADDCOMMUNICATION01

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->addcommunicationtocase(
  it_ccemailaddresses = VALUE /aws1/cl_supccemailaddressls00=>tt_ccemailaddresslist(
    ( new /aws1/cl_supccemailaddressls00( |string| ) )
  )
  it_uploadids = VALUE /aws1/cl_supuploadids_w=>tt_uploadids(
    ( new /aws1/cl_supuploadids_w( |string| ) )
  )
  iv_attachmentsetid = |string|
  iv_caseid = |string|
  iv_communicationbody = |string|
  iv_dryrun = ABAP_TRUE
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_result_1 = lo_result->get_result( ).
ENDIF.