Skip to content

/AWS1/IF_MPB=>UPDATELINK()

Updates the configuration of a link between RTB applications.

Allows you to modify settings and parameters for an existing link.

Method Signature

METHODS /AWS1/IF_MPB~UPDATELINK
  IMPORTING
    !IV_GATEWAYID TYPE /AWS1/MPBGATEWAYID OPTIONAL
    !IV_LINKID TYPE /AWS1/MPBLINKID OPTIONAL
    !IO_LOGSETTINGS TYPE REF TO /AWS1/CL_MPBLINKLOGSETTINGS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mpbupdatelinkresponse
  RAISING
    /AWS1/CX_MPBACCESSDENIEDEX
    /AWS1/CX_MPBCONFLICTEXCEPTION
    /AWS1/CX_MPBINTERNALSERVEREX
    /AWS1/CX_MPBRESOURCENOTFOUNDEX
    /AWS1/CX_MPBTHROTTLINGEX
    /AWS1/CX_MPBVALIDATIONEX
    /AWS1/CX_MPBCLIENTEXC
    /AWS1/CX_MPBSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_gatewayid TYPE /AWS1/MPBGATEWAYID /AWS1/MPBGATEWAYID

The unique identifier of the gateway.

iv_linkid TYPE /AWS1/MPBLINKID /AWS1/MPBLINKID

The unique identifier of the link.

Optional arguments:

io_logsettings TYPE REF TO /AWS1/CL_MPBLINKLOGSETTINGS /AWS1/CL_MPBLINKLOGSETTINGS

Settings for the application logs.

RETURNING

oo_output TYPE REF TO /aws1/cl_mpbupdatelinkresponse /AWS1/CL_MPBUPDATELINKRESPONSE

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->updatelink(
  io_logsettings = new /aws1/cl_mpblinklogsettings(
    io_applicationlogs = new /aws1/cl_mpblinkapplogconf(
      io_sampling = new /aws1/cl_mpblinkapplogsampling(
        iv_errorlog = '0.1'
        iv_filterlog = '0.1'
      )
    )
  )
  iv_gatewayid = |string|
  iv_linkid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_linkid = lo_result->get_linkid( ).
  lv_linkstatus = lo_result->get_status( ).
ENDIF.

Updates configuration settings for an existing link

DATA(lo_result) = lo_client->updatelink(
  io_logsettings = new /aws1/cl_mpblinklogsettings(
    io_applicationlogs = new /aws1/cl_mpblinkapplogconf(
      io_sampling = new /aws1/cl_mpblinkapplogsampling(
        iv_errorlog = '100.0'
        iv_filterlog = '10.0'
      )
    )
  )
  iv_gatewayid = |rtb-gw-12345678|
  iv_linkid = |link-87654321|
).