Skip to content

/AWS1/IF_BDC=>LISTPAYMENTSESSIONS()

About ListPaymentSessions

List payment sessions.

Method Signature

METHODS /AWS1/IF_BDC~LISTPAYMENTSESSIONS
  IMPORTING
    !IV_USERID TYPE /AWS1/BDCUSERID OPTIONAL
    !IV_AGENTNAME TYPE /AWS1/BDCPAYMENTAGENTNAME OPTIONAL
    !IV_PAYMENTMANAGERARN TYPE /AWS1/BDCPAYMENTMANAGERARN OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/BDCNEXTTOKEN OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/BDCINTEGER OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdclistpaymentsessrsp
  RAISING
    /AWS1/CX_BDCACCESSDENIEDEX
    /AWS1/CX_BDCINTERNALSERVEREX
    /AWS1/CX_BDCTHROTTLINGEX
    /AWS1/CX_BDCVALIDATIONEX
    /AWS1/CX_BDCCLIENTEXC
    /AWS1/CX_BDCSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_paymentmanagerarn TYPE /AWS1/BDCPAYMENTMANAGERARN /AWS1/BDCPAYMENTMANAGERARN

The ARN of the payment manager that owns the sessions.

Optional arguments:

iv_userid TYPE /AWS1/BDCUSERID /AWS1/BDCUSERID

The user ID associated with the payment sessions.

iv_agentname TYPE /AWS1/BDCPAYMENTAGENTNAME /AWS1/BDCPAYMENTAGENTNAME

The agent name associated with this request, used for observability.

iv_nexttoken TYPE /AWS1/BDCNEXTTOKEN /AWS1/BDCNEXTTOKEN

Token for pagination to retrieve the next set of results.

iv_maxresults TYPE /AWS1/BDCINTEGER /AWS1/BDCINTEGER

Maximum number of results to return in a single response.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdclistpaymentsessrsp /AWS1/CL_BDCLISTPAYMENTSESSRSP

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->listpaymentsessions(
  iv_agentname = |string|
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_paymentmanagerarn = |string|
  iv_userid = |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_paymentsessions( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_paymentsessionid = lo_row_1->get_paymentsessionid( ).
      lv_paymentmanagerarn = lo_row_1->get_paymentmanagerarn( ).
      lv_userid = lo_row_1->get_userid( ).
      lv_integer = lo_row_1->get_expirytimeinminutes( ).
      lv_datetimestamp = lo_row_1->get_createdat( ).
      lv_datetimestamp = lo_row_1->get_updatedat( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.