Class DefaultMaintenanceBillOfMaterialService
- All Implemented Interfaces:
BatchService<MaintenanceBillOfMaterialServiceBatch>,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 Business Accelerator Hub
Details:
| OData Service: | API_MAINTENANCEBOM |
| API Version: | 1.0.1 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Maintenance BOM API Integration(SAP_COM_0762) |
| Scope Items: | Reactive Maintenance(4HH), Proactive Maintenance(4HI), Improvement Maintenance(4VT), Operational and Overhead Maintenance(4WM) |
| Authentication Methods: | x509 |
| Business Object: | Maintenance Bill Of Material |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.MaintenanceBillOfMaterialService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingMaintenanceBillOfMaterialService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createBOMItem(BOMItem bOMItem) Deprecated.Create a newBOMItementity and save it to the S/4HANA system.createMaintBOMHeader(MaintBOMHeader maintBOMHeader) Deprecated.Create a newMaintBOMHeaderentity and save it to the S/4HANA system.createVariantBOM(String technicalObject, String billOfMaterialVariantUsage, String plant, String billOfMaterialCategory, String referenceObjectID, LocalDateTime headerValidityStartDate, String engineeringChangeDocument) Deprecated.Creates a fluent helper for the CreateVariantBOM OData function import.deleteBOMItem(BOMItem bOMItem) Deprecated.Deletes an existingBOMItementity in the S/4HANA system.deleteMaintBOMHeader(MaintBOMHeader maintBOMHeader) Deprecated.Deletes an existingMaintBOMHeaderentity in the S/4HANA system.Deprecated.Fetch multipleBOMItementities.Deprecated.Fetch multipleMaintBOMHeaderentities.getBOMItemByKey(String billOfMaterial, String billOfMaterialCategory, String billOfMaterialVariant, String billOfMaterialVersion, String technicalObject, String plant, String engineeringChangeDocument, String billOfMaterialVariantUsage, String billOfMaterialItemNodeNumber) Deprecated.Fetch a singleBOMItementity using key fields.getMaintBOMHeaderByKey(String billOfMaterial, String billOfMaterialCategory, String billOfMaterialVariant, String billOfMaterialVersion, String technicalObject, String plant, String engineeringChangeDocument, String billOfMaterialVariantUsage) Deprecated.Fetch a singleMaintBOMHeaderentity using key fields.getMaintBOMItems(String technicalObject, String billOfMaterialVariantUsage, String plant, String billOfMaterialCategory, String billOfMaterialVariant, String billOfMaterialVersion) Deprecated.Creates a fluent helper for the GetMaintBOMItems OData function import.updateBOMItem(BOMItem bOMItem) Deprecated.Update an existingBOMItementity and save it to the S/4HANA system.updateMaintBOMHeader(MaintBOMHeader maintBOMHeader) Deprecated.Update an existingMaintBOMHeaderentity 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.
-
Constructor Details
-
DefaultMaintenanceBillOfMaterialService
public DefaultMaintenanceBillOfMaterialService()Deprecated.Creates a service usingMaintenanceBillOfMaterialService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
@Nonnull public DefaultMaintenanceBillOfMaterialService withServicePath(@Nonnull String servicePath) Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceMaintenanceBillOfMaterialService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<MaintenanceBillOfMaterialServiceBatch>
-
getAllBOMItem
Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceFetch multipleBOMItementities.- Specified by:
getAllBOMItemin interfaceMaintenanceBillOfMaterialService- Returns:
- A fluent helper to fetch multiple
BOMItementities. 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.
-
getBOMItemByKey
@Nonnull public BOMItemByKeyFluentHelper getBOMItemByKey(String billOfMaterial, String billOfMaterialCategory, String billOfMaterialVariant, String billOfMaterialVersion, String technicalObject, String plant, String engineeringChangeDocument, String billOfMaterialVariantUsage, String billOfMaterialItemNodeNumber) Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceFetch a singleBOMItementity using key fields.- Specified by:
getBOMItemByKeyin interfaceMaintenanceBillOfMaterialServicebillOfMaterialCategory- BOM categoryConstraints: Not nullable, Maximum length: 1
billOfMaterialVariant- Alternative BOMConstraints: Not nullable, Maximum length: 2
billOfMaterialVersion- BOM VersionConstraints: Not nullable, Maximum length: 4
technicalObject- Material 1Constraints: Not nullable, Maximum length: 18
plant- PlantConstraints: Not nullable, Maximum length: 4
engineeringChangeDocument- Change NumberConstraints: Not nullable, Maximum length: 12
billOfMaterialVariantUsage- BOM UsageConstraints: Not nullable, Maximum length: 1
billOfMaterialItemNodeNumber- BOM item node numberConstraints: Not nullable, Maximum length: 8
- Returns:
- A fluent helper to fetch a single
BOMItementity 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.
-
createBOMItem
Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceCreate a newBOMItementity and save it to the S/4HANA system.- Specified by:
createBOMItemin interfaceMaintenanceBillOfMaterialService- Parameters:
bOMItem-BOMItementity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
BOMItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateBOMItem
Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceUpdate an existingBOMItementity and save it to the S/4HANA system.- Specified by:
updateBOMItemin interfaceMaintenanceBillOfMaterialService- Parameters:
bOMItem-BOMItementity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
BOMItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteBOMItem
Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceDeletes an existingBOMItementity in the S/4HANA system.- Specified by:
deleteBOMItemin interfaceMaintenanceBillOfMaterialService- Parameters:
bOMItem-BOMItementity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
BOMItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllMaintBOMHeader
Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceFetch multipleMaintBOMHeaderentities.- Specified by:
getAllMaintBOMHeaderin interfaceMaintenanceBillOfMaterialService- Returns:
- A fluent helper to fetch multiple
MaintBOMHeaderentities. 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.
-
getMaintBOMHeaderByKey
@Nonnull public MaintBOMHeaderByKeyFluentHelper getMaintBOMHeaderByKey(String billOfMaterial, String billOfMaterialCategory, String billOfMaterialVariant, String billOfMaterialVersion, String technicalObject, String plant, String engineeringChangeDocument, String billOfMaterialVariantUsage) Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceFetch a singleMaintBOMHeaderentity using key fields.- Specified by:
getMaintBOMHeaderByKeyin interfaceMaintenanceBillOfMaterialServicebillOfMaterialCategory- BOM categoryConstraints: Not nullable, Maximum length: 1
billOfMaterialVariant- Alternative BOMConstraints: Not nullable, Maximum length: 2
billOfMaterialVersion- BOM VersionConstraints: Not nullable, Maximum length: 4
technicalObject- Material 1Constraints: Not nullable, Maximum length: 18
plant- PlantConstraints: Not nullable, Maximum length: 4
engineeringChangeDocument- Change NumberConstraints: Not nullable, Maximum length: 12
billOfMaterialVariantUsage- BOM UsageConstraints: Not nullable, Maximum length: 1
- Returns:
- A fluent helper to fetch a single
MaintBOMHeaderentity 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.
-
createMaintBOMHeader
@Nonnull public MaintBOMHeaderCreateFluentHelper createMaintBOMHeader(@Nonnull MaintBOMHeader maintBOMHeader) Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceCreate a newMaintBOMHeaderentity and save it to the S/4HANA system.- Specified by:
createMaintBOMHeaderin interfaceMaintenanceBillOfMaterialService- Parameters:
maintBOMHeader-MaintBOMHeaderentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
MaintBOMHeaderentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateMaintBOMHeader
@Nonnull public MaintBOMHeaderUpdateFluentHelper updateMaintBOMHeader(@Nonnull MaintBOMHeader maintBOMHeader) Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceUpdate an existingMaintBOMHeaderentity and save it to the S/4HANA system.- Specified by:
updateMaintBOMHeaderin interfaceMaintenanceBillOfMaterialService- Parameters:
maintBOMHeader-MaintBOMHeaderentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
MaintBOMHeaderentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteMaintBOMHeader
@Nonnull public MaintBOMHeaderDeleteFluentHelper deleteMaintBOMHeader(@Nonnull MaintBOMHeader maintBOMHeader) Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceDeletes an existingMaintBOMHeaderentity in the S/4HANA system.- Specified by:
deleteMaintBOMHeaderin interfaceMaintenanceBillOfMaterialService- Parameters:
maintBOMHeader-MaintBOMHeaderentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
MaintBOMHeaderentity. To perform execution, call theexecutemethod on the fluent helper object.
-
createVariantBOM
@Nonnull public CreateVariantBOMFluentHelper createVariantBOM(@Nonnull String technicalObject, @Nonnull String billOfMaterialVariantUsage, @Nonnull String plant, @Nonnull String billOfMaterialCategory, @Nonnull String referenceObjectID, @Nullable LocalDateTime headerValidityStartDate, @Nullable String engineeringChangeDocument) Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceCreates a fluent helper for the CreateVariantBOM OData function import.
- Specified by:
createVariantBOMin interfaceMaintenanceBillOfMaterialService- Parameters:
technicalObject- Technical ObjectConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: TechnicalObject
billOfMaterialVariantUsage- BOM UsageConstraints: Not nullable, Maximum length: 1
Original parameter name from the Odata EDM: BillOfMaterialVariantUsage
plant- PlantConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
billOfMaterialCategory- BOM categoryConstraints: Not nullable, Maximum length: 1
Original parameter name from the Odata EDM: BillOfMaterialCategory
referenceObjectID- Owner object IDConstraints: Not nullable, Maximum length: 70
Original parameter name from the Odata EDM: ReferenceObjectID
headerValidityStartDate- Valid FromConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: HeaderValidityStartDate
engineeringChangeDocument- Change NumberConstraints: Nullable, Maximum length: 12
Original parameter name from the Odata EDM: EngineeringChangeDocument
- Returns:
- A fluent helper object that will execute the CreateVariantBOM OData function import with the
provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-
getMaintBOMItems
@Nonnull public GetMaintBOMItemsFluentHelper getMaintBOMItems(@Nonnull String technicalObject, @Nonnull String billOfMaterialVariantUsage, @Nonnull String plant, @Nonnull String billOfMaterialCategory, @Nonnull String billOfMaterialVariant, @Nonnull String billOfMaterialVersion) Deprecated.Description copied from interface:MaintenanceBillOfMaterialServiceCreates a fluent helper for the GetMaintBOMItems OData function import.
- Specified by:
getMaintBOMItemsin interfaceMaintenanceBillOfMaterialService- Parameters:
technicalObject- Technical ObjectConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: TechnicalObject
billOfMaterialVariantUsage- BOM UsageConstraints: Not nullable, Maximum length: 1
Original parameter name from the Odata EDM: BillOfMaterialVariantUsage
plant- PlantConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
billOfMaterialCategory- BOM categoryConstraints: Not nullable, Maximum length: 1
Original parameter name from the Odata EDM: BillOfMaterialCategory
billOfMaterialVariant- Alternative BOMConstraints: Not nullable, Maximum length: 2
Original parameter name from the Odata EDM: BillOfMaterialVariant
billOfMaterialVersion- BOM VersionConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: BillOfMaterialVersion
- Returns:
- A fluent helper object that will execute the GetMaintBOMItems OData function import with the
provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-