/AWS1/IF_BII=>LISTPROCUREMENTPORTALS()¶
About ListProcurementPortals¶
Returns the Amazon Web Services-supported procurement portals for e-invoice delivery and purchase order retrieval. Each entry includes the portal identifier, name, and default feature configurations, which define the supported document and attachment types. For faster, more reliable responses, use pagination.
Method Signature¶
METHODS /AWS1/IF_BII~LISTPROCUREMENTPORTALS
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/BIIBASICSTRWITHOUTSPACE OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/BIIMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_biilistprocportalsrsp
RAISING
/AWS1/CX_BIIACCESSDENIEDEX
/AWS1/CX_BIIINTERNALSERVEREX
/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. Default is 100.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_biilistprocportalsrsp /AWS1/CL_BIILISTPROCPORTALSRSP¶
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->listprocurementportals(
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_procurementportals( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_procurementportalidstri = lo_row_1->get_portalidentifier( ).
lv_procurementportalname = lo_row_1->get_portalname( ).
lv_basicstring = lo_row_1->get_portaldisplayname( ).
lo_featureconfigurations = lo_row_1->get_defaultfeatureconfs( ).
IF lo_featureconfigurations IS NOT INITIAL.
lo_invoiceconfiguration = lo_featureconfigurations->get_invoiceconfiguration( ).
IF lo_invoiceconfiguration IS NOT INITIAL.
LOOP AT lo_invoiceconfiguration->get_documenttypes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_einvoicedeliverydocumen = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_invoiceconfiguration->get_attachmenttypes( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_einvoicedeliveryattachm = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
lv_basicstringwithoutspace = lo_result->get_nexttoken( ).
ENDIF.
ListProcurementPortals¶
ListProcurementPortals
DATA(lo_result) = lo_client->listprocurementportals( ).