Skip to content

/AWS1/IF_PTT=>REJECTCONNECTIONINVITATION()

About RejectConnectionInvitation

Rejects a connection invitation from another partner, declining the partnership request.

Method Signature

METHODS /AWS1/IF_PTT~REJECTCONNECTIONINVITATION
  IMPORTING
    !IV_CATALOG TYPE /AWS1/PTTCATALOG OPTIONAL
    !IV_IDENTIFIER TYPE /AWS1/PTTCONNECTIONINVTNID OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/PTTCLIENTTOKEN OPTIONAL
    !IV_REASON TYPE /AWS1/PTTSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pttrejectconninvtnrsp
  RAISING
    /AWS1/CX_PTTACCESSDENIEDEX
    /AWS1/CX_PTTCONFLICTEXCEPTION
    /AWS1/CX_PTTINTERNALSERVEREX
    /AWS1/CX_PTTRESOURCENOTFOUNDEX
    /AWS1/CX_PTTTHROTTLINGEX
    /AWS1/CX_PTTVLDTNEXCEPTION
    /AWS1/CX_PTTCLIENTEXC
    /AWS1/CX_PTTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_catalog TYPE /AWS1/PTTCATALOG /AWS1/PTTCATALOG

The catalog identifier where the connection invitation exists.

iv_identifier TYPE /AWS1/PTTCONNECTIONINVTNID /AWS1/PTTCONNECTIONINVTNID

The unique identifier of the connection invitation to reject.

iv_clienttoken TYPE /AWS1/PTTCLIENTTOKEN /AWS1/PTTCLIENTTOKEN

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Optional arguments:

iv_reason TYPE /AWS1/PTTSTRING /AWS1/PTTSTRING

The reason for rejecting the connection invitation.

RETURNING

oo_output TYPE REF TO /aws1/cl_pttrejectconninvtnrsp /AWS1/CL_PTTREJECTCONNINVTNRSP

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->rejectconnectioninvitation(
  iv_catalog = |string|
  iv_clienttoken = |string|
  iv_identifier = |string|
  iv_reason = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_catalog = lo_result->get_catalog( ).
  lv_connectioninvitationid = lo_result->get_id( ).
  lv_connectioninvitationarn = lo_result->get_arn( ).
  lv_connectionid = lo_result->get_connectionid( ).
  lv_connectiontype = lo_result->get_connectiontype( ).
  lv_datetime = lo_result->get_createdat( ).
  lv_datetime = lo_result->get_updatedat( ).
  lv_datetime = lo_result->get_expiresat( ).
  lv_participantidentifier = lo_result->get_otherparticidentifier( ).
  lv_participanttype = lo_result->get_participanttype( ).
  lv_invitationstatus = lo_result->get_status( ).
  lv_unicodestring = lo_result->get_invitationmessage( ).
  lv_email = lo_result->get_inviteremail( ).
  lv_sensitiveunicodestring = lo_result->get_invitername( ).
ENDIF.