public interface PurchaseContractService extends BatchService<PurchaseContractServiceBatch>
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 |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_PATH
If no other path was provided via the
withServicePath(String) method, this is the default service path
used to access the endpoint. |
batch
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull PurchaseContractService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull PurchaseContractFluentHelper getAllPurchaseContract()
PurchaseContract
entities.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 PurchaseContractByKeyFluentHelper getPurchaseContractByKey(String purchaseContract)
PurchaseContract
entity using key fields.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 PurchaseContractCreateFluentHelper createPurchaseContract(@Nonnull PurchaseContract purchaseContract)
PurchaseContract
entity and save it to the S/4HANA system.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 PurchaseContractItemFluentHelper getAllPurchaseContractItem()
PurchaseContractItem
entities.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 PurchaseContractItemByKeyFluentHelper getPurchaseContractItemByKey(String purchaseContract, String purchaseContractItem)
PurchaseContractItem
entity using key fields.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 PurchaseContractItemCreateFluentHelper createPurchaseContractItem(@Nonnull PurchaseContractItem purchaseContractItem)
PurchaseContractItem
entity and save it to the S/4HANA system.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 PurContrItemConditionFluentHelper getAllPurContrItemCondition()
PurContrItemCondition
entities.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 PurContrItemConditionByKeyFluentHelper getPurContrItemConditionByKey(String purchaseContract, String purchaseContractItem, LocalDateTime conditionValidityEndDate, String conditionType, String conditionRecord, String conditionSequentialNumber)
PurContrItemCondition
entity using key fields.conditionSequentialNumber
- Sequential number of the condition
Constraints: Not nullable, Maximum length: 2
conditionValidityEndDate
- purchaseContract
- Purchasing Document Number
Constraints: Not nullable, Maximum length: 10
conditionType
- Condition Type
Constraints: Not nullable, Maximum length: 4
purchaseContractItem
- Item Number of Purchasing Document
Constraints: Not nullable, Maximum length: 5
conditionRecord
- Number of the Condition Record
Constraints: Not nullable, Maximum length: 10
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 PurCtrAccountFluentHelper getAllPurCtrAccount()
PurCtrAccount
entities.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 PurCtrAccountByKeyFluentHelper getPurCtrAccountByKey(String accountAssignment, String purchaseContractItem, String purchaseContract)
PurCtrAccount
entity using key fields.purchaseContract
- Purchasing Document Number
Constraints: Not nullable, Maximum length: 10
accountAssignment
- Sequential Number of Account Assignment
Constraints: Not nullable, Maximum length: 2
purchaseContractItem
- Item Number of Purchasing Document
Constraints: Not nullable, Maximum length: 5
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 PurCtrAddressFluentHelper getAllPurCtrAddress()
PurCtrAddress
entities.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 PurCtrAddressByKeyFluentHelper getPurCtrAddressByKey(String purchaseContract, String addressID, String purchaseContractItem)
PurCtrAddress
entity using key fields.purchaseContract
- Purchasing Contract Header
Constraints: Not nullable, Maximum length: 10
purchaseContractItem
- Item Number of Purchasing Contract
Constraints: Not nullable, Maximum length: 5
addressID
- Address Number
Constraints: Not nullable, Maximum length: 10
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 PurCtrPartnersFluentHelper getAllPurCtrPartners()
PurCtrPartners
entities.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 PurCtrPartnersByKeyFluentHelper getPurCtrPartnersByKey(String purchaseContract, String purchaseContractItem, String purchasingOrganization, String partnerFunction, String plant, String supplierSubrange, String partnerCounter)
PurCtrPartners
entity using key fields.partnerFunction
- Partner Function
Constraints: Not nullable, Maximum length: 2
purchaseContract
- Purchasing Document Number
Constraints: Not nullable, Maximum length: 10
plant
- Plant
Constraints: Not nullable, Maximum length: 4
purchasingOrganization
- Purchasing organization
Constraints: Not nullable, Maximum length: 4
partnerCounter
- Partner counter
Constraints: Not nullable, Maximum length: 3
purchaseContractItem
- Item Number of Purchasing Document
Constraints: Not nullable, Maximum length: 5
supplierSubrange
- Supplier Subrange
Constraints: Not nullable, Maximum length: 6
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 ValAddedSrvcMMFluentHelper getAllValAddedSrvcMM()
ValAddedSrvcMM
entities.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 ValAddedSrvcMMByKeyFluentHelper getValAddedSrvcMMByKey(String valAddedSrvcTransactionNumber, String valAddedSrvcItemGroup, String valAddedSrvcItemNumber, String valueAddedServiceType, String valueAddedSubServiceType)
ValAddedSrvcMM
entity using key fields.valueAddedServiceType
- VAS Service Types
Constraints: Not nullable, Maximum length: 2
valAddedSrvcItemNumber
- Item Number
Constraints: Not nullable, Maximum length: 5
valAddedSrvcTransactionNumber
- Transaction Number
Constraints: Not nullable, Maximum length: 10
valAddedSrvcItemGroup
- Item Group
Constraints: Not nullable, Maximum length: 5
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 ValAddedSrvcMMCreateFluentHelper createValAddedSrvcMM(@Nonnull ValAddedSrvcMM valAddedSrvcMM)
ValAddedSrvcMM
entity and save it to the S/4HANA system.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 ValAddedSrvcMMUpdateFluentHelper updateValAddedSrvcMM(@Nonnull ValAddedSrvcMM valAddedSrvcMM)
ValAddedSrvcMM
entity and save it to the S/4HANA system.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 ValAddedSrvcMMDeleteFluentHelper deleteValAddedSrvcMM(@Nonnull ValAddedSrvcMM valAddedSrvcMM)
ValAddedSrvcMM
entity in the S/4HANA system.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.