@Named(value="com.sap.cloud.sdk.s4hana.onpremise.datamodel.odata.services.DefaultMaintenanceBillOfMaterialService") public class DefaultMaintenanceBillOfMaterialService extends Object implements MaintenanceBillOfMaterialService
This service enables you to create, update, or delete the bill of material header and item. It is based on the OData protocol and can be consumed in SAP Fiori apps and on other user interfaces. The service contains header and item nodes for the bill of material. When performing an operation, the necessary information is sent in the request as a payload. All information used when creating a maintenance BOM is checked for restricted values and authorizations. .
Reference: SAP API Business Hub
OData Service: | OP_API_MAINTENANCE_BOM_0001 |
API Version: | 1 |
Minimum ERP Version: | 2021 |
Authentication Methods: | Basic, x509 |
Business Object: | Bill Of Material |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultMaintenanceBillOfMaterialService()
Creates a service using
MaintenanceBillOfMaterialService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultMaintenanceBillOfMaterialServiceBatch |
batch() |
BOMItemCreateFluentHelper |
createBOMItem(BOMItem bOMItem)
Create a new
BOMItem
entity and save it to the S/4HANA system. |
MaintBOMHeaderCreateFluentHelper |
createMaintBOMHeader(MaintBOMHeader maintBOMHeader)
Create a new
MaintBOMHeader entity and save it to the S/4HANA system. |
BOMItemDeleteFluentHelper |
deleteBOMItem(BOMItem bOMItem)
Deletes an existing
BOMItem
entity in the S/4HANA system. |
MaintBOMHeaderDeleteFluentHelper |
deleteMaintBOMHeader(MaintBOMHeader maintBOMHeader)
Deletes an existing
MaintBOMHeader entity in the S/4HANA system. |
BOMItemFluentHelper |
getAllBOMItem()
Fetch multiple
BOMItem
entities. |
MaintBOMHeaderFluentHelper |
getAllMaintBOMHeader()
Fetch multiple
MaintBOMHeader entities. |
BOMItemByKeyFluentHelper |
getBOMItemByKey(String billOfMaterial,
String billOfMaterialCategory,
String billOfMaterialVariant,
String billOfMaterialVersion,
String technicalObject,
String plant,
String engineeringChangeDocument,
String billOfMaterialVariantUsage,
String billOfMaterialItemNodeNumber)
Fetch a single
BOMItem
entity using key fields. |
MaintBOMHeaderByKeyFluentHelper |
getMaintBOMHeaderByKey(String billOfMaterial,
String billOfMaterialCategory,
String billOfMaterialVariant,
String billOfMaterialVersion,
String technicalObject,
String plant,
String engineeringChangeDocument,
String billOfMaterialVariantUsage)
Fetch a single
MaintBOMHeader entity using key fields. |
BOMItemUpdateFluentHelper |
updateBOMItem(BOMItem bOMItem)
Update an existing
BOMItem
entity and save it to the S/4HANA system. |
MaintBOMHeaderUpdateFluentHelper |
updateMaintBOMHeader(MaintBOMHeader maintBOMHeader)
Update an existing
MaintBOMHeader entity and save it to the S/4HANA system. |
DefaultMaintenanceBillOfMaterialService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultMaintenanceBillOfMaterialService()
MaintenanceBillOfMaterialService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultMaintenanceBillOfMaterialService withServicePath(@Nonnull String servicePath)
MaintenanceBillOfMaterialService
withServicePath
in interface MaintenanceBillOfMaterialService
servicePath
- Service path that will override the default.@Nonnull public DefaultMaintenanceBillOfMaterialServiceBatch batch()
batch
in interface BatchService<MaintenanceBillOfMaterialServiceBatch>
@Nonnull public BOMItemFluentHelper getAllBOMItem()
MaintenanceBillOfMaterialService
BOMItem
entities.getAllBOMItem
in interface MaintenanceBillOfMaterialService
BOMItem
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 BOMItemByKeyFluentHelper getBOMItemByKey(String billOfMaterial, String billOfMaterialCategory, String billOfMaterialVariant, String billOfMaterialVersion, String technicalObject, String plant, String engineeringChangeDocument, String billOfMaterialVariantUsage, String billOfMaterialItemNodeNumber)
MaintenanceBillOfMaterialService
BOMItem
entity using key fields.getBOMItemByKey
in interface MaintenanceBillOfMaterialService
billOfMaterialCategory
- BOM category
Constraints: Not nullable, Maximum length: 1
billOfMaterialVariant
- Alternative BOM
Constraints: Not nullable, Maximum length: 2
billOfMaterialVersion
- BOM Version
Constraints: Not nullable, Maximum length: 4
technicalObject
- Material Number
Constraints: Not nullable, Maximum length: 40
plant
- Plant
Constraints: Not nullable, Maximum length: 4
engineeringChangeDocument
- Change Number
Constraints: Not nullable, Maximum length: 12
billOfMaterialVariantUsage
- BOM Usage
Constraints: Not nullable, Maximum length: 1
billOfMaterialItemNodeNumber
- BOM item node number
Constraints: Not nullable, Maximum length: 8
BOMItem
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 BOMItemCreateFluentHelper createBOMItem(@Nonnull BOMItem bOMItem)
MaintenanceBillOfMaterialService
BOMItem
entity and save it to the S/4HANA system.createBOMItem
in interface MaintenanceBillOfMaterialService
bOMItem
- BOMItem
entity object that will be created in the S/4HANA system.BOMItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public BOMItemUpdateFluentHelper updateBOMItem(@Nonnull BOMItem bOMItem)
MaintenanceBillOfMaterialService
BOMItem
entity and save it to the S/4HANA system.updateBOMItem
in interface MaintenanceBillOfMaterialService
bOMItem
- BOMItem
entity object that will be updated in the S/4HANA system.BOMItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public BOMItemDeleteFluentHelper deleteBOMItem(@Nonnull BOMItem bOMItem)
MaintenanceBillOfMaterialService
BOMItem
entity in the S/4HANA system.deleteBOMItem
in interface MaintenanceBillOfMaterialService
bOMItem
- BOMItem
entity object that will be deleted in the S/4HANA system.BOMItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public MaintBOMHeaderFluentHelper getAllMaintBOMHeader()
MaintenanceBillOfMaterialService
MaintBOMHeader
entities.getAllMaintBOMHeader
in interface MaintenanceBillOfMaterialService
MaintBOMHeader
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 MaintBOMHeaderByKeyFluentHelper getMaintBOMHeaderByKey(String billOfMaterial, String billOfMaterialCategory, String billOfMaterialVariant, String billOfMaterialVersion, String technicalObject, String plant, String engineeringChangeDocument, String billOfMaterialVariantUsage)
MaintenanceBillOfMaterialService
MaintBOMHeader
entity using key fields.getMaintBOMHeaderByKey
in interface MaintenanceBillOfMaterialService
billOfMaterialCategory
- BOM category
Constraints: Not nullable, Maximum length: 1
billOfMaterialVariant
- Alternative BOM
Constraints: Not nullable, Maximum length: 2
billOfMaterialVersion
- BOM Version
Constraints: Not nullable, Maximum length: 4
technicalObject
- Material Number
Constraints: Not nullable, Maximum length: 40
plant
- Plant
Constraints: Not nullable, Maximum length: 4
engineeringChangeDocument
- Change Number
Constraints: Not nullable, Maximum length: 12
billOfMaterialVariantUsage
- BOM Usage
Constraints: Not nullable, Maximum length: 1
MaintBOMHeader
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 MaintBOMHeaderCreateFluentHelper createMaintBOMHeader(@Nonnull MaintBOMHeader maintBOMHeader)
MaintenanceBillOfMaterialService
MaintBOMHeader
entity and save it to the S/4HANA system.createMaintBOMHeader
in interface MaintenanceBillOfMaterialService
maintBOMHeader
- MaintBOMHeader
entity object that will be created in the S/4HANA system.MaintBOMHeader
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public MaintBOMHeaderUpdateFluentHelper updateMaintBOMHeader(@Nonnull MaintBOMHeader maintBOMHeader)
MaintenanceBillOfMaterialService
MaintBOMHeader
entity and save it to the S/4HANA system.updateMaintBOMHeader
in interface MaintenanceBillOfMaterialService
maintBOMHeader
- MaintBOMHeader
entity object that will be updated in the S/4HANA system.MaintBOMHeader
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public MaintBOMHeaderDeleteFluentHelper deleteMaintBOMHeader(@Nonnull MaintBOMHeader maintBOMHeader)
MaintenanceBillOfMaterialService
MaintBOMHeader
entity in the S/4HANA system.deleteMaintBOMHeader
in interface MaintenanceBillOfMaterialService
maintBOMHeader
- MaintBOMHeader
entity object that will be deleted in the S/4HANA system.MaintBOMHeader
entity. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2022 SAP SE. All rights reserved.