@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultPurchaseContractService") public class DefaultPurchaseContractService extends Object implements PurchaseContractService
This service is based on the OData protocol. It enables you to read, create, and update purchase contracts through an API call from a source system outside SAP S/4HANA. The service contains header, item, item conditions, account assignment, address, and partner nodes. Note: Certain elements and entities can only be used if you activate thebusiness function ISR_RETAILSYSTEM. For more information, see Business Documentation..
Reference: SAP API Business Hub
OData Service: | OP_API_PURCHASECONTRACT_PROCESS_SRV |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Purchase Contract |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultPurchaseContractService()
Creates a service using
PurchaseContractService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultPurchaseContractServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
PurchaseContractCreateFluentHelper |
createPurchaseContract(PurchaseContract purchaseContract)
Create a new
PurchaseContract entity and save it to the S/4HANA system. |
PurchaseContractItemCreateFluentHelper |
createPurchaseContractItem(PurchaseContractItem purchaseContractItem)
Create a new
PurchaseContractItem entity and save it to the S/4HANA system. |
ValAddedSrvcMMCreateFluentHelper |
createValAddedSrvcMM(ValAddedSrvcMM valAddedSrvcMM)
Create a new
ValAddedSrvcMM entity and save it to the S/4HANA system. |
ValAddedSrvcMMDeleteFluentHelper |
deleteValAddedSrvcMM(ValAddedSrvcMM valAddedSrvcMM)
Deletes an existing
ValAddedSrvcMM entity in the S/4HANA system. |
PurchaseContractFluentHelper |
getAllPurchaseContract()
Fetch multiple
PurchaseContract entities. |
PurchaseContractItemFluentHelper |
getAllPurchaseContractItem()
Fetch multiple
PurchaseContractItem entities. |
PurContrItemConditionFluentHelper |
getAllPurContrItemCondition()
Fetch multiple
PurContrItemCondition entities. |
PurCtrAccountFluentHelper |
getAllPurCtrAccount()
Fetch multiple
PurCtrAccount entities. |
PurCtrAddressFluentHelper |
getAllPurCtrAddress()
Fetch multiple
PurCtrAddress entities. |
PurCtrPartnersFluentHelper |
getAllPurCtrPartners()
Fetch multiple
PurCtrPartners entities. |
ValAddedSrvcMMFluentHelper |
getAllValAddedSrvcMM()
Fetch multiple
ValAddedSrvcMM entities. |
PurchaseContractByKeyFluentHelper |
getPurchaseContractByKey(String purchaseContract)
Fetch a single
PurchaseContract entity using key fields. |
PurchaseContractItemByKeyFluentHelper |
getPurchaseContractItemByKey(String purchaseContract,
String purchaseContractItem)
Fetch a single
PurchaseContractItem entity using key fields. |
PurContrItemConditionByKeyFluentHelper |
getPurContrItemConditionByKey(String purchaseContract,
String purchaseContractItem,
LocalDateTime conditionValidityEndDate,
String conditionType,
String conditionRecord,
String conditionSequentialNumber)
Fetch a single
PurContrItemCondition entity using key fields. |
PurCtrAccountByKeyFluentHelper |
getPurCtrAccountByKey(String accountAssignment,
String purchaseContractItem,
String purchaseContract)
Fetch a single
PurCtrAccount entity using key fields. |
PurCtrAddressByKeyFluentHelper |
getPurCtrAddressByKey(String purchaseContract,
String addressID,
String purchaseContractItem)
Fetch a single
PurCtrAddress entity using key fields. |
PurCtrPartnersByKeyFluentHelper |
getPurCtrPartnersByKey(String purchaseContract,
String purchaseContractItem,
String purchasingOrganization,
String partnerFunction,
String plant,
String supplierSubrange,
String partnerCounter)
Fetch a single
PurCtrPartners entity using key fields. |
ValAddedSrvcMMByKeyFluentHelper |
getValAddedSrvcMMByKey(String valAddedSrvcTransactionNumber,
String valAddedSrvcItemGroup,
String valAddedSrvcItemNumber,
String valueAddedServiceType,
String valueAddedSubServiceType)
Fetch a single
ValAddedSrvcMM entity using key fields. |
ValAddedSrvcMMUpdateFluentHelper |
updateValAddedSrvcMM(ValAddedSrvcMM valAddedSrvcMM)
Update an existing
ValAddedSrvcMM entity and save it to the S/4HANA system. |
DefaultPurchaseContractService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
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 DefaultPurchaseContractServiceBatch batch()
batch
in interface BatchService<PurchaseContractServiceBatch>
@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 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 PurContrItemConditionFluentHelper getAllPurContrItemCondition()
PurchaseContractService
PurContrItemCondition
entities.getAllPurContrItemCondition
in interface PurchaseContractService
PurContrItemCondition
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 PurContrItemConditionByKeyFluentHelper getPurContrItemConditionByKey(String purchaseContract, String purchaseContractItem, LocalDateTime conditionValidityEndDate, String conditionType, String conditionRecord, String conditionSequentialNumber)
PurchaseContractService
PurContrItemCondition
entity using key fields.getPurContrItemConditionByKey
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
conditionType
- Condition Type
Constraints: Not nullable, Maximum length: 4
conditionRecord
- Number of the Condition Record
Constraints: Not nullable, Maximum length: 10
conditionSequentialNumber
- Sequential number of the condition
Constraints: Not nullable, Maximum length: 2
PurContrItemCondition
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 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 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 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 ValAddedSrvcMMFluentHelper getAllValAddedSrvcMM()
PurchaseContractService
ValAddedSrvcMM
entities.getAllValAddedSrvcMM
in interface PurchaseContractService
ValAddedSrvcMM
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 ValAddedSrvcMMByKeyFluentHelper getValAddedSrvcMMByKey(String valAddedSrvcTransactionNumber, String valAddedSrvcItemGroup, String valAddedSrvcItemNumber, String valueAddedServiceType, String valueAddedSubServiceType)
PurchaseContractService
ValAddedSrvcMM
entity using key fields.getValAddedSrvcMMByKey
in interface PurchaseContractService
valAddedSrvcTransactionNumber
- Transaction Number
Constraints: Not nullable, Maximum length: 10
valAddedSrvcItemGroup
- Item Group
Constraints: Not nullable, Maximum length: 5
valAddedSrvcItemNumber
- Item Number
Constraints: Not nullable, Maximum length: 5
valueAddedServiceType
- VAS Service Types
Constraints: Not nullable, Maximum length: 2
valueAddedSubServiceType
- VAS Sub Services
Constraints: Not nullable, Maximum length: 5
ValAddedSrvcMM
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 ValAddedSrvcMMCreateFluentHelper createValAddedSrvcMM(@Nonnull ValAddedSrvcMM valAddedSrvcMM)
PurchaseContractService
ValAddedSrvcMM
entity and save it to the S/4HANA system.createValAddedSrvcMM
in interface PurchaseContractService
valAddedSrvcMM
- ValAddedSrvcMM
entity object that will be created in the S/4HANA system.ValAddedSrvcMM
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ValAddedSrvcMMUpdateFluentHelper updateValAddedSrvcMM(@Nonnull ValAddedSrvcMM valAddedSrvcMM)
PurchaseContractService
ValAddedSrvcMM
entity and save it to the S/4HANA system.updateValAddedSrvcMM
in interface PurchaseContractService
valAddedSrvcMM
- ValAddedSrvcMM
entity object that will be updated in the S/4HANA system.ValAddedSrvcMM
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ValAddedSrvcMMDeleteFluentHelper deleteValAddedSrvcMM(@Nonnull ValAddedSrvcMM valAddedSrvcMM)
PurchaseContractService
ValAddedSrvcMM
entity in the S/4HANA system.deleteValAddedSrvcMM
in interface PurchaseContractService
valAddedSrvcMM
- ValAddedSrvcMM
entity object that will be deleted in the S/4HANA system.ValAddedSrvcMM
entity. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.