Skip to content

/AWS1/IF_PTT=>LISTCONNECTIONINVITATIONS()

About ListConnectionInvitations

Lists connection invitations for the partner account, with optional filtering by status, type, and other criteria.

Method Signature

METHODS /AWS1/IF_PTT~LISTCONNECTIONINVITATIONS
  IMPORTING
    !IV_CATALOG TYPE /AWS1/PTTCATALOG OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/PTTNEXTTOKEN OPTIONAL
    !IV_CONNECTIONTYPE TYPE /AWS1/PTTCONNECTIONTYPE OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/PTTMAXRESULTS OPTIONAL
    !IT_OTHERPARTICIDENTIFIERS TYPE /AWS1/CL_PTTPARTICIDLIST_W=>TT_PARTICIPANTIDENTIFIERLIST OPTIONAL
    !IV_PARTICIPANTTYPE TYPE /AWS1/PTTPARTICIPANTTYPE OPTIONAL
    !IV_STATUS TYPE /AWS1/PTTINVITATIONSTATUS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pttlistconninvtnsrsp
  RAISING
    /AWS1/CX_PTTACCESSDENIEDEX
    /AWS1/CX_PTTINTERNALSERVEREX
    /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 for the partner account.

Optional arguments:

iv_nexttoken TYPE /AWS1/PTTNEXTTOKEN /AWS1/PTTNEXTTOKEN

The token for retrieving the next page of results in paginated responses.

iv_connectiontype TYPE /AWS1/PTTCONNECTIONTYPE /AWS1/PTTCONNECTIONTYPE

Filter results by connection type (e.g., reseller, distributor, technology partner).

iv_maxresults TYPE /AWS1/PTTMAXRESULTS /AWS1/PTTMAXRESULTS

The maximum number of connection invitations to return in a single response.

it_otherparticidentifiers TYPE /AWS1/CL_PTTPARTICIDLIST_W=>TT_PARTICIPANTIDENTIFIERLIST TT_PARTICIPANTIDENTIFIERLIST

Filter results by specific participant identifiers.

iv_participanttype TYPE /AWS1/PTTPARTICIPANTTYPE /AWS1/PTTPARTICIPANTTYPE

Filter results by participant type (inviter or invitee).

iv_status TYPE /AWS1/PTTINVITATIONSTATUS /AWS1/PTTINVITATIONSTATUS

Filter results by invitation status (pending, accepted, rejected, canceled, expired).

RETURNING

oo_output TYPE REF TO /aws1/cl_pttlistconninvtnsrsp /AWS1/CL_PTTLISTCONNINVTNSRSP

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->listconnectioninvitations(
  it_otherparticidentifiers = VALUE /aws1/cl_pttparticidlist_w=>tt_participantidentifierlist(
    ( new /aws1/cl_pttparticidlist_w( |string| ) )
  )
  iv_catalog = |string|
  iv_connectiontype = |string|
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_participanttype = |string|
  iv_status = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_connectioninvtnsummaries( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_catalog = lo_row_1->get_catalog( ).
      lv_connectioninvitationid = lo_row_1->get_id( ).
      lv_connectioninvitationarn = lo_row_1->get_arn( ).
      lv_connectionid = lo_row_1->get_connectionid( ).
      lv_connectiontype = lo_row_1->get_connectiontype( ).
      lv_datetime = lo_row_1->get_createdat( ).
      lv_datetime = lo_row_1->get_updatedat( ).
      lv_datetime = lo_row_1->get_expiresat( ).
      lv_participantidentifier = lo_row_1->get_otherparticidentifier( ).
      lv_participanttype = lo_row_1->get_participanttype( ).
      lv_invitationstatus = lo_row_1->get_status( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.