Class DefaultMaintenanceBillOfMaterialService

java.lang.Object
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultMaintenanceBillOfMaterialService
All Implemented Interfaces:
BatchService<MaintenanceBillOfMaterialServiceBatch>, MaintenanceBillOfMaterialService

@Named("com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultMaintenanceBillOfMaterialService") @Deprecated public class DefaultMaintenanceBillOfMaterialService extends Object implements MaintenanceBillOfMaterialService
Deprecated.
The service and all its related classes are deprecated. Please use the odata generator to generate the VDM.

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. .

Business Documentation

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
  • Constructor Details

  • Method Details

    • withServicePath

      @Nonnull public DefaultMaintenanceBillOfMaterialService withServicePath(@Nonnull String servicePath)
      Deprecated.
      Description copied from interface: MaintenanceBillOfMaterialService
      Overrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.
      Specified by:
      withServicePath in interface MaintenanceBillOfMaterialService
      Parameters:
      servicePath - Service path that will override the default.
      Returns:
      A new service instance with the specified service path.
    • batch

      Deprecated.
      Specified by:
      batch in interface BatchService<MaintenanceBillOfMaterialServiceBatch>
    • getAllBOMItem

      @Nonnull public BOMItemFluentHelper getAllBOMItem()
      Deprecated.
      Description copied from interface: MaintenanceBillOfMaterialService
      Fetch multiple BOMItem entities.
      Specified by:
      getAllBOMItem in interface MaintenanceBillOfMaterialService
      Returns:
      A fluent helper to fetch multiple 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.
    • 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: MaintenanceBillOfMaterialService
      Fetch a single BOMItem entity using key fields.
      Specified by:
      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 1

      Constraints: Not nullable, Maximum length: 18

      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

      Returns:
      A fluent helper to fetch a single 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.
    • createBOMItem

      @Nonnull public BOMItemCreateFluentHelper createBOMItem(@Nonnull BOMItem bOMItem)
      Deprecated.
      Description copied from interface: MaintenanceBillOfMaterialService
      Create a new BOMItem entity and save it to the S/4HANA system.
      Specified by:
      createBOMItem in interface MaintenanceBillOfMaterialService
      Parameters:
      bOMItem - BOMItem entity object that will be created in the S/4HANA system.
      Returns:
      A fluent helper to create a new BOMItem entity. To perform execution, call the execute method on the fluent helper object.
    • updateBOMItem

      @Nonnull public BOMItemUpdateFluentHelper updateBOMItem(@Nonnull BOMItem bOMItem)
      Deprecated.
      Description copied from interface: MaintenanceBillOfMaterialService
      Update an existing BOMItem entity and save it to the S/4HANA system.
      Specified by:
      updateBOMItem in interface MaintenanceBillOfMaterialService
      Parameters:
      bOMItem - BOMItem entity object that will be updated in the S/4HANA system.
      Returns:
      A fluent helper to update an existing BOMItem entity. To perform execution, call the execute method on the fluent helper object.
    • deleteBOMItem

      @Nonnull public BOMItemDeleteFluentHelper deleteBOMItem(@Nonnull BOMItem bOMItem)
      Deprecated.
      Description copied from interface: MaintenanceBillOfMaterialService
      Deletes an existing BOMItem entity in the S/4HANA system.
      Specified by:
      deleteBOMItem in interface MaintenanceBillOfMaterialService
      Parameters:
      bOMItem - BOMItem entity object that will be deleted in the S/4HANA system.
      Returns:
      A fluent helper to delete an existing BOMItem entity. To perform execution, call the execute method on the fluent helper object.
    • getAllMaintBOMHeader

      @Nonnull public MaintBOMHeaderFluentHelper getAllMaintBOMHeader()
      Deprecated.
      Description copied from interface: MaintenanceBillOfMaterialService
      Fetch multiple MaintBOMHeader entities.
      Specified by:
      getAllMaintBOMHeader in interface MaintenanceBillOfMaterialService
      Returns:
      A fluent helper to fetch multiple 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.
    • 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: MaintenanceBillOfMaterialService
      Fetch a single MaintBOMHeader entity using key fields.
      Specified by:
      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 1

      Constraints: Not nullable, Maximum length: 18

      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

      Returns:
      A fluent helper to fetch a single 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.
    • createMaintBOMHeader

      @Nonnull public MaintBOMHeaderCreateFluentHelper createMaintBOMHeader(@Nonnull MaintBOMHeader maintBOMHeader)
      Deprecated.
      Description copied from interface: MaintenanceBillOfMaterialService
      Create a new MaintBOMHeader entity and save it to the S/4HANA system.
      Specified by:
      createMaintBOMHeader in interface MaintenanceBillOfMaterialService
      Parameters:
      maintBOMHeader - MaintBOMHeader entity object that will be created in the S/4HANA system.
      Returns:
      A fluent helper to create a new MaintBOMHeader entity. To perform execution, call the execute method on the fluent helper object.
    • updateMaintBOMHeader

      @Nonnull public MaintBOMHeaderUpdateFluentHelper updateMaintBOMHeader(@Nonnull MaintBOMHeader maintBOMHeader)
      Deprecated.
      Description copied from interface: MaintenanceBillOfMaterialService
      Update an existing MaintBOMHeader entity and save it to the S/4HANA system.
      Specified by:
      updateMaintBOMHeader in interface MaintenanceBillOfMaterialService
      Parameters:
      maintBOMHeader - MaintBOMHeader entity object that will be updated in the S/4HANA system.
      Returns:
      A fluent helper to update an existing MaintBOMHeader entity. To perform execution, call the execute method on the fluent helper object.
    • deleteMaintBOMHeader

      @Nonnull public MaintBOMHeaderDeleteFluentHelper deleteMaintBOMHeader(@Nonnull MaintBOMHeader maintBOMHeader)
      Deprecated.
      Description copied from interface: MaintenanceBillOfMaterialService
      Deletes an existing MaintBOMHeader entity in the S/4HANA system.
      Specified by:
      deleteMaintBOMHeader in interface MaintenanceBillOfMaterialService
      Parameters:
      maintBOMHeader - MaintBOMHeader entity object that will be deleted in the S/4HANA system.
      Returns:
      A fluent helper to delete an existing MaintBOMHeader entity. To perform execution, call the execute method 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: MaintenanceBillOfMaterialService

      Creates a fluent helper for the CreateVariantBOM OData function import.

      Specified by:
      createVariantBOM in interface MaintenanceBillOfMaterialService
      Parameters:
      technicalObject - Technical Object

      Constraints: Not nullable, Maximum length: 40

      Original parameter name from the Odata EDM: TechnicalObject

      billOfMaterialVariantUsage - BOM Usage

      Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: BillOfMaterialVariantUsage

      plant - Plant

      Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: Plant

      billOfMaterialCategory - BOM category

      Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: BillOfMaterialCategory

      referenceObjectID - Owner object ID

      Constraints: Not nullable, Maximum length: 70

      Original parameter name from the Odata EDM: ReferenceObjectID

      headerValidityStartDate - Valid From

      Constraints: Nullable, Precision: 0

      Original parameter name from the Odata EDM: HeaderValidityStartDate

      engineeringChangeDocument - Change Number

      Constraints: 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 execute method 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: MaintenanceBillOfMaterialService

      Creates a fluent helper for the GetMaintBOMItems OData function import.

      Specified by:
      getMaintBOMItems in interface MaintenanceBillOfMaterialService
      Parameters:
      technicalObject - Technical Object

      Constraints: Not nullable, Maximum length: 40

      Original parameter name from the Odata EDM: TechnicalObject

      billOfMaterialVariantUsage - BOM Usage

      Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: BillOfMaterialVariantUsage

      plant - Plant

      Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: Plant

      billOfMaterialCategory - BOM category

      Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: BillOfMaterialCategory

      billOfMaterialVariant - Alternative BOM

      Constraints: Not nullable, Maximum length: 2

      Original parameter name from the Odata EDM: BillOfMaterialVariant

      billOfMaterialVersion - BOM Version

      Constraints: 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 execute method on the fluent helper object.