@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultSupplierInvoiceIntegrationService") public class DefaultSupplierInvoiceIntegrationService extends Object implements SupplierInvoiceIntegrationService
This service enables you to create supplier invoices through an API call from a source system outside SAP S/4HANA. Furthermore, the service enables you to read, release, reverse, and delete existing supplier invoices from the SAP S/4HANA system. The service is based on the OData protocol and can be consumed in apps and other user interfaces. This service allows you to create multiple supplier invoices. The service supports a deep create of an invoice only, this means, all nodes can only be created as part of a deep create. Executing multiple deep creates as part of one changeset is not supported..
Reference: SAP API Business Hub
OData Service: | OP_API_SUPPLIERINVOICE_PROCESS_SRV |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Supplier Invoice |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultSupplierInvoiceIntegrationService()
Creates a service using
SupplierInvoiceIntegrationService.DEFAULT_SERVICE_PATH to send the requests. |
public DefaultSupplierInvoiceIntegrationService()
SupplierInvoiceIntegrationService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultSupplierInvoiceIntegrationService withServicePath(@Nonnull String servicePath)
SupplierInvoiceIntegrationService
withServicePath
in interface SupplierInvoiceIntegrationService
servicePath
- Service path that will override the default.@Nonnull public DefaultSupplierInvoiceIntegrationServiceBatch batch()
batch
in interface BatchService<SupplierInvoiceIntegrationServiceBatch>
@Nonnull public SuplrInvcHeaderWhldgTaxFluentHelper getAllSuplrInvcHeaderWhldgTax()
SupplierInvoiceIntegrationService
SuplrInvcHeaderWhldgTax
entities.getAllSuplrInvcHeaderWhldgTax
in interface SupplierInvoiceIntegrationService
SuplrInvcHeaderWhldgTax
entities. This fluent helper allows methods which modify the underlying query to
be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SuplrInvcHeaderWhldgTaxByKeyFluentHelper getSuplrInvcHeaderWhldgTaxByKey(String supplierInvoice, String fiscalYear, String withholdingTaxType)
SupplierInvoiceIntegrationService
SuplrInvcHeaderWhldgTax
entity using key fields.getSuplrInvcHeaderWhldgTaxByKey
in interface SupplierInvoiceIntegrationService
supplierInvoice
- Document Number of an Invoice Document
Constraints: Not nullable, Maximum length: 10
fiscalYear
- Fiscal Year
Constraints: Not nullable, Maximum length: 4
withholdingTaxType
- Indicator for Withholding Tax Type
Constraints: Not nullable, Maximum length: 2
SuplrInvcHeaderWhldgTax
entity using key fields. This fluent helper allows methods which modify the
underlying query to be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SuplrInvcItemAcctAssgmtFluentHelper getAllSuplrInvcItemAcctAssgmt()
SupplierInvoiceIntegrationService
SuplrInvcItemAcctAssgmt
entities.getAllSuplrInvcItemAcctAssgmt
in interface SupplierInvoiceIntegrationService
SuplrInvcItemAcctAssgmt
entities. This fluent helper allows methods which modify the underlying query to
be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SuplrInvcItemAcctAssgmtByKeyFluentHelper getSuplrInvcItemAcctAssgmtByKey(String supplierInvoice, String fiscalYear, String supplierInvoiceItem, String ordinalNumber)
SupplierInvoiceIntegrationService
SuplrInvcItemAcctAssgmt
entity using key fields.getSuplrInvcItemAcctAssgmtByKey
in interface SupplierInvoiceIntegrationService
supplierInvoice
- Accounting Document Number
Constraints: Not nullable, Maximum length: 10
fiscalYear
- Fiscal Year
Constraints: Not nullable, Maximum length: 4
supplierInvoiceItem
- Document Item in Invoice Document
Constraints: Not nullable, Maximum length: 6
ordinalNumber
- Four Character Sequential Number for Coding Block
Constraints: Not nullable, Maximum length: 4
SuplrInvcItemAcctAssgmt
entity using key fields. This fluent helper allows methods which modify the
underlying query to be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SuplrInvcItemPurOrdRefFluentHelper getAllSuplrInvcItemPurOrdRef()
SupplierInvoiceIntegrationService
SuplrInvcItemPurOrdRef
entities.getAllSuplrInvcItemPurOrdRef
in interface SupplierInvoiceIntegrationService
SuplrInvcItemPurOrdRef
entities. This fluent helper allows methods which modify the underlying query to
be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SuplrInvcItemPurOrdRefByKeyFluentHelper getSuplrInvcItemPurOrdRefByKey(String supplierInvoice, String fiscalYear, String supplierInvoiceItem)
SupplierInvoiceIntegrationService
SuplrInvcItemPurOrdRef
entity using key fields.getSuplrInvcItemPurOrdRefByKey
in interface SupplierInvoiceIntegrationService
supplierInvoice
- Accounting Document Number
Constraints: Not nullable, Maximum length: 10
fiscalYear
- Fiscal Year
Constraints: Not nullable, Maximum length: 4
supplierInvoiceItem
- Document Item in Invoice Document
Constraints: Not nullable, Maximum length: 6
SuplrInvcItemPurOrdRef
entity using key fields. This fluent helper allows methods which modify the
underlying query to be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SupplierInvoiceFluentHelper getAllSupplierInvoice()
SupplierInvoiceIntegrationService
SupplierInvoice
entities.getAllSupplierInvoice
in interface SupplierInvoiceIntegrationService
SupplierInvoice
entities. This fluent helper allows methods which modify the underlying query to be
called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SupplierInvoiceByKeyFluentHelper getSupplierInvoiceByKey(String supplierInvoice, String fiscalYear)
SupplierInvoiceIntegrationService
SupplierInvoice
entity using key fields.getSupplierInvoiceByKey
in interface SupplierInvoiceIntegrationService
supplierInvoice
- Document Number of an Invoice Document
Constraints: Not nullable, Maximum length: 10
fiscalYear
- Fiscal Year
Constraints: Not nullable, Maximum length: 4
SupplierInvoice
entity using key fields. This fluent helper allows methods which modify the underlying
query to be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SupplierInvoiceCreateFluentHelper createSupplierInvoice(@Nonnull SupplierInvoice supplierInvoice)
SupplierInvoiceIntegrationService
SupplierInvoice
entity and save it to the S/4HANA system.createSupplierInvoice
in interface SupplierInvoiceIntegrationService
supplierInvoice
- SupplierInvoice
entity object that will be created in the S/4HANA system.SupplierInvoice
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SupplierInvoiceDeleteFluentHelper deleteSupplierInvoice(@Nonnull SupplierInvoice supplierInvoice)
SupplierInvoiceIntegrationService
SupplierInvoice
entity in the S/4HANA system.deleteSupplierInvoice
in interface SupplierInvoiceIntegrationService
supplierInvoice
- SupplierInvoice
entity object that will be deleted in the S/4HANA system.SupplierInvoice
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SupplierInvoiceItemGLAcctFluentHelper getAllSupplierInvoiceItemGLAcct()
SupplierInvoiceIntegrationService
SupplierInvoiceItemGLAcct
entities.getAllSupplierInvoiceItemGLAcct
in interface SupplierInvoiceIntegrationService
SupplierInvoiceItemGLAcct
entities. This fluent helper allows methods which modify the underlying query
to be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SupplierInvoiceItemGLAcctByKeyFluentHelper getSupplierInvoiceItemGLAcctByKey(String supplierInvoice, String fiscalYear, String supplierInvoiceItem)
SupplierInvoiceIntegrationService
SupplierInvoiceItemGLAcct
entity using key fields.getSupplierInvoiceItemGLAcctByKey
in interface SupplierInvoiceIntegrationService
supplierInvoice
- Accounting Document Number
Constraints: Not nullable, Maximum length: 10
fiscalYear
- Fiscal Year
Constraints: Not nullable, Maximum length: 4
supplierInvoiceItem
- Four Character Sequential Number for Coding Block
Constraints: Not nullable, Maximum length: 4
SupplierInvoiceItemGLAcct
entity using key fields. This fluent helper allows methods which modify the
underlying query to be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SupplierInvoiceTaxFluentHelper getAllSupplierInvoiceTax()
SupplierInvoiceIntegrationService
SupplierInvoiceTax
entities.getAllSupplierInvoiceTax
in interface SupplierInvoiceIntegrationService
SupplierInvoiceTax
entities. This fluent helper allows methods which modify the underlying query to be
called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SupplierInvoiceTaxByKeyFluentHelper getSupplierInvoiceTaxByKey(String supplierInvoice, String fiscalYear, String taxCode, String supplierInvoiceTaxCounter)
SupplierInvoiceIntegrationService
SupplierInvoiceTax
entity using key fields.getSupplierInvoiceTaxByKey
in interface SupplierInvoiceIntegrationService
supplierInvoice
- Document Number of an Invoice Document
Constraints: Not nullable, Maximum length: 10
fiscalYear
- Fiscal Year
Constraints: Not nullable, Maximum length: 4
taxCode
- Tax code
Constraints: Not nullable, Maximum length: 2
supplierInvoiceTaxCounter
- Document Item in Invoice Document
Constraints: Not nullable, Maximum length: 6
SupplierInvoiceTax
entity using key fields. This fluent helper allows methods which modify the
underlying query to be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ReleaseFluentHelper release(Boolean discountDaysHaveToBeShifted, String fiscalYear, String supplierInvoice)
SupplierInvoiceIntegrationService
Creates a fluent helper for the Release OData function import.
release
in interface SupplierInvoiceIntegrationService
discountDaysHaveToBeShifted
- Constraints: none
Original parameter name from the Odata EDM: DiscountDaysHaveToBeShifted
fiscalYear
- Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
supplierInvoice
- Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: SupplierInvoice
execute
method on the fluent helper object.@Nonnull public CancelFluentHelper cancel(String supplierInvoice, String fiscalYear, String reversalReason, LocalDateTime postingDate)
SupplierInvoiceIntegrationService
Creates a fluent helper for the Cancel OData function import.
cancel
in interface SupplierInvoiceIntegrationService
supplierInvoice
- Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: SupplierInvoice
fiscalYear
- Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
reversalReason
- Constraints: Not nullable, Maximum length: 2
Original parameter name from the Odata EDM: ReversalReason
postingDate
- Constraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: PostingDate
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.