@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultSalesOrderService") public class DefaultSalesOrderService extends Object implements SalesOrderService
You can use this service to integrate external applications with sales order processing in SAP S/4HANA Cloud. In every API call, you can make use of the following operations: - You can retrieve sales orders. Apply any of the filters provided or retrieve all existing data. - You can create sales orders. 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 orders, 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 orders, you can update the header, header partner, header pricing element, item, item partner, and item pricing element. - For existing sales orders, 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_ORDER_SRV |
API Version: | 1 |
Communication Scenario: | Sales Order Integration (SAP_COM_0109) |
Scope Items: | Integration with 3rd-party salesforce sutomation system (1QI), Sell from Stock (BD9) |
Business Object: | SalesOrder |
Constructor and Description |
---|
DefaultSalesOrderService() |
public SalesOrderFluentHelper getAllSalesOrder()
SalesOrderService
SalesOrder
entities.getAllSalesOrder
in interface SalesOrderService
SalesOrder
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 SalesOrderByKeyFluentHelper getSalesOrderByKey(String salesOrder)
SalesOrderService
SalesOrder
entity using key fields.getSalesOrderByKey
in interface SalesOrderService
salesOrder
- Sales OrderConstraints: Not nullable, Maximum length: 10
SalesOrder
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 SalesOrderCreateFluentHelper createSalesOrder(SalesOrder salesOrder)
SalesOrderService
SalesOrder
entity and save it to the S/4HANA system.createSalesOrder
in interface SalesOrderService
salesOrder
- SalesOrder
entity object that will be created in the S/4HANA system.SalesOrder
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderUpdateFluentHelper updateSalesOrder(SalesOrder salesOrder)
SalesOrderService
SalesOrder
entity and save it to the S/4HANA system.updateSalesOrder
in interface SalesOrderService
salesOrder
- SalesOrder
entity object that will be updated in the S/4HANA system.SalesOrder
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderDeleteFluentHelper deleteSalesOrder(SalesOrder salesOrder)
SalesOrderService
SalesOrder
entity in the S/4HANA system.deleteSalesOrder
in interface SalesOrderService
salesOrder
- SalesOrder
entity object that will be deleted in the S/4HANA system.SalesOrder
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderHeaderPartnerFluentHelper getAllSalesOrderHeaderPartner()
SalesOrderService
SalesOrderHeaderPartner
entities.getAllSalesOrderHeaderPartner
in interface SalesOrderService
SalesOrderHeaderPartner
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 SalesOrderHeaderPartnerByKeyFluentHelper getSalesOrderHeaderPartnerByKey(String salesOrder, String partnerFunction)
SalesOrderService
SalesOrderHeaderPartner
entity using key fields.getSalesOrderHeaderPartnerByKey
in interface SalesOrderService
salesOrder
- 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
SalesOrderHeaderPartner
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 SalesOrderHeaderPartnerCreateFluentHelper createSalesOrderHeaderPartner(SalesOrderHeaderPartner salesOrderHeaderPartner)
SalesOrderService
SalesOrderHeaderPartner
entity and save it to the S/4HANA system.createSalesOrderHeaderPartner
in interface SalesOrderService
salesOrderHeaderPartner
- SalesOrderHeaderPartner
entity object that will be created in the S/4HANA system.SalesOrderHeaderPartner
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderHeaderPartnerUpdateFluentHelper updateSalesOrderHeaderPartner(SalesOrderHeaderPartner salesOrderHeaderPartner)
SalesOrderService
SalesOrderHeaderPartner
entity and save it to the S/4HANA system.updateSalesOrderHeaderPartner
in interface SalesOrderService
salesOrderHeaderPartner
- SalesOrderHeaderPartner
entity object that will be updated in the S/4HANA system.SalesOrderHeaderPartner
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderHeaderPartnerDeleteFluentHelper deleteSalesOrderHeaderPartner(SalesOrderHeaderPartner salesOrderHeaderPartner)
SalesOrderService
SalesOrderHeaderPartner
entity in the S/4HANA system.deleteSalesOrderHeaderPartner
in interface SalesOrderService
salesOrderHeaderPartner
- SalesOrderHeaderPartner
entity object that will be deleted in the S/4HANA system.SalesOrderHeaderPartner
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderHeaderPrElementFluentHelper getAllSalesOrderHeaderPrElement()
SalesOrderService
SalesOrderHeaderPrElement
entities.getAllSalesOrderHeaderPrElement
in interface SalesOrderService
SalesOrderHeaderPrElement
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 SalesOrderHeaderPrElementByKeyFluentHelper getSalesOrderHeaderPrElementByKey(String salesOrder, String pricingProcedureStep, String pricingProcedureCounter)
SalesOrderService
SalesOrderHeaderPrElement
entity using key fields.getSalesOrderHeaderPrElementByKey
in interface SalesOrderService
salesOrder
- Sales OrderConstraints: 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
SalesOrderHeaderPrElement
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 SalesOrderHeaderPrElementCreateFluentHelper createSalesOrderHeaderPrElement(SalesOrderHeaderPrElement salesOrderHeaderPrElement)
SalesOrderService
SalesOrderHeaderPrElement
entity and save it to the S/4HANA system.createSalesOrderHeaderPrElement
in interface SalesOrderService
salesOrderHeaderPrElement
- SalesOrderHeaderPrElement
entity object that will be created in the S/4HANA system.SalesOrderHeaderPrElement
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderHeaderPrElementUpdateFluentHelper updateSalesOrderHeaderPrElement(SalesOrderHeaderPrElement salesOrderHeaderPrElement)
SalesOrderService
SalesOrderHeaderPrElement
entity and save it to the S/4HANA system.updateSalesOrderHeaderPrElement
in interface SalesOrderService
salesOrderHeaderPrElement
- SalesOrderHeaderPrElement
entity object that will be updated in the S/4HANA system.SalesOrderHeaderPrElement
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderHeaderPrElementDeleteFluentHelper deleteSalesOrderHeaderPrElement(SalesOrderHeaderPrElement salesOrderHeaderPrElement)
SalesOrderService
SalesOrderHeaderPrElement
entity in the S/4HANA system.deleteSalesOrderHeaderPrElement
in interface SalesOrderService
salesOrderHeaderPrElement
- SalesOrderHeaderPrElement
entity object that will be deleted in the S/4HANA system.SalesOrderHeaderPrElement
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderItemFluentHelper getAllSalesOrderItem()
SalesOrderService
SalesOrderItem
entities.getAllSalesOrderItem
in interface SalesOrderService
SalesOrderItem
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 SalesOrderItemByKeyFluentHelper getSalesOrderItemByKey(String salesOrder, String salesOrderItem)
SalesOrderService
SalesOrderItem
entity using key fields.getSalesOrderItemByKey
in interface SalesOrderService
salesOrder
- Sales OrderConstraints: Not nullable, Maximum length: 10
salesOrderItem
- Sales Order ItemConstraints: Not nullable, Maximum length: 6
SalesOrderItem
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 SalesOrderItemCreateFluentHelper createSalesOrderItem(SalesOrderItem salesOrderItem)
SalesOrderService
SalesOrderItem
entity and save it to the S/4HANA system.createSalesOrderItem
in interface SalesOrderService
salesOrderItem
- SalesOrderItem
entity object that will be created in the S/4HANA system.SalesOrderItem
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderItemUpdateFluentHelper updateSalesOrderItem(SalesOrderItem salesOrderItem)
SalesOrderService
SalesOrderItem
entity and save it to the S/4HANA system.updateSalesOrderItem
in interface SalesOrderService
salesOrderItem
- SalesOrderItem
entity object that will be updated in the S/4HANA system.SalesOrderItem
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderItemDeleteFluentHelper deleteSalesOrderItem(SalesOrderItem salesOrderItem)
SalesOrderService
SalesOrderItem
entity in the S/4HANA system.deleteSalesOrderItem
in interface SalesOrderService
salesOrderItem
- SalesOrderItem
entity object that will be deleted in the S/4HANA system.SalesOrderItem
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderItemPartnerFluentHelper getAllSalesOrderItemPartner()
SalesOrderService
SalesOrderItemPartner
entities.getAllSalesOrderItemPartner
in interface SalesOrderService
SalesOrderItemPartner
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 SalesOrderItemPartnerByKeyFluentHelper getSalesOrderItemPartnerByKey(String salesOrder, String salesOrderItem, String partnerFunction)
SalesOrderService
SalesOrderItemPartner
entity using key fields.getSalesOrderItemPartnerByKey
in interface SalesOrderService
salesOrder
- Sales OrderConstraints: Not nullable, Maximum length: 10
salesOrderItem
- Sales Order ItemConstraints: Not nullable, Maximum length: 6
partnerFunction
- The abbreviated form of the name that identifies the partner function.Constraints: Not nullable, Maximum length: 2
SalesOrderItemPartner
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 SalesOrderItemPartnerCreateFluentHelper createSalesOrderItemPartner(SalesOrderItemPartner salesOrderItemPartner)
SalesOrderService
SalesOrderItemPartner
entity and save it to the S/4HANA system.createSalesOrderItemPartner
in interface SalesOrderService
salesOrderItemPartner
- SalesOrderItemPartner
entity object that will be created in the S/4HANA system.SalesOrderItemPartner
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderItemPartnerUpdateFluentHelper updateSalesOrderItemPartner(SalesOrderItemPartner salesOrderItemPartner)
SalesOrderService
SalesOrderItemPartner
entity and save it to the S/4HANA system.updateSalesOrderItemPartner
in interface SalesOrderService
salesOrderItemPartner
- SalesOrderItemPartner
entity object that will be updated in the S/4HANA system.SalesOrderItemPartner
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderItemPartnerDeleteFluentHelper deleteSalesOrderItemPartner(SalesOrderItemPartner salesOrderItemPartner)
SalesOrderService
SalesOrderItemPartner
entity in the S/4HANA system.deleteSalesOrderItemPartner
in interface SalesOrderService
salesOrderItemPartner
- SalesOrderItemPartner
entity object that will be deleted in the S/4HANA system.SalesOrderItemPartner
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderItemPrElementFluentHelper getAllSalesOrderItemPrElement()
SalesOrderService
SalesOrderItemPrElement
entities.getAllSalesOrderItemPrElement
in interface SalesOrderService
SalesOrderItemPrElement
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 SalesOrderItemPrElementByKeyFluentHelper getSalesOrderItemPrElementByKey(String salesOrder, String salesOrderItem, String pricingProcedureStep, String pricingProcedureCounter)
SalesOrderService
SalesOrderItemPrElement
entity using key fields.getSalesOrderItemPrElementByKey
in interface SalesOrderService
salesOrder
- Sales OrderConstraints: Not nullable, Maximum length: 10
salesOrderItem
- Sales Order ItemConstraints: 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
SalesOrderItemPrElement
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 SalesOrderItemPrElementCreateFluentHelper createSalesOrderItemPrElement(SalesOrderItemPrElement salesOrderItemPrElement)
SalesOrderService
SalesOrderItemPrElement
entity and save it to the S/4HANA system.createSalesOrderItemPrElement
in interface SalesOrderService
salesOrderItemPrElement
- SalesOrderItemPrElement
entity object that will be created in the S/4HANA system.SalesOrderItemPrElement
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderItemPrElementUpdateFluentHelper updateSalesOrderItemPrElement(SalesOrderItemPrElement salesOrderItemPrElement)
SalesOrderService
SalesOrderItemPrElement
entity and save it to the S/4HANA system.updateSalesOrderItemPrElement
in interface SalesOrderService
salesOrderItemPrElement
- SalesOrderItemPrElement
entity object that will be updated in the S/4HANA system.SalesOrderItemPrElement
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderItemPrElementDeleteFluentHelper deleteSalesOrderItemPrElement(SalesOrderItemPrElement salesOrderItemPrElement)
SalesOrderService
SalesOrderItemPrElement
entity in the S/4HANA system.deleteSalesOrderItemPrElement
in interface SalesOrderService
salesOrderItemPrElement
- SalesOrderItemPrElement
entity object that will be deleted in the S/4HANA system.SalesOrderItemPrElement
entity. To perform execution, call the execute
method on the fluent helper object.public SalesOrderScheduleLineFluentHelper getAllSalesOrderScheduleLine()
SalesOrderService
SalesOrderScheduleLine
entities.getAllSalesOrderScheduleLine
in interface SalesOrderService
SalesOrderScheduleLine
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 SalesOrderScheduleLineByKeyFluentHelper getSalesOrderScheduleLineByKey(String salesOrder, String salesOrderItem, String scheduleLine)
SalesOrderService
SalesOrderScheduleLine
entity using key fields.getSalesOrderScheduleLineByKey
in interface SalesOrderService
salesOrder
- The number that uniquely identifies the sales document.Constraints: Not nullable, Maximum length: 10
salesOrderItem
- The number that uniquely identifies the item in the sales document.Constraints: Not nullable, Maximum length: 6
scheduleLine
- The number that uniquely identifies the schedule line in the sales document.Constraints: Not nullable, Maximum length: 4
SalesOrderScheduleLine
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.Copyright © 2018 SAP SE. All rights reserved.