Skip to content

/AWS1/IF_BII=>LISTPROCUREMENTPORTALPREFS()

About ListProcurementPortalPreferences

Retrieves a list of procurement portal preferences associated with the Amazon Web Services account.

Method Signature

METHODS /AWS1/IF_BII~LISTPROCUREMENTPORTALPREFS
  IMPORTING
    !IV_NEXTTOKEN TYPE /AWS1/BIIBASICSTRWITHOUTSPACE OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/BIIMAXRESULTS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_biilstprocurementpo01
  RAISING
    /AWS1/CX_BIIACCESSDENIEDEX
    /AWS1/CX_BIICONFLICTEXCEPTION
    /AWS1/CX_BIIINTERNALSERVEREX
    /AWS1/CX_BIISERVICEQUOTAEXCDEX
    /AWS1/CX_BIITHROTTLINGEX
    /AWS1/CX_BIIVALIDATIONEX
    /AWS1/CX_BIICLIENTEXC
    /AWS1/CX_BIISERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_nexttoken TYPE /AWS1/BIIBASICSTRWITHOUTSPACE /AWS1/BIIBASICSTRWITHOUTSPACE

The token for the next set of results. (You received this token from a previous call.)

iv_maxresults TYPE /AWS1/BIIMAXRESULTS /AWS1/BIIMAXRESULTS

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

RETURNING

oo_output TYPE REF TO /aws1/cl_biilstprocurementpo01 /AWS1/CL_BIILSTPROCUREMENTPO01

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->listprocurementportalprefs(
  iv_maxresults = 123
  iv_nexttoken = |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_procurementportalprefs( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_accountidstring = lo_row_1->get_awsaccountid( ).
      lv_procurementportalprefer = lo_row_1->get_procurementportalprefarn( ).
      lv_procurementportalname = lo_row_1->get_procurementportalname( ).
      lv_buyerdomain = lo_row_1->get_buyerdomain( ).
      lv_basicstringwithoutspace = lo_row_1->get_buyeridentifier( ).
      lv_supplierdomain = lo_row_1->get_supplierdomain( ).
      lv_basicstringwithoutspace = lo_row_1->get_supplieridentifier( ).
      lo_procurementportalprefer_1 = lo_row_1->get_selector( ).
      IF lo_procurementportalprefer_1 IS NOT INITIAL.
        LOOP AT lo_procurementportalprefer_1->get_invoiceunitarns( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_invoiceunitarnstring = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_procurementportalprefer_1->get_sellerofrecords( ) into lo_row_4.
          lo_row_5 = lo_row_4.
          IF lo_row_5 IS NOT INITIAL.
            lv_basicstringwithoutspace = lo_row_5->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
      lv_boolean = lo_row_1->get_einvoicedeliveryenabled( ).
      lv_boolean = lo_row_1->get_purchaseorderretrieval00( ).
      lv_procurementportalprefer_2 = lo_row_1->get_einvoicedlvryprefstatus( ).
      lv_basicstring = lo_row_1->get_einvdlvryprefstatreason( ).
      lv_procurementportalprefer_2 = lo_row_1->get_purchaseorderretrieval01( ).
      lv_basicstring = lo_row_1->get_purchaseorderretrieval02( ).
      lv_long = lo_row_1->get_version( ).
      lv_timestamp = lo_row_1->get_createdate( ).
      lv_timestamp = lo_row_1->get_lastupdatedate( ).
    ENDIF.
  ENDLOOP.
  lv_basicstringwithoutspace = lo_result->get_nexttoken( ).
ENDIF.

ListProcurementPortalPreferences for Coupa prefs. First Call with following pages

ListProcurementPortalPreferences for Coupa prefs. First Call with following pages

DATA(lo_result) = lo_client->listprocurementportalprefs( iv_maxresults = 2 ) .

ListProcurementPortalPreferences for Coupa prefs. Second Call with the last page

ListProcurementPortalPreferences for Coupa prefs. Second Call with the last page

DATA(lo_result) = lo_client->listprocurementportalprefs(
  iv_maxresults = 2
  iv_nexttoken = |AAQA-EFRSURBSGpkVFU5MVNUVWNXTzNoUEptWEFGcEt0QzBBeHZaZmRUU2w3L0hRQmdDeEx3R0NuSnF2NjM5NGNmM1I5KzNIQzNnT0FBQUFmakI4QmdrcWhraUc5dzBCQndhZ2J6QnRBZ0VBTUdnR0NTcUdTSWIzRFFFSEFUQWVCZ2xnaGtnQlpRTUVBUzR3RVFRTVhPSnhEQ04rWk1idnAyb1RBZ0VRZ0RzbFJBeFlXMk9RRGFtTU8vdFc0MUJlTFFNU2hPR1E5bDM3MHcyS05mSjIzbU93MG1aVXk1MzBiWWVsZ3FaZzhjMndhTjZtNzNYTWd3bnpsZz09E8JRNUKK1r2-b9X8Qd1RAOSKHZOCy-UCpOQjJdSfZHcUefTH0YmlIW8ykllegYUWB1D1NjDjC3u2z2e4cLBTmQhrQewSBW-I_i8okXup9RWN60eMOnB6dl5jUiinJ-FjY_jGjbOkiWuJhXteDKP16RfVRW7mxp2-v1-B8gPPxGLolXHBHrb8gt18P8eWs8RcvRRmmbGUy5qa6nFH5WiCq9Bx2fTUTy9Iz_xZooNuiqC6y119EGQqJ9WsWsIUa8MbWHFXtn9-Uriz7osYocbFm1Evv_NCn3YK-wFy9rUlUskcM2n9AqvPYhOyf0reV7E8cErZFR_Ev8l008QcxQfaqK19-gKR9clddwoDzMVfVuyiW3vbzUXz7fzQLr-UMLCGdE3yHf1oz2SEbcxhHZ2eh7-9wEYDv0v92wXg7m7xaYvaKuVBPKqBaq66GdpS1HTfakkjRGvsoBStXWVgPahISglPO__-Ym5NnXOw2wENBVXZ7RsVe6nJ1X15bB1RDkqLV8xJD0L83snuCEBtM9pyUUQOPvfGHzC4yRusMgBav_y1kq0wjqsbJV5EhHV_SIwf-WZa_A==|
).