@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultPurchaseContractService") public class DefaultPurchaseContractService extends Object implements PurchaseContractService
This service enables you to create Purchase Contracts through an API call from a source system outside SAP S/4HANA Cloud or SAP S/4HANA on- Premise. Furthermore, the service enables you to read, update and delete existing Purchase Contract data from the SAP S/4HANA Cloud or SAP S/4HANA on- Premise system.
Reference: SAP API Business Hub
OData Service: | API_PURCHASECONTRACT_PROCESS_SRV |
API Version: | 1 |
Communication Scenario: | Purchase Contract Integration (SAP_COM_0101) |
Scope Items: | Purchase Contract (BMD), Consumable Purchasing (BNX), Service and Material Procurement - Project-Based Services (J13), Procurement of Direct Materials (J45) |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultPurchaseContractService()
Creates a service using
PurchaseContractService.DEFAULT_SERVICE_PATH to send the requests. |
public DefaultPurchaseContractService()
PurchaseContractService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultPurchaseContractService withServicePath(@Nonnull String servicePath)
PurchaseContractService
withServicePath
in interface PurchaseContractService
servicePath
- Service path that will override the default.@Nonnull public PurCtrAccountFluentHelper getAllPurCtrAccount()
PurchaseContractService
PurCtrAccount
entities.getAllPurCtrAccount
in interface PurchaseContractService
PurCtrAccount
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 PurCtrAccountByKeyFluentHelper getPurCtrAccountByKey(String accountAssignment, String purchaseContractItem, String purchaseContract)
PurchaseContractService
PurCtrAccount
entity using key fields.getPurCtrAccountByKey
in interface PurchaseContractService
accountAssignment
- Sequential Number of Account Assignment
Constraints: Not nullable, Maximum length: 2
purchaseContractItem
- Item Number of Purchasing Document
Constraints: Not nullable, Maximum length: 5
purchaseContract
- Purchasing Document Number
Constraints: Not nullable, Maximum length: 10
PurCtrAccount
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 PurCtrAccountCreateFluentHelper createPurCtrAccount(@Nonnull PurCtrAccount purCtrAccount)
PurchaseContractService
PurCtrAccount
entity and save it to the S/4HANA system.createPurCtrAccount
in interface PurchaseContractService
purCtrAccount
- PurCtrAccount
entity object that will be created in the S/4HANA system.PurCtrAccount
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurCtrAccountUpdateFluentHelper updatePurCtrAccount(@Nonnull PurCtrAccount purCtrAccount)
PurchaseContractService
PurCtrAccount
entity and save it to the S/4HANA system.updatePurCtrAccount
in interface PurchaseContractService
purCtrAccount
- PurCtrAccount
entity object that will be updated in the S/4HANA system.PurCtrAccount
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurCtrAccountDeleteFluentHelper deletePurCtrAccount(@Nonnull PurCtrAccount purCtrAccount)
PurchaseContractService
PurCtrAccount
entity in the S/4HANA system.deletePurCtrAccount
in interface PurchaseContractService
purCtrAccount
- PurCtrAccount
entity object that will be deleted in the S/4HANA system.PurCtrAccount
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurCtrAddressFluentHelper getAllPurCtrAddress()
PurchaseContractService
PurCtrAddress
entities.getAllPurCtrAddress
in interface PurchaseContractService
PurCtrAddress
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 PurCtrAddressByKeyFluentHelper getPurCtrAddressByKey(String purchaseContract, String addressID, String purchaseContractItem)
PurchaseContractService
PurCtrAddress
entity using key fields.getPurCtrAddressByKey
in interface PurchaseContractService
purchaseContract
- Purchasing Contract Header
Constraints: Not nullable, Maximum length: 10
addressID
- Address number
Constraints: Not nullable, Maximum length: 10
purchaseContractItem
- Item Number of Purchasing Contract
Constraints: Not nullable, Maximum length: 5
PurCtrAddress
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 PurCtrAddressCreateFluentHelper createPurCtrAddress(@Nonnull PurCtrAddress purCtrAddress)
PurchaseContractService
PurCtrAddress
entity and save it to the S/4HANA system.createPurCtrAddress
in interface PurchaseContractService
purCtrAddress
- PurCtrAddress
entity object that will be created in the S/4HANA system.PurCtrAddress
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurCtrAddressUpdateFluentHelper updatePurCtrAddress(@Nonnull PurCtrAddress purCtrAddress)
PurchaseContractService
PurCtrAddress
entity and save it to the S/4HANA system.updatePurCtrAddress
in interface PurchaseContractService
purCtrAddress
- PurCtrAddress
entity object that will be updated in the S/4HANA system.PurCtrAddress
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurCtrAddressDeleteFluentHelper deletePurCtrAddress(@Nonnull PurCtrAddress purCtrAddress)
PurchaseContractService
PurCtrAddress
entity in the S/4HANA system.deletePurCtrAddress
in interface PurchaseContractService
purCtrAddress
- PurCtrAddress
entity object that will be deleted in the S/4HANA system.PurCtrAddress
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurCtrPartnersFluentHelper getAllPurCtrPartners()
PurchaseContractService
PurCtrPartners
entities.getAllPurCtrPartners
in interface PurchaseContractService
PurCtrPartners
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 PurCtrPartnersByKeyFluentHelper getPurCtrPartnersByKey(String purchaseContract, String purchaseContractItem, String purchasingOrganization, String partnerFunction, String plant, String supplierSubrange, String partnerCounter)
PurchaseContractService
PurCtrPartners
entity using key fields.getPurCtrPartnersByKey
in interface PurchaseContractService
purchaseContract
- Purchasing Document Number
Constraints: Not nullable, Maximum length: 10
purchaseContractItem
- Item Number of Purchasing Document
Constraints: Not nullable, Maximum length: 5
purchasingOrganization
- Purchasing Organization
Constraints: Not nullable, Maximum length: 4
partnerFunction
- Partner Function
Constraints: Not nullable, Maximum length: 2
plant
- Plant
Constraints: Not nullable, Maximum length: 4
supplierSubrange
- Supplier Subrange
Constraints: Not nullable, Maximum length: 6
partnerCounter
- Partner counter
Constraints: Not nullable, Maximum length: 3
PurCtrPartners
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 PurCtrPartnersCreateFluentHelper createPurCtrPartners(@Nonnull PurCtrPartners purCtrPartners)
PurchaseContractService
PurCtrPartners
entity and save it to the S/4HANA system.createPurCtrPartners
in interface PurchaseContractService
purCtrPartners
- PurCtrPartners
entity object that will be created in the S/4HANA system.PurCtrPartners
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurCtrPartnersUpdateFluentHelper updatePurCtrPartners(@Nonnull PurCtrPartners purCtrPartners)
PurchaseContractService
PurCtrPartners
entity and save it to the S/4HANA system.updatePurCtrPartners
in interface PurchaseContractService
purCtrPartners
- PurCtrPartners
entity object that will be updated in the S/4HANA system.PurCtrPartners
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurCtrPartnersDeleteFluentHelper deletePurCtrPartners(@Nonnull PurCtrPartners purCtrPartners)
PurchaseContractService
PurCtrPartners
entity in the S/4HANA system.deletePurCtrPartners
in interface PurchaseContractService
purCtrPartners
- PurCtrPartners
entity object that will be deleted in the S/4HANA system.PurCtrPartners
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseContractFluentHelper getAllPurchaseContract()
PurchaseContractService
PurchaseContract
entities.getAllPurchaseContract
in interface PurchaseContractService
PurchaseContract
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 PurchaseContractByKeyFluentHelper getPurchaseContractByKey(String purchaseContract)
PurchaseContractService
PurchaseContract
entity using key fields.getPurchaseContractByKey
in interface PurchaseContractService
purchaseContract
- Purchasing Contract Header
Constraints: Not nullable, Maximum length: 10
PurchaseContract
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 PurchaseContractCreateFluentHelper createPurchaseContract(@Nonnull PurchaseContract purchaseContract)
PurchaseContractService
PurchaseContract
entity and save it to the S/4HANA system.createPurchaseContract
in interface PurchaseContractService
purchaseContract
- PurchaseContract
entity object that will be created in the S/4HANA system.PurchaseContract
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseContractUpdateFluentHelper updatePurchaseContract(@Nonnull PurchaseContract purchaseContract)
PurchaseContractService
PurchaseContract
entity and save it to the S/4HANA system.updatePurchaseContract
in interface PurchaseContractService
purchaseContract
- PurchaseContract
entity object that will be updated in the S/4HANA system.PurchaseContract
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseContractDeleteFluentHelper deletePurchaseContract(@Nonnull PurchaseContract purchaseContract)
PurchaseContractService
PurchaseContract
entity in the S/4HANA system.deletePurchaseContract
in interface PurchaseContractService
purchaseContract
- PurchaseContract
entity object that will be deleted in the S/4HANA system.PurchaseContract
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseContractItemFluentHelper getAllPurchaseContractItem()
PurchaseContractService
PurchaseContractItem
entities.getAllPurchaseContractItem
in interface PurchaseContractService
PurchaseContractItem
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 PurchaseContractItemByKeyFluentHelper getPurchaseContractItemByKey(String purchaseContract, String purchaseContractItem)
PurchaseContractService
PurchaseContractItem
entity using key fields.getPurchaseContractItemByKey
in interface PurchaseContractService
purchaseContract
- Purchasing Contract Header
Constraints: Not nullable, Maximum length: 10
purchaseContractItem
- Item Number of Purchasing Contract
Constraints: Not nullable, Maximum length: 5
PurchaseContractItem
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 PurchaseContractItemCreateFluentHelper createPurchaseContractItem(@Nonnull PurchaseContractItem purchaseContractItem)
PurchaseContractService
PurchaseContractItem
entity and save it to the S/4HANA system.createPurchaseContractItem
in interface PurchaseContractService
purchaseContractItem
- PurchaseContractItem
entity object that will be created in the S/4HANA system.PurchaseContractItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseContractItemUpdateFluentHelper updatePurchaseContractItem(@Nonnull PurchaseContractItem purchaseContractItem)
PurchaseContractService
PurchaseContractItem
entity and save it to the S/4HANA system.updatePurchaseContractItem
in interface PurchaseContractService
purchaseContractItem
- PurchaseContractItem
entity object that will be updated in the S/4HANA system.PurchaseContractItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseContractItemDeleteFluentHelper deletePurchaseContractItem(@Nonnull PurchaseContractItem purchaseContractItem)
PurchaseContractService
PurchaseContractItem
entity in the S/4HANA system.deletePurchaseContractItem
in interface PurchaseContractService
purchaseContractItem
- PurchaseContractItem
entity object that will be deleted in the S/4HANA system.PurchaseContractItem
entity. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2018 SAP SE. All rights reserved.