Interface SalesContractService
- All Superinterfaces:
BatchService<SalesContractServiceBatch>
- All Known Implementing Classes:
DefaultSalesContractService
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 Business Accelerator Hub
Details:
| OData Service: | API_SALES_CONTRACT_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Sales Contract Integration(SAP_COM_0119) |
| Scope Items: | Sales Contract Management(I9I) |
| Authentication Methods: | x509 |
| Business Object: | Sales Contract |
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint. -
Method Summary
Modifier and TypeMethodDescriptioncreateSalesContract(SalesContract salesContract) Deprecated.Create a newSalesContractentity and save it to the S/4HANA system.createSalesContractItem(SalesContractItem salesContractItem) Deprecated.Create a newSalesContractItementity and save it to the S/4HANA system.createSalesContractPartner(SalesContractPartner salesContractPartner) Deprecated.Create a newSalesContractPartnerentity and save it to the S/4HANA system.deleteSalesContract(SalesContract salesContract) Deprecated.Deletes an existingSalesContractentity in the S/4HANA system.deleteSalesContractItem(SalesContractItem salesContractItem) Deprecated.Deletes an existingSalesContractItementity in the S/4HANA system.deleteSalesContractItemPartner(SalesContractItemPartner salesContractItemPartner) Deprecated.Deletes an existingSalesContractItemPartnerentity in the S/4HANA system.deleteSalesContractItemPrcgElmnt(SalesContractItemPrcgElmnt salesContractItemPrcgElmnt) Deprecated.Deletes an existingSalesContractItemPrcgElmntentity in the S/4HANA system.deleteSalesContractItemText(SalesContractItemText salesContractItemText) Deprecated.Deletes an existingSalesContractItemTextentity in the S/4HANA system.deleteSalesContractPartner(SalesContractPartner salesContractPartner) Deprecated.Deletes an existingSalesContractPartnerentity in the S/4HANA system.deleteSalesContractPrcgElmnt(SalesContractPrcgElmnt salesContractPrcgElmnt) Deprecated.Deletes an existingSalesContractPrcgElmntentity in the S/4HANA system.deleteSalesContractText(SalesContractText salesContractText) Deprecated.Deletes an existingSalesContractTextentity in the S/4HANA system.Deprecated.Fetch multipleSalesContractentities.Deprecated.Fetch multipleSalesContractItementities.Deprecated.Fetch multipleSalesContractItemPartnerentities.Deprecated.Fetch multipleSalesContractItemPrcgElmntentities.Deprecated.Fetch multipleSalesContractItemTextentities.Deprecated.Fetch multipleSalesContractPartnerentities.Deprecated.Fetch multipleSalesContractPrcgElmntentities.Deprecated.Fetch multipleSalesContractTextentities.getSalesContractByKey(String salesContract) Deprecated.Fetch a singleSalesContractentity using key fields.getSalesContractItemByKey(String salesContract, String salesContractItem) Deprecated.Fetch a singleSalesContractItementity using key fields.getSalesContractItemPartnerByKey(String salesContract, String salesContractItem, String partnerFunction) Deprecated.Fetch a singleSalesContractItemPartnerentity using key fields.getSalesContractItemPrcgElmntByKey(String salesContract, String salesContractItem, String pricingProcedureStep, String pricingProcedureCounter) Deprecated.Fetch a singleSalesContractItemPrcgElmntentity using key fields.getSalesContractItemTextByKey(String salesContract, String salesContractItem, String language, String longTextID) Deprecated.Fetch a singleSalesContractItemTextentity using key fields.getSalesContractPartnerByKey(String salesContract, String partnerFunction) Deprecated.Fetch a singleSalesContractPartnerentity using key fields.getSalesContractPrcgElmntByKey(String salesContract, String pricingProcedureStep, String pricingProcedureCounter) Deprecated.Fetch a singleSalesContractPrcgElmntentity using key fields.getSalesContractTextByKey(String salesContract, String language, String longTextID) Deprecated.Fetch a singleSalesContractTextentity using key fields.rejectApprovalRequest(String salesContract) Deprecated.Creates a fluent helper for the rejectApprovalRequest OData function import.releaseApprovalRequest(String salesContract) Deprecated.Creates a fluent helper for the releaseApprovalRequest OData function import.updateSalesContract(SalesContract salesContract) Deprecated.Update an existingSalesContractentity and save it to the S/4HANA system.updateSalesContractItem(SalesContractItem salesContractItem) Deprecated.Update an existingSalesContractItementity and save it to the S/4HANA system.updateSalesContractItemPartner(SalesContractItemPartner salesContractItemPartner) Deprecated.Update an existingSalesContractItemPartnerentity and save it to the S/4HANA system.updateSalesContractItemPrcgElmnt(SalesContractItemPrcgElmnt salesContractItemPrcgElmnt) Deprecated.Update an existingSalesContractItemPrcgElmntentity and save it to the S/4HANA system.updateSalesContractItemText(SalesContractItemText salesContractItemText) Deprecated.Update an existingSalesContractItemTextentity and save it to the S/4HANA system.updateSalesContractPartner(SalesContractPartner salesContractPartner) Deprecated.Update an existingSalesContractPartnerentity and save it to the S/4HANA system.updateSalesContractPrcgElmnt(SalesContractPrcgElmnt salesContractPrcgElmnt) Deprecated.Update an existingSalesContractPrcgElmntentity and save it to the S/4HANA system.updateSalesContractText(SalesContractText salesContractText) Deprecated.Update an existingSalesContractTextentity and save it to the S/4HANA system.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.Methods inherited from interface com.sap.cloud.sdk.datamodel.odata.helper.batch.BatchService
batch
-
Field Details
-
DEFAULT_SERVICE_PATH
Deprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint.- See Also:
-
-
Method Details
-
withServicePath
Deprecated.Overrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
getAllSalesContract
Deprecated.Fetch multipleSalesContractentities.- Returns:
- A fluent helper to fetch multiple
SalesContractentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSalesContractByKey
Deprecated.Fetch a singleSalesContractentity using key fields.- Parameters:
salesContract- Sales ContractConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
SalesContractentity 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 theexecutemethod on the fluent helper object.
-
createSalesContract
Deprecated.Create a newSalesContractentity and save it to the S/4HANA system.- Parameters:
salesContract-SalesContractentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
SalesContractentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateSalesContract
Deprecated.Update an existingSalesContractentity and save it to the S/4HANA system.- Parameters:
salesContract-SalesContractentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
SalesContractentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteSalesContract
Deprecated.Deletes an existingSalesContractentity in the S/4HANA system.- Parameters:
salesContract-SalesContractentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
SalesContractentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllSalesContractItem
Deprecated.Fetch multipleSalesContractItementities.- Returns:
- A fluent helper to fetch multiple
SalesContractItementities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSalesContractItemByKey
@Nonnull SalesContractItemByKeyFluentHelper getSalesContractItemByKey(String salesContract, String salesContractItem) Deprecated.Fetch a singleSalesContractItementity using key fields.- Parameters:
salesContractItem- Sales Contract ItemConstraints: Not nullable, Maximum length: 6
salesContract- Sales ContractConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
SalesContractItementity 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 theexecutemethod on the fluent helper object.
-
createSalesContractItem
@Nonnull SalesContractItemCreateFluentHelper createSalesContractItem(@Nonnull SalesContractItem salesContractItem) Deprecated.Create a newSalesContractItementity and save it to the S/4HANA system.- Parameters:
salesContractItem-SalesContractItementity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
SalesContractItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateSalesContractItem
@Nonnull SalesContractItemUpdateFluentHelper updateSalesContractItem(@Nonnull SalesContractItem salesContractItem) Deprecated.Update an existingSalesContractItementity and save it to the S/4HANA system.- Parameters:
salesContractItem-SalesContractItementity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
SalesContractItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteSalesContractItem
@Nonnull SalesContractItemDeleteFluentHelper deleteSalesContractItem(@Nonnull SalesContractItem salesContractItem) Deprecated.Deletes an existingSalesContractItementity in the S/4HANA system.- Parameters:
salesContractItem-SalesContractItementity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
SalesContractItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllSalesContractItemPartner
Deprecated.Fetch multipleSalesContractItemPartnerentities.- Returns:
- A fluent helper to fetch multiple
SalesContractItemPartnerentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSalesContractItemPartnerByKey
@Nonnull SalesContractItemPartnerByKeyFluentHelper getSalesContractItemPartnerByKey(String salesContract, String salesContractItem, String partnerFunction) Deprecated.Fetch a singleSalesContractItemPartnerentity using key fields.- Parameters:
salesContractItem- Sales Contract ItemConstraints: Not nullable, Maximum length: 6
partnerFunction- Partner FunctionConstraints: Not nullable, Maximum length: 2
salesContract- Sales ContractConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
SalesContractItemPartnerentity 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 theexecutemethod on the fluent helper object.
-
updateSalesContractItemPartner
@Nonnull SalesContractItemPartnerUpdateFluentHelper updateSalesContractItemPartner(@Nonnull SalesContractItemPartner salesContractItemPartner) Deprecated.Update an existingSalesContractItemPartnerentity and save it to the S/4HANA system.- Parameters:
salesContractItemPartner-SalesContractItemPartnerentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
SalesContractItemPartnerentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteSalesContractItemPartner
@Nonnull SalesContractItemPartnerDeleteFluentHelper deleteSalesContractItemPartner(@Nonnull SalesContractItemPartner salesContractItemPartner) Deprecated.Deletes an existingSalesContractItemPartnerentity in the S/4HANA system.- Parameters:
salesContractItemPartner-SalesContractItemPartnerentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
SalesContractItemPartnerentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllSalesContractItemPrcgElmnt
Deprecated.Fetch multipleSalesContractItemPrcgElmntentities.- Returns:
- A fluent helper to fetch multiple
SalesContractItemPrcgElmntentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSalesContractItemPrcgElmntByKey
@Nonnull SalesContractItemPrcgElmntByKeyFluentHelper getSalesContractItemPrcgElmntByKey(String salesContract, String salesContractItem, String pricingProcedureStep, String pricingProcedureCounter) Deprecated.Fetch a singleSalesContractItemPrcgElmntentity using key fields.- Parameters:
salesContractItem- Sales Contract ItemConstraints: Not nullable, Maximum length: 6
salesContract- Sales ContractConstraints: Not nullable, Maximum length: 10
pricingProcedureCounter- Condition CounterConstraints: Not nullable, Maximum length: 3
pricingProcedureStep- Step NumberConstraints: Not nullable, Maximum length: 3
- Returns:
- A fluent helper to fetch a single
SalesContractItemPrcgElmntentity 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 theexecutemethod on the fluent helper object.
-
updateSalesContractItemPrcgElmnt
@Nonnull SalesContractItemPrcgElmntUpdateFluentHelper updateSalesContractItemPrcgElmnt(@Nonnull SalesContractItemPrcgElmnt salesContractItemPrcgElmnt) Deprecated.Update an existingSalesContractItemPrcgElmntentity and save it to the S/4HANA system.- Parameters:
salesContractItemPrcgElmnt-SalesContractItemPrcgElmntentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
SalesContractItemPrcgElmntentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteSalesContractItemPrcgElmnt
@Nonnull SalesContractItemPrcgElmntDeleteFluentHelper deleteSalesContractItemPrcgElmnt(@Nonnull SalesContractItemPrcgElmnt salesContractItemPrcgElmnt) Deprecated.Deletes an existingSalesContractItemPrcgElmntentity in the S/4HANA system.- Parameters:
salesContractItemPrcgElmnt-SalesContractItemPrcgElmntentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
SalesContractItemPrcgElmntentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllSalesContractItemText
Deprecated.Fetch multipleSalesContractItemTextentities.- Returns:
- A fluent helper to fetch multiple
SalesContractItemTextentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSalesContractItemTextByKey
@Nonnull SalesContractItemTextByKeyFluentHelper getSalesContractItemTextByKey(String salesContract, String salesContractItem, String language, String longTextID) Deprecated.Fetch a singleSalesContractItemTextentity using key fields.- Parameters:
salesContractItem- Sales Contract ItemConstraints: Not nullable, Maximum length: 6
salesContract- Sales ContractConstraints: Not nullable, Maximum length: 10
language- Language KeyConstraints: Not nullable, Maximum length: 2
longTextID- Text IDConstraints: Not nullable, Maximum length: 4
- Returns:
- A fluent helper to fetch a single
SalesContractItemTextentity 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 theexecutemethod on the fluent helper object.
-
updateSalesContractItemText
@Nonnull SalesContractItemTextUpdateFluentHelper updateSalesContractItemText(@Nonnull SalesContractItemText salesContractItemText) Deprecated.Update an existingSalesContractItemTextentity and save it to the S/4HANA system.- Parameters:
salesContractItemText-SalesContractItemTextentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
SalesContractItemTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteSalesContractItemText
@Nonnull SalesContractItemTextDeleteFluentHelper deleteSalesContractItemText(@Nonnull SalesContractItemText salesContractItemText) Deprecated.Deletes an existingSalesContractItemTextentity in the S/4HANA system.- Parameters:
salesContractItemText-SalesContractItemTextentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
SalesContractItemTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllSalesContractPartner
Deprecated.Fetch multipleSalesContractPartnerentities.- Returns:
- A fluent helper to fetch multiple
SalesContractPartnerentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSalesContractPartnerByKey
@Nonnull SalesContractPartnerByKeyFluentHelper getSalesContractPartnerByKey(String salesContract, String partnerFunction) Deprecated.Fetch a singleSalesContractPartnerentity using key fields.- Parameters:
partnerFunction- Partner FunctionConstraints: Not nullable, Maximum length: 2
salesContract- Sales ContractConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
SalesContractPartnerentity 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 theexecutemethod on the fluent helper object.
-
createSalesContractPartner
@Nonnull SalesContractPartnerCreateFluentHelper createSalesContractPartner(@Nonnull SalesContractPartner salesContractPartner) Deprecated.Create a newSalesContractPartnerentity and save it to the S/4HANA system.- Parameters:
salesContractPartner-SalesContractPartnerentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
SalesContractPartnerentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateSalesContractPartner
@Nonnull SalesContractPartnerUpdateFluentHelper updateSalesContractPartner(@Nonnull SalesContractPartner salesContractPartner) Deprecated.Update an existingSalesContractPartnerentity and save it to the S/4HANA system.- Parameters:
salesContractPartner-SalesContractPartnerentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
SalesContractPartnerentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteSalesContractPartner
@Nonnull SalesContractPartnerDeleteFluentHelper deleteSalesContractPartner(@Nonnull SalesContractPartner salesContractPartner) Deprecated.Deletes an existingSalesContractPartnerentity in the S/4HANA system.- Parameters:
salesContractPartner-SalesContractPartnerentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
SalesContractPartnerentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllSalesContractPrcgElmnt
Deprecated.Fetch multipleSalesContractPrcgElmntentities.- Returns:
- A fluent helper to fetch multiple
SalesContractPrcgElmntentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSalesContractPrcgElmntByKey
@Nonnull SalesContractPrcgElmntByKeyFluentHelper getSalesContractPrcgElmntByKey(String salesContract, String pricingProcedureStep, String pricingProcedureCounter) Deprecated.Fetch a singleSalesContractPrcgElmntentity using key fields.- Parameters:
salesContract- Sales ContractConstraints: Not nullable, Maximum length: 10
pricingProcedureCounter- Condition CounterConstraints: Not nullable, Maximum length: 3
pricingProcedureStep- Step NumberConstraints: Not nullable, Maximum length: 3
- Returns:
- A fluent helper to fetch a single
SalesContractPrcgElmntentity 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 theexecutemethod on the fluent helper object.
-
updateSalesContractPrcgElmnt
@Nonnull SalesContractPrcgElmntUpdateFluentHelper updateSalesContractPrcgElmnt(@Nonnull SalesContractPrcgElmnt salesContractPrcgElmnt) Deprecated.Update an existingSalesContractPrcgElmntentity and save it to the S/4HANA system.- Parameters:
salesContractPrcgElmnt-SalesContractPrcgElmntentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
SalesContractPrcgElmntentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteSalesContractPrcgElmnt
@Nonnull SalesContractPrcgElmntDeleteFluentHelper deleteSalesContractPrcgElmnt(@Nonnull SalesContractPrcgElmnt salesContractPrcgElmnt) Deprecated.Deletes an existingSalesContractPrcgElmntentity in the S/4HANA system.- Parameters:
salesContractPrcgElmnt-SalesContractPrcgElmntentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
SalesContractPrcgElmntentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllSalesContractText
Deprecated.Fetch multipleSalesContractTextentities.- Returns:
- A fluent helper to fetch multiple
SalesContractTextentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSalesContractTextByKey
@Nonnull SalesContractTextByKeyFluentHelper getSalesContractTextByKey(String salesContract, String language, String longTextID) Deprecated.Fetch a singleSalesContractTextentity using key fields.- Parameters:
salesContract- Sales ContractConstraints: Not nullable, Maximum length: 10
language- Language KeyConstraints: Not nullable, Maximum length: 2
longTextID- Text IDConstraints: Not nullable, Maximum length: 4
- Returns:
- A fluent helper to fetch a single
SalesContractTextentity 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 theexecutemethod on the fluent helper object.
-
updateSalesContractText
@Nonnull SalesContractTextUpdateFluentHelper updateSalesContractText(@Nonnull SalesContractText salesContractText) Deprecated.Update an existingSalesContractTextentity and save it to the S/4HANA system.- Parameters:
salesContractText-SalesContractTextentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
SalesContractTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteSalesContractText
@Nonnull SalesContractTextDeleteFluentHelper deleteSalesContractText(@Nonnull SalesContractText salesContractText) Deprecated.Deletes an existingSalesContractTextentity in the S/4HANA system.- Parameters:
salesContractText-SalesContractTextentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
SalesContractTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-
releaseApprovalRequest
Deprecated.Creates a fluent helper for the releaseApprovalRequest OData function import.
- Parameters:
salesContract- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: SalesContract
- Returns:
- A fluent helper object that will execute the releaseApprovalRequest OData function import with the
provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-
rejectApprovalRequest
Deprecated.Creates a fluent helper for the rejectApprovalRequest OData function import.
- Parameters:
salesContract- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: SalesContract
- Returns:
- A fluent helper object that will execute the rejectApprovalRequest OData function import with the
provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-