@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultSalesContractService") public class DefaultSalesContractService extends Object implements SalesContractService
The service contains header and item entities, as well as their sub-entities for partners and pricing elements. Once the sales contract has been created, the sales contract number is sent in the response with the data included in the sales contract. If there are any issues when creating, retrieving, updating, or deleting the sales contract, the system displays error messages in the response.
Reference: SAP API Business Hub
OData Service: | API_SALES_CONTRACT_SRV |
API Version: | 1 |
Communication Scenario: | Sales Contract Integration (SAP_COM_0119) |
Scope Items: | Sales Contract Management (I9I) |
Authentication Methods: | Basic, x509 |
Business Object: | SalesContract |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultSalesContractService()
Creates a service using
SalesContractService.DEFAULT_SERVICE_PATH to send the requests. |
public DefaultSalesContractService()
SalesContractService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultSalesContractService withServicePath(@Nonnull String servicePath)
SalesContractService
withServicePath
in interface SalesContractService
servicePath
- Service path that will override the default.@Nonnull public DefaultSalesContractServiceBatch batch()
batch
in interface BatchService<SalesContractServiceBatch>
@Nonnull public SalesContractFluentHelper getAllSalesContract()
SalesContractService
SalesContract
entities.getAllSalesContract
in interface SalesContractService
SalesContract
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 SalesContractByKeyFluentHelper getSalesContractByKey(String salesContract)
SalesContractService
SalesContract
entity using key fields.getSalesContractByKey
in interface SalesContractService
salesContract
- Sales Contract
Constraints: Not nullable, Maximum length: 10
SalesContract
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 SalesContractCreateFluentHelper createSalesContract(@Nonnull SalesContract salesContract)
SalesContractService
SalesContract
entity and save it to the S/4HANA system.createSalesContract
in interface SalesContractService
salesContract
- SalesContract
entity object that will be created in the S/4HANA system.SalesContract
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractUpdateFluentHelper updateSalesContract(@Nonnull SalesContract salesContract)
SalesContractService
SalesContract
entity and save it to the S/4HANA system.updateSalesContract
in interface SalesContractService
salesContract
- SalesContract
entity object that will be updated in the S/4HANA system.SalesContract
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractDeleteFluentHelper deleteSalesContract(@Nonnull SalesContract salesContract)
SalesContractService
SalesContract
entity in the S/4HANA system.deleteSalesContract
in interface SalesContractService
salesContract
- SalesContract
entity object that will be deleted in the S/4HANA system.SalesContract
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractItemFluentHelper getAllSalesContractItem()
SalesContractService
SalesContractItem
entities.getAllSalesContractItem
in interface SalesContractService
SalesContractItem
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 SalesContractItemByKeyFluentHelper getSalesContractItemByKey(String salesContract, String salesContractItem)
SalesContractService
SalesContractItem
entity using key fields.getSalesContractItemByKey
in interface SalesContractService
salesContract
- Sales Contract
Constraints: Not nullable, Maximum length: 10
salesContractItem
- Sales Contract Item
Constraints: Not nullable, Maximum length: 6
SalesContractItem
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 SalesContractItemCreateFluentHelper createSalesContractItem(@Nonnull SalesContractItem salesContractItem)
SalesContractService
SalesContractItem
entity and save it to the S/4HANA system.createSalesContractItem
in interface SalesContractService
salesContractItem
- SalesContractItem
entity object that will be created in the S/4HANA system.SalesContractItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractItemUpdateFluentHelper updateSalesContractItem(@Nonnull SalesContractItem salesContractItem)
SalesContractService
SalesContractItem
entity and save it to the S/4HANA system.updateSalesContractItem
in interface SalesContractService
salesContractItem
- SalesContractItem
entity object that will be updated in the S/4HANA system.SalesContractItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractItemDeleteFluentHelper deleteSalesContractItem(@Nonnull SalesContractItem salesContractItem)
SalesContractService
SalesContractItem
entity in the S/4HANA system.deleteSalesContractItem
in interface SalesContractService
salesContractItem
- SalesContractItem
entity object that will be deleted in the S/4HANA system.SalesContractItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractItemPartnerFluentHelper getAllSalesContractItemPartner()
SalesContractService
SalesContractItemPartner
entities.getAllSalesContractItemPartner
in interface SalesContractService
SalesContractItemPartner
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 SalesContractItemPartnerByKeyFluentHelper getSalesContractItemPartnerByKey(String salesContract, String salesContractItem, String partnerFunction)
SalesContractService
SalesContractItemPartner
entity using key fields.getSalesContractItemPartnerByKey
in interface SalesContractService
salesContract
- The number that uniquely identifies the sales, delivery, or billing document.
Constraints: Not nullable, Maximum length: 10
salesContractItem
- The number that uniquely identifies the item in the sales, shipping, or billing document.
Constraints: Not nullable, Maximum length: 6
partnerFunction
- The abbreviated form of the name that identifies the partner function.
Constraints: Not nullable, Maximum length: 2
SalesContractItemPartner
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 SalesContractItemPartnerUpdateFluentHelper updateSalesContractItemPartner(@Nonnull SalesContractItemPartner salesContractItemPartner)
SalesContractService
SalesContractItemPartner
entity and save it to the S/4HANA system.updateSalesContractItemPartner
in interface SalesContractService
salesContractItemPartner
- SalesContractItemPartner
entity object that will be updated in the S/4HANA system.SalesContractItemPartner
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractItemPartnerDeleteFluentHelper deleteSalesContractItemPartner(@Nonnull SalesContractItemPartner salesContractItemPartner)
SalesContractService
SalesContractItemPartner
entity in the S/4HANA system.deleteSalesContractItemPartner
in interface SalesContractService
salesContractItemPartner
- SalesContractItemPartner
entity object that will be deleted in the S/4HANA system.SalesContractItemPartner
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractItemPrcgElmntFluentHelper getAllSalesContractItemPrcgElmnt()
SalesContractService
SalesContractItemPrcgElmnt
entities.getAllSalesContractItemPrcgElmnt
in interface SalesContractService
SalesContractItemPrcgElmnt
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 SalesContractItemPrcgElmntByKeyFluentHelper getSalesContractItemPrcgElmntByKey(String salesContract, String salesContractItem, String pricingProcedureStep, String pricingProcedureCounter)
SalesContractService
SalesContractItemPrcgElmnt
entity using key fields.getSalesContractItemPrcgElmntByKey
in interface SalesContractService
salesContract
- The number that uniquely identifies the sales document.
Constraints: Not nullable, Maximum length: 10
salesContractItem
- The number that uniquely identifies the condition item.
Constraints: Not nullable, Maximum length: 6
pricingProcedureStep
- Number that determines the sequence of the condition within a procedure.
Constraints: Not nullable, Maximum length: 3
pricingProcedureCounter
- Access number of the conditions within a step in the pricing procedure.
Constraints: Not nullable, Maximum length: 3
SalesContractItemPrcgElmnt
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 SalesContractItemPrcgElmntUpdateFluentHelper updateSalesContractItemPrcgElmnt(@Nonnull SalesContractItemPrcgElmnt salesContractItemPrcgElmnt)
SalesContractService
SalesContractItemPrcgElmnt
entity and save it to the S/4HANA system.updateSalesContractItemPrcgElmnt
in interface SalesContractService
salesContractItemPrcgElmnt
- SalesContractItemPrcgElmnt
entity object that will be updated in the S/4HANA system.SalesContractItemPrcgElmnt
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractItemPrcgElmntDeleteFluentHelper deleteSalesContractItemPrcgElmnt(@Nonnull SalesContractItemPrcgElmnt salesContractItemPrcgElmnt)
SalesContractService
SalesContractItemPrcgElmnt
entity in the S/4HANA system.deleteSalesContractItemPrcgElmnt
in interface SalesContractService
salesContractItemPrcgElmnt
- SalesContractItemPrcgElmnt
entity object that will be deleted in the S/4HANA system.SalesContractItemPrcgElmnt
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractPartnerFluentHelper getAllSalesContractPartner()
SalesContractService
SalesContractPartner
entities.getAllSalesContractPartner
in interface SalesContractService
SalesContractPartner
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 SalesContractPartnerByKeyFluentHelper getSalesContractPartnerByKey(String salesContract, String partnerFunction)
SalesContractService
SalesContractPartner
entity using key fields.getSalesContractPartnerByKey
in interface SalesContractService
salesContract
- Sales Order
Constraints: Not nullable, Maximum length: 10
partnerFunction
- The abbreviated form of the name that identifies the partner function.
Constraints: Not nullable, Maximum length: 2
SalesContractPartner
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 SalesContractPartnerUpdateFluentHelper updateSalesContractPartner(@Nonnull SalesContractPartner salesContractPartner)
SalesContractService
SalesContractPartner
entity and save it to the S/4HANA system.updateSalesContractPartner
in interface SalesContractService
salesContractPartner
- SalesContractPartner
entity object that will be updated in the S/4HANA system.SalesContractPartner
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractPartnerDeleteFluentHelper deleteSalesContractPartner(@Nonnull SalesContractPartner salesContractPartner)
SalesContractService
SalesContractPartner
entity in the S/4HANA system.deleteSalesContractPartner
in interface SalesContractService
salesContractPartner
- SalesContractPartner
entity object that will be deleted in the S/4HANA system.SalesContractPartner
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractPrcgElmntFluentHelper getAllSalesContractPrcgElmnt()
SalesContractService
SalesContractPrcgElmnt
entities.getAllSalesContractPrcgElmnt
in interface SalesContractService
SalesContractPrcgElmnt
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 SalesContractPrcgElmntByKeyFluentHelper getSalesContractPrcgElmntByKey(String salesContract, String pricingProcedureStep, String pricingProcedureCounter)
SalesContractService
SalesContractPrcgElmnt
entity using key fields.getSalesContractPrcgElmntByKey
in interface SalesContractService
salesContract
- The number that uniquely identifies the sales document.
Constraints: Not nullable, Maximum length: 10
pricingProcedureStep
- Number that determines the sequence of the condition within a procedure.
Constraints: Not nullable, Maximum length: 3
pricingProcedureCounter
- Access number of the conditions within a step in the pricing procedure.
Constraints: Not nullable, Maximum length: 3
SalesContractPrcgElmnt
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 SalesContractPrcgElmntUpdateFluentHelper updateSalesContractPrcgElmnt(@Nonnull SalesContractPrcgElmnt salesContractPrcgElmnt)
SalesContractService
SalesContractPrcgElmnt
entity and save it to the S/4HANA system.updateSalesContractPrcgElmnt
in interface SalesContractService
salesContractPrcgElmnt
- SalesContractPrcgElmnt
entity object that will be updated in the S/4HANA system.SalesContractPrcgElmnt
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesContractPrcgElmntDeleteFluentHelper deleteSalesContractPrcgElmnt(@Nonnull SalesContractPrcgElmnt salesContractPrcgElmnt)
SalesContractService
SalesContractPrcgElmnt
entity in the S/4HANA system.deleteSalesContractPrcgElmnt
in interface SalesContractService
salesContractPrcgElmnt
- SalesContractPrcgElmnt
entity object that will be deleted in the S/4HANA system.SalesContractPrcgElmnt
entity. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2019 SAP SE. All rights reserved.