Skip to content

/AWS1/IF_SAG=>UPDATEINTEGRATION()

About UpdateIntegration

Creates an integration's webhook, or rotates the HMAC signing secret of an existing one. The secret is returned only once, in this response, and cannot be retrieved again.

Method Signature

METHODS /AWS1/IF_SAG~UPDATEINTEGRATION
  IMPORTING
    !IV_INTEGRATIONID TYPE /AWS1/SAGINTEGRATIONID OPTIONAL
    !IV_WEBHOOKACTION TYPE /AWS1/SAGWEBHOOKACTION OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sagupdateintgoutput
  RAISING
    /AWS1/CX_SAGACCESSDENIEDEX
    /AWS1/CX_SAGCONFLICTEXCEPTION
    /AWS1/CX_SAGINTERNALSERVEREX
    /AWS1/CX_SAGRESOURCENOTFOUNDEX
    /AWS1/CX_SAGTHROTTLINGEX
    /AWS1/CX_SAGVLDTNEXCEPTION
    /AWS1/CX_SAGCLIENTEXC
    /AWS1/CX_SAGSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_integrationid TYPE /AWS1/SAGINTEGRATIONID /AWS1/SAGINTEGRATIONID

The ID of the integration whose webhook you want to create or rotate.

iv_webhookaction TYPE /AWS1/SAGWEBHOOKACTION /AWS1/SAGWEBHOOKACTION

The action to perform on the integration's webhook.

RETURNING

oo_output TYPE REF TO /aws1/cl_sagupdateintgoutput /AWS1/CL_SAGUPDATEINTGOUTPUT

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->updateintegration(
  iv_integrationid = |string|
  iv_webhookaction = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_integrationid = lo_result->get_integrationid( ).
  lv_string = lo_result->get_webhookurl( ).
  lv_webhooksecret = lo_result->get_secret( ).
ENDIF.