/AWS1/IF_BII=>GETPROCUREMENTPORTALPREF()¶
About GetProcurementPortalPreference¶
Retrieves the details of a specific procurement portal preference configuration.
Method Signature¶
METHODS /AWS1/IF_BII~GETPROCUREMENTPORTALPREF
IMPORTING
!IV_PROCUREMENTPORTALPREFARN TYPE /AWS1/BIIPROCUREMENTPORTALPR00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_biigetprocurementpo01
RAISING
/AWS1/CX_BIIACCESSDENIEDEX
/AWS1/CX_BIICONFLICTEXCEPTION
/AWS1/CX_BIIINTERNALSERVEREX
/AWS1/CX_BIIRESOURCENOTFOUNDEX
/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¶
Required arguments:¶
iv_procurementportalprefarn TYPE /AWS1/BIIPROCUREMENTPORTALPR00 /AWS1/BIIPROCUREMENTPORTALPR00¶
The Amazon Resource Name (ARN) of the procurement portal preference to retrieve.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_biigetprocurementpo01 /AWS1/CL_BIIGETPROCUREMENTPO01¶
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->getprocurementportalpref( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_procurementportalprefer = lo_result->get_procurementportalpref( ).
IF lo_procurementportalprefer IS NOT INITIAL.
lv_accountidstring = lo_procurementportalprefer->get_awsaccountid( ).
lv_procurementportalprefer_1 = lo_procurementportalprefer->get_procurementportalprefarn( ).
lv_procurementportalname = lo_procurementportalprefer->get_procurementportalname( ).
lv_buyerdomain = lo_procurementportalprefer->get_buyerdomain( ).
lv_basicstringwithoutspace = lo_procurementportalprefer->get_buyeridentifier( ).
lv_supplierdomain = lo_procurementportalprefer->get_supplierdomain( ).
lv_basicstringwithoutspace = lo_procurementportalprefer->get_supplieridentifier( ).
lo_procurementportalprefer_2 = lo_procurementportalprefer->get_selector( ).
IF lo_procurementportalprefer_2 IS NOT INITIAL.
LOOP AT lo_procurementportalprefer_2->get_invoiceunitarns( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_invoiceunitarnstring = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_procurementportalprefer_2->get_sellerofrecords( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_basicstringwithoutspace = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_basicstringwithoutspace = lo_procurementportalprefer->get_procurementportalshare00( ).
lv_basicstringwithoutspace = lo_procurementportalprefer->get_procurementportalinste00( ).
lv_basicstringwithoutspace = lo_procurementportalprefer->get_purchaseorderretrieval03( ).
lo_testenvpreference = lo_procurementportalprefer->get_testenvpreference( ).
IF lo_testenvpreference IS NOT INITIAL.
lv_buyerdomain = lo_testenvpreference->get_buyerdomain( ).
lv_basicstringwithoutspace = lo_testenvpreference->get_buyeridentifier( ).
lv_supplierdomain = lo_testenvpreference->get_supplierdomain( ).
lv_basicstringwithoutspace = lo_testenvpreference->get_supplieridentifier( ).
lv_basicstringwithoutspace = lo_testenvpreference->get_procurementportalshare00( ).
lv_basicstringwithoutspace = lo_testenvpreference->get_procurementportalinste00( ).
lv_basicstringwithoutspace = lo_testenvpreference->get_purchaseorderretrieval03( ).
ENDIF.
lv_boolean = lo_procurementportalprefer->get_einvoicedeliveryenabled( ).
lo_einvoicedeliveryprefere = lo_procurementportalprefer->get_einvoicedeliverypref( ).
IF lo_einvoicedeliveryprefere IS NOT INITIAL.
LOOP AT lo_einvoicedeliveryprefere->get_einvoicedeliverydoctypes( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_einvoicedeliverydocumen = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_einvoicedeliveryprefere->get_einvdlvryattachmenttypes( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_einvoicedeliveryattachm = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
lv_protocol = lo_einvoicedeliveryprefere->get_protocol( ).
LOOP AT lo_einvoicedeliveryprefere->get_purchaseorderdatasources( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_einvoicedeliverydocumen = lo_row_9->get_einvoicedeliverydoctype( ).
lv_purchaseorderdatasource = lo_row_9->get_purchaseorderdatasrctype( ).
ENDIF.
ENDLOOP.
lv_connectiontestingmethod = lo_einvoicedeliveryprefere->get_connectiontestingmethod( ).
lv_timestamp = lo_einvoicedeliveryprefere->get_einvoicedeliveryactdate( ).
ENDIF.
lv_boolean = lo_procurementportalprefer->get_purchaseorderretrieval00( ).
LOOP AT lo_procurementportalprefer->get_contacts( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_basicstring = lo_row_11->get_name( ).
lv_emailstring = lo_row_11->get_email( ).
ENDIF.
ENDLOOP.
lv_procurementportalprefer_3 = lo_procurementportalprefer->get_einvoicedlvryprefstatus( ).
lv_basicstring = lo_procurementportalprefer->get_einvdlvryprefstatreason( ).
lv_procurementportalprefer_3 = lo_procurementportalprefer->get_purchaseorderretrieval01( ).
lv_basicstring = lo_procurementportalprefer->get_purchaseorderretrieval02( ).
lv_long = lo_procurementportalprefer->get_version( ).
lv_timestamp = lo_procurementportalprefer->get_createdate( ).
lv_timestamp = lo_procurementportalprefer->get_lastupdatedate( ).
ENDIF.
ENDIF.
GetProcurementPortalPreference for Coupa pref¶
GetProcurementPortalPreference for Coupa pref
DATA(lo_result) = lo_client->getprocurementportalpref( |arn:aws:invoicing::111111111111:procurement-portal-preference/a34fd666-7810-4414-9360-aaa4bcab0abd| ).