@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultSalesContractService") public class DefaultSalesContractService extends Object implements SalesContractService
You can use this service to integrate external applications with sales contract processing in SAP S/4HANA Cloud. In every API call, you can make use of the following operations: - You can retrieve sales contracts. Apply any of the filters provided or retrieve all existing data. - You can create sales contracts. Note that you must use “deep insert” requests (a header plus the following entities: header partner, header pricing element, item, item partner, and item pricing element). You cannot create entities without including any related entities. - For existing sales contracts, you can create new items. Note that you must use “deep insert” requests (with the following entities: item partner and item pricing element). You cannot create entities without including any related entities. - For existing sales contracts, you can update the header, header partner, header pricing element, item, item partner, and item pricing element. - For existing sales contracts, you can delete the header, header partner, header pricing element, item, item partner, and item pricing element..
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) |
Business Object: | SalesContract |
Constructor and Description |
---|
DefaultSalesContractService() |
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.public SalesContractByKeyFluentHelper getSalesContractByKey(String salesContract)
SalesContractService
SalesContract
entity using key fields.getSalesContractByKey
in interface SalesContractService
salesContract
- Sales ContractConstraints: 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.public SalesContractCreateFluentHelper createSalesContract(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.public SalesContractUpdateFluentHelper updateSalesContract(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.public SalesContractDeleteFluentHelper deleteSalesContract(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.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.public SalesContractItemByKeyFluentHelper getSalesContractItemByKey(String salesContract, String salesContractItem)
SalesContractService
SalesContractItem
entity using key fields.getSalesContractItemByKey
in interface SalesContractService
salesContract
- Sales ContractConstraints: Not nullable, Maximum length: 10
salesContractItem
- Sales Contract ItemConstraints: 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.public SalesContractItemCreateFluentHelper createSalesContractItem(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.public SalesContractItemUpdateFluentHelper updateSalesContractItem(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.public SalesContractItemDeleteFluentHelper deleteSalesContractItem(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.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.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.public SalesContractItemPartnerUpdateFluentHelper updateSalesContractItemPartner(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.public SalesContractItemPartnerDeleteFluentHelper deleteSalesContractItemPartner(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.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.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.public SalesContractItemPrcgElmntUpdateFluentHelper updateSalesContractItemPrcgElmnt(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.public SalesContractItemPrcgElmntDeleteFluentHelper deleteSalesContractItemPrcgElmnt(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.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.public SalesContractPartnerByKeyFluentHelper getSalesContractPartnerByKey(String salesContract, String partnerFunction)
SalesContractService
SalesContractPartner
entity using key fields.getSalesContractPartnerByKey
in interface SalesContractService
salesContract
- Sales OrderConstraints: 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.public SalesContractPartnerUpdateFluentHelper updateSalesContractPartner(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.public SalesContractPartnerDeleteFluentHelper deleteSalesContractPartner(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.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.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.public SalesContractPrcgElmntUpdateFluentHelper updateSalesContractPrcgElmnt(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.public SalesContractPrcgElmntDeleteFluentHelper deleteSalesContractPrcgElmnt(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 © 2018 SAP SE. All rights reserved.