@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultOrderBillOfMaterialService") public class DefaultOrderBillOfMaterialService extends Object implements OrderBillOfMaterialService
The service contains either no header, one header, or multiple headers for the specified order bill of material and zero or more items for each header. The required information is sent in the request as a payload to create, update, or delete order bill of material and items, make appropriate checks for restricted values. If there are any issues when the order bill of material is created, updated, or deleted, the system displays error messages in the response. The service is based on the OData protocol and can be consumed in SAP Fiori apps and on other user interfaces. .
Reference: SAP API Business Hub
OData Service: | OP_API_ORDER_BILL_OF_MATERIAL_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Bill Of Material |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultOrderBillOfMaterialService()
Creates a service using
OrderBillOfMaterialService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultOrderBillOfMaterialServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
SalesOrderBOMCreateFluentHelper |
createSalesOrderBOM(SalesOrderBOM salesOrderBOM)
Create a new
SalesOrderBOM entity and save it to the S/4HANA system. |
SalesOrderBOMItemCreateFluentHelper |
createSalesOrderBOMItem(SalesOrderBOMItem salesOrderBOMItem)
Create a new
SalesOrderBOMItem entity and save it to the S/4HANA system. |
DeleteBOMHdrWithChangeNumberFluentHelper |
deleteBOMHdrWithChangeNumber(String billOfMaterialCategory,
String billOfMaterial,
String billOfMaterialVariant,
String engineeringChangeDocument,
String material,
String plant,
String engineeringChangeDocForEdit)
Creates a fluent helper for the DeleteBOMHdrWithChangeNumber OData function import.
|
DeleteBOMItemWithChangeNumberFluentHelper |
deleteBOMItemWithChangeNumber(String billOfMaterial,
String billOfMaterialCategory,
String billOfMaterialVariant,
String billOfMaterialItemNodeNumber,
String headerChangeDocument,
String material,
String plant,
String engineeringChangeDocForEdit)
Creates a fluent helper for the DeleteBOMItemWithChangeNumber OData function import.
|
SalesOrderBOMDeleteFluentHelper |
deleteSalesOrderBOM(SalesOrderBOM salesOrderBOM)
Deletes an existing
SalesOrderBOM entity in the S/4HANA system. |
SalesOrderBOMItemDeleteFluentHelper |
deleteSalesOrderBOMItem(SalesOrderBOMItem salesOrderBOMItem)
Deletes an existing
SalesOrderBOMItem entity in the S/4HANA system. |
BOMItemCategoryFluentHelper |
getAllBOMItemCategory()
Fetch multiple
BOMItemCategory entities. |
BOMItemCategoryTextFluentHelper |
getAllBOMItemCategoryText()
Fetch multiple
BOMItemCategoryText entities. |
SalesOrderBOMFluentHelper |
getAllSalesOrderBOM()
Fetch multiple
SalesOrderBOM entities. |
SalesOrderBOMItemFluentHelper |
getAllSalesOrderBOMItem()
Fetch multiple
SalesOrderBOMItem entities. |
BOMItemCategoryByKeyFluentHelper |
getBOMItemCategoryByKey(String billOfMaterialItemCategory)
Fetch a single
BOMItemCategory entity using key fields. |
BOMItemCategoryTextByKeyFluentHelper |
getBOMItemCategoryTextByKey(String language,
String billOfMaterialItemCategory)
Fetch a single
BOMItemCategoryText entity using key fields. |
SalesOrderBOMByKeyFluentHelper |
getSalesOrderBOMByKey(String billOfMaterialCategory,
String billOfMaterial,
String billOfMaterialVariant,
String engineeringChangeDocument,
String material,
String plant)
Fetch a single
SalesOrderBOM entity using key fields. |
SalesOrderBOMItemByKeyFluentHelper |
getSalesOrderBOMItemByKey(String billOfMaterial,
String billOfMaterialCategory,
String billOfMaterialVariant,
String billOfMaterialItemNodeNumber,
String headerChangeDocument,
String material,
String plant)
Fetch a single
SalesOrderBOMItem entity using key fields. |
SalesOrderBOMUpdateFluentHelper |
updateSalesOrderBOM(SalesOrderBOM salesOrderBOM)
Update an existing
SalesOrderBOM entity and save it to the S/4HANA system. |
SalesOrderBOMItemUpdateFluentHelper |
updateSalesOrderBOMItem(SalesOrderBOMItem salesOrderBOMItem)
Update an existing
SalesOrderBOMItem entity and save it to the S/4HANA system. |
DefaultOrderBillOfMaterialService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultOrderBillOfMaterialService()
OrderBillOfMaterialService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultOrderBillOfMaterialService withServicePath(@Nonnull String servicePath)
OrderBillOfMaterialService
withServicePath
in interface OrderBillOfMaterialService
servicePath
- Service path that will override the default.@Nonnull public DefaultOrderBillOfMaterialServiceBatch batch()
batch
in interface BatchService<OrderBillOfMaterialServiceBatch>
@Nonnull public BOMItemCategoryFluentHelper getAllBOMItemCategory()
OrderBillOfMaterialService
BOMItemCategory
entities.getAllBOMItemCategory
in interface OrderBillOfMaterialService
BOMItemCategory
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 BOMItemCategoryByKeyFluentHelper getBOMItemCategoryByKey(String billOfMaterialItemCategory)
OrderBillOfMaterialService
BOMItemCategory
entity using key fields.getBOMItemCategoryByKey
in interface OrderBillOfMaterialService
billOfMaterialItemCategory
- Item category (bill of material)
Constraints: Not nullable, Maximum length: 1
BOMItemCategory
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 BOMItemCategoryTextFluentHelper getAllBOMItemCategoryText()
OrderBillOfMaterialService
BOMItemCategoryText
entities.getAllBOMItemCategoryText
in interface OrderBillOfMaterialService
BOMItemCategoryText
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 BOMItemCategoryTextByKeyFluentHelper getBOMItemCategoryTextByKey(String language, String billOfMaterialItemCategory)
OrderBillOfMaterialService
BOMItemCategoryText
entity using key fields.getBOMItemCategoryTextByKey
in interface OrderBillOfMaterialService
language
- Language Key
Constraints: Not nullable, Maximum length: 2
billOfMaterialItemCategory
- Item category (bill of material)
Constraints: Not nullable, Maximum length: 1
BOMItemCategoryText
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 SalesOrderBOMItemFluentHelper getAllSalesOrderBOMItem()
OrderBillOfMaterialService
SalesOrderBOMItem
entities.getAllSalesOrderBOMItem
in interface OrderBillOfMaterialService
SalesOrderBOMItem
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 SalesOrderBOMItemByKeyFluentHelper getSalesOrderBOMItemByKey(String billOfMaterial, String billOfMaterialCategory, String billOfMaterialVariant, String billOfMaterialItemNodeNumber, String headerChangeDocument, String material, String plant)
OrderBillOfMaterialService
SalesOrderBOMItem
entity using key fields.getSalesOrderBOMItemByKey
in interface OrderBillOfMaterialService
billOfMaterial
- Bill of Material
Constraints: Not nullable, Maximum length: 8
billOfMaterialCategory
- BOM category
Constraints: Not nullable, Maximum length: 1
billOfMaterialVariant
- Alternative BOM
Constraints: Not nullable, Maximum length: 2
billOfMaterialItemNodeNumber
- BOM item node number
Constraints: Not nullable, Maximum length: 8
headerChangeDocument
- Change Number
Constraints: Not nullable, Maximum length: 12
material
- Material Number
Constraints: Not nullable, Maximum length: 40
plant
- Plant
Constraints: Not nullable, Maximum length: 4
SalesOrderBOMItem
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 SalesOrderBOMItemCreateFluentHelper createSalesOrderBOMItem(@Nonnull SalesOrderBOMItem salesOrderBOMItem)
OrderBillOfMaterialService
SalesOrderBOMItem
entity and save it to the S/4HANA system.createSalesOrderBOMItem
in interface OrderBillOfMaterialService
salesOrderBOMItem
- SalesOrderBOMItem
entity object that will be created in the S/4HANA system.SalesOrderBOMItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesOrderBOMItemUpdateFluentHelper updateSalesOrderBOMItem(@Nonnull SalesOrderBOMItem salesOrderBOMItem)
OrderBillOfMaterialService
SalesOrderBOMItem
entity and save it to the S/4HANA system.updateSalesOrderBOMItem
in interface OrderBillOfMaterialService
salesOrderBOMItem
- SalesOrderBOMItem
entity object that will be updated in the S/4HANA system.SalesOrderBOMItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesOrderBOMItemDeleteFluentHelper deleteSalesOrderBOMItem(@Nonnull SalesOrderBOMItem salesOrderBOMItem)
OrderBillOfMaterialService
SalesOrderBOMItem
entity in the S/4HANA system.deleteSalesOrderBOMItem
in interface OrderBillOfMaterialService
salesOrderBOMItem
- SalesOrderBOMItem
entity object that will be deleted in the S/4HANA system.SalesOrderBOMItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesOrderBOMFluentHelper getAllSalesOrderBOM()
OrderBillOfMaterialService
SalesOrderBOM
entities.getAllSalesOrderBOM
in interface OrderBillOfMaterialService
SalesOrderBOM
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 SalesOrderBOMByKeyFluentHelper getSalesOrderBOMByKey(String billOfMaterialCategory, String billOfMaterial, String billOfMaterialVariant, String engineeringChangeDocument, String material, String plant)
OrderBillOfMaterialService
SalesOrderBOM
entity using key fields.getSalesOrderBOMByKey
in interface OrderBillOfMaterialService
billOfMaterialCategory
- BOM category
Constraints: Not nullable, Maximum length: 1
billOfMaterial
- Bill of Material
Constraints: Not nullable, Maximum length: 8
billOfMaterialVariant
- Alternative BOM
Constraints: Not nullable, Maximum length: 2
engineeringChangeDocument
- Change Number
Constraints: Not nullable, Maximum length: 12
material
- Material Number
Constraints: Not nullable, Maximum length: 40
plant
- Plant
Constraints: Not nullable, Maximum length: 4
SalesOrderBOM
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 SalesOrderBOMCreateFluentHelper createSalesOrderBOM(@Nonnull SalesOrderBOM salesOrderBOM)
OrderBillOfMaterialService
SalesOrderBOM
entity and save it to the S/4HANA system.createSalesOrderBOM
in interface OrderBillOfMaterialService
salesOrderBOM
- SalesOrderBOM
entity object that will be created in the S/4HANA system.SalesOrderBOM
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesOrderBOMUpdateFluentHelper updateSalesOrderBOM(@Nonnull SalesOrderBOM salesOrderBOM)
OrderBillOfMaterialService
SalesOrderBOM
entity and save it to the S/4HANA system.updateSalesOrderBOM
in interface OrderBillOfMaterialService
salesOrderBOM
- SalesOrderBOM
entity object that will be updated in the S/4HANA system.SalesOrderBOM
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SalesOrderBOMDeleteFluentHelper deleteSalesOrderBOM(@Nonnull SalesOrderBOM salesOrderBOM)
OrderBillOfMaterialService
SalesOrderBOM
entity in the S/4HANA system.deleteSalesOrderBOM
in interface OrderBillOfMaterialService
salesOrderBOM
- SalesOrderBOM
entity object that will be deleted in the S/4HANA system.SalesOrderBOM
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public DeleteBOMItemWithChangeNumberFluentHelper deleteBOMItemWithChangeNumber(String billOfMaterial, String billOfMaterialCategory, String billOfMaterialVariant, String billOfMaterialItemNodeNumber, String headerChangeDocument, String material, String plant, String engineeringChangeDocForEdit)
OrderBillOfMaterialService
Creates a fluent helper for the DeleteBOMItemWithChangeNumber OData function import.
deleteBOMItemWithChangeNumber
in interface OrderBillOfMaterialService
billOfMaterial
- Constraints: Not nullable, Maximum length: 8
Original parameter name from the Odata EDM: BillOfMaterial
billOfMaterialCategory
- Constraints: Not nullable, Maximum length: 1
Original parameter name from the Odata EDM: BillOfMaterialCategory
billOfMaterialVariant
- Constraints: Not nullable, Maximum length: 2
Original parameter name from the Odata EDM: BillOfMaterialVariant
billOfMaterialItemNodeNumber
- Constraints: Not nullable, Maximum length: 8
Original parameter name from the Odata EDM: BillOfMaterialItemNodeNumber
headerChangeDocument
- Constraints: Not nullable, Maximum length: 12
Original parameter name from the Odata EDM: HeaderChangeDocument
material
- Constraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
plant
- Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
engineeringChangeDocForEdit
- Constraints: Nullable, Maximum length: 12
Original parameter name from the Odata EDM: EngineeringChangeDocForEdit
execute
method on the fluent helper object.@Nonnull public DeleteBOMHdrWithChangeNumberFluentHelper deleteBOMHdrWithChangeNumber(String billOfMaterialCategory, String billOfMaterial, String billOfMaterialVariant, String engineeringChangeDocument, String material, String plant, String engineeringChangeDocForEdit)
OrderBillOfMaterialService
Creates a fluent helper for the DeleteBOMHdrWithChangeNumber OData function import.
deleteBOMHdrWithChangeNumber
in interface OrderBillOfMaterialService
billOfMaterialCategory
- Constraints: Not nullable, Maximum length: 1
Original parameter name from the Odata EDM: BillOfMaterialCategory
billOfMaterial
- Constraints: Not nullable, Maximum length: 8
Original parameter name from the Odata EDM: BillOfMaterial
billOfMaterialVariant
- Constraints: Not nullable, Maximum length: 2
Original parameter name from the Odata EDM: BillOfMaterialVariant
engineeringChangeDocument
- Constraints: Not nullable, Maximum length: 12
Original parameter name from the Odata EDM: EngineeringChangeDocument
material
- Constraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
plant
- Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
engineeringChangeDocForEdit
- Constraints: Nullable, Maximum length: 12
Original parameter name from the Odata EDM: EngineeringChangeDocForEdit
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.