Class DefaultBillOfMaterialsService
- All Implemented Interfaces:
BatchService<BillOfMaterialsServiceBatch>,BillOfMaterialsService
The service enables you to read, create, and update bills of material with and without version. The service is based on the OData protocol and can be consumed in SAP Fiori apps and on other user interfaces. The service contains either no header, one header, or multiple headers for the specified material and none or more items for each header. .
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_BILL_OF_MATERIAL_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2208 |
| Communication Scenario: | Product Lifecycle Management - Master Data Integration(SAP_COM_0105) |
| Scope Items: | Engineering Bill of Material - Versions Management(1NR), Engineering Bill of Material - Change Master Management(1R3), Make-to-Order Production - Finished Goods Sales and Final Assembly(BJE), Change Manufacturing Bill of Material for Production(3LO), Mass Change Manufacturing Bill of Material for Production(3LP) |
| Business Object: | Bill Of Material |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.BillOfMaterialsService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingBillOfMaterialsService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createBillOfMaterial(BillOfMaterial billOfMaterial) Deprecated.Create a newBillOfMaterialentity and save it to the S/4HANA system.createBillOfMaterialItem(BillOfMaterialItem billOfMaterialItem) Deprecated.Create a newBillOfMaterialItementity and save it to the S/4HANA system.explodeBOM(UUID billOfMaterialHeaderUUID, String material, String plant, String billOfMaterialVariant, String bOMExplosionApplication, BigDecimal requiredQuantity, String engineeringChangeDocument, Boolean bOMExplosionIsLimited, String bOMItmQtyIsScrapRelevant, String billOfMaterialItemCategory, String bOMExplosionAssembly, LocalDateTime bOMExplosionDate, BigDecimal bOMExplosionLevel, Boolean bOMExplosionIsMultilevel, String materialProvisionFltrType, String sparePartFltrType) Deprecated.Creates a fluent helper for the ExplodeBOM OData function import.Deprecated.Fetch multipleBillOfMaterialentities.Deprecated.Fetch multipleBillOfMaterialItementities.Deprecated.Fetch multipleBillOfMaterialUsageentities.Deprecated.Fetch multipleBillOfMaterialUsageTextentities.Deprecated.Fetch multipleBOMItemCategoryentities.Deprecated.Fetch multipleBOMItemCategoryTextentities.getBillOfMaterialByKey(UUID billOfMaterialHeaderUUID) Deprecated.Fetch a singleBillOfMaterialentity using key fields.getBillOfMaterialItemByKey(UUID billOfMaterialItemUUID) Deprecated.Fetch a singleBillOfMaterialItementity using key fields.getBillOfMaterialUsageByKey(String billOfMaterialVariantUsage) Deprecated.Fetch a singleBillOfMaterialUsageentity using key fields.getBillOfMaterialUsageTextByKey(String language, String billOfMaterialVariantUsage) Deprecated.Fetch a singleBillOfMaterialUsageTextentity using key fields.getBOMItemCategoryByKey(String billOfMaterialItemCategory) Deprecated.Fetch a singleBOMItemCategoryentity using key fields.getBOMItemCategoryTextByKey(String language, String billOfMaterialItemCategory) Deprecated.Fetch a singleBOMItemCategoryTextentity using key fields.releaseVersionBOM(UUID billOfMaterialHeaderUUID, String stlnr, String stlty, String stlal, String bomVersn, String versnst, Boolean versnlastind) Deprecated.Creates a fluent helper for the ReleaseVersionBOM OData function import.updateBillOfMaterial(BillOfMaterial billOfMaterial) Deprecated.Update an existingBillOfMaterialentity and save it to the S/4HANA system.updateBillOfMaterialItem(BillOfMaterialItem billOfMaterialItem) Deprecated.Update an existingBillOfMaterialItementity 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
-
DefaultBillOfMaterialsService
public DefaultBillOfMaterialsService()Deprecated.Creates a service usingBillOfMaterialsService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:BillOfMaterialsServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceBillOfMaterialsService- 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<BillOfMaterialsServiceBatch>
-
getAllBillOfMaterial
Deprecated.Description copied from interface:BillOfMaterialsServiceFetch multipleBillOfMaterialentities.- Specified by:
getAllBillOfMaterialin interfaceBillOfMaterialsService- Returns:
- A fluent helper to fetch multiple
BillOfMaterialentities. 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.
-
getBillOfMaterialByKey
@Nonnull public BillOfMaterialByKeyFluentHelper getBillOfMaterialByKey(UUID billOfMaterialHeaderUUID) Deprecated.Description copied from interface:BillOfMaterialsServiceFetch a singleBillOfMaterialentity using key fields.- Specified by:
getBillOfMaterialByKeyin interfaceBillOfMaterialsService- Parameters:
billOfMaterialHeaderUUID- Global identification of a BOM header change statusConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
BillOfMaterialentity 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.
-
createBillOfMaterial
@Nonnull public BillOfMaterialCreateFluentHelper createBillOfMaterial(@Nonnull BillOfMaterial billOfMaterial) Deprecated.Description copied from interface:BillOfMaterialsServiceCreate a newBillOfMaterialentity and save it to the S/4HANA system.- Specified by:
createBillOfMaterialin interfaceBillOfMaterialsService- Parameters:
billOfMaterial-BillOfMaterialentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
BillOfMaterialentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateBillOfMaterial
@Nonnull public BillOfMaterialUpdateFluentHelper updateBillOfMaterial(@Nonnull BillOfMaterial billOfMaterial) Deprecated.Description copied from interface:BillOfMaterialsServiceUpdate an existingBillOfMaterialentity and save it to the S/4HANA system.- Specified by:
updateBillOfMaterialin interfaceBillOfMaterialsService- Parameters:
billOfMaterial-BillOfMaterialentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
BillOfMaterialentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllBillOfMaterialItem
Deprecated.Description copied from interface:BillOfMaterialsServiceFetch multipleBillOfMaterialItementities.- Specified by:
getAllBillOfMaterialItemin interfaceBillOfMaterialsService- Returns:
- A fluent helper to fetch multiple
BillOfMaterialItementities. 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.
-
getBillOfMaterialItemByKey
@Nonnull public BillOfMaterialItemByKeyFluentHelper getBillOfMaterialItemByKey(UUID billOfMaterialItemUUID) Deprecated.Description copied from interface:BillOfMaterialsServiceFetch a singleBillOfMaterialItementity using key fields.- Specified by:
getBillOfMaterialItemByKeyin interfaceBillOfMaterialsService- Parameters:
billOfMaterialItemUUID- Global identification of an item's change statusConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
BillOfMaterialItementity 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.
-
createBillOfMaterialItem
@Nonnull public BillOfMaterialItemCreateFluentHelper createBillOfMaterialItem(@Nonnull BillOfMaterialItem billOfMaterialItem) Deprecated.Description copied from interface:BillOfMaterialsServiceCreate a newBillOfMaterialItementity and save it to the S/4HANA system.- Specified by:
createBillOfMaterialItemin interfaceBillOfMaterialsService- Parameters:
billOfMaterialItem-BillOfMaterialItementity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
BillOfMaterialItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateBillOfMaterialItem
@Nonnull public BillOfMaterialItemUpdateFluentHelper updateBillOfMaterialItem(@Nonnull BillOfMaterialItem billOfMaterialItem) Deprecated.Description copied from interface:BillOfMaterialsServiceUpdate an existingBillOfMaterialItementity and save it to the S/4HANA system.- Specified by:
updateBillOfMaterialItemin interfaceBillOfMaterialsService- Parameters:
billOfMaterialItem-BillOfMaterialItementity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
BillOfMaterialItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllBillOfMaterialUsage
Deprecated.Description copied from interface:BillOfMaterialsServiceFetch multipleBillOfMaterialUsageentities.- Specified by:
getAllBillOfMaterialUsagein interfaceBillOfMaterialsService- Returns:
- A fluent helper to fetch multiple
BillOfMaterialUsageentities. 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.
-
getBillOfMaterialUsageByKey
@Nonnull public BillOfMaterialUsageByKeyFluentHelper getBillOfMaterialUsageByKey(String billOfMaterialVariantUsage) Deprecated.Description copied from interface:BillOfMaterialsServiceFetch a singleBillOfMaterialUsageentity using key fields.- Specified by:
getBillOfMaterialUsageByKeyin interfaceBillOfMaterialsService- Parameters:
billOfMaterialVariantUsage- BOM UsageConstraints: Not nullable, Maximum length: 1
- Returns:
- A fluent helper to fetch a single
BillOfMaterialUsageentity 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.
-
getAllBillOfMaterialUsageText
Deprecated.Description copied from interface:BillOfMaterialsServiceFetch multipleBillOfMaterialUsageTextentities.- Specified by:
getAllBillOfMaterialUsageTextin interfaceBillOfMaterialsService- Returns:
- A fluent helper to fetch multiple
BillOfMaterialUsageTextentities. 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.
-
getBillOfMaterialUsageTextByKey
@Nonnull public BillOfMaterialUsageTextByKeyFluentHelper getBillOfMaterialUsageTextByKey(String language, String billOfMaterialVariantUsage) Deprecated.Description copied from interface:BillOfMaterialsServiceFetch a singleBillOfMaterialUsageTextentity using key fields.- Specified by:
getBillOfMaterialUsageTextByKeyin interfaceBillOfMaterialsService- Parameters:
language- Language KeyConstraints: Not nullable, Maximum length: 2
billOfMaterialVariantUsage- BOM UsageConstraints: Not nullable, Maximum length: 1
- Returns:
- A fluent helper to fetch a single
BillOfMaterialUsageTextentity 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.
-
getAllBOMItemCategory
Deprecated.Description copied from interface:BillOfMaterialsServiceFetch multipleBOMItemCategoryentities.- Specified by:
getAllBOMItemCategoryin interfaceBillOfMaterialsService- Returns:
- A fluent helper to fetch multiple
BOMItemCategoryentities. 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.
-
getBOMItemCategoryByKey
@Nonnull public BOMItemCategoryByKeyFluentHelper getBOMItemCategoryByKey(String billOfMaterialItemCategory) Deprecated.Description copied from interface:BillOfMaterialsServiceFetch a singleBOMItemCategoryentity using key fields.- Specified by:
getBOMItemCategoryByKeyin interfaceBillOfMaterialsService- Parameters:
billOfMaterialItemCategory- Item category (bill of material)Constraints: Not nullable, Maximum length: 1
- Returns:
- A fluent helper to fetch a single
BOMItemCategoryentity 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.
-
getAllBOMItemCategoryText
Deprecated.Description copied from interface:BillOfMaterialsServiceFetch multipleBOMItemCategoryTextentities.- Specified by:
getAllBOMItemCategoryTextin interfaceBillOfMaterialsService- Returns:
- A fluent helper to fetch multiple
BOMItemCategoryTextentities. 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.
-
getBOMItemCategoryTextByKey
@Nonnull public BOMItemCategoryTextByKeyFluentHelper getBOMItemCategoryTextByKey(String language, String billOfMaterialItemCategory) Deprecated.Description copied from interface:BillOfMaterialsServiceFetch a singleBOMItemCategoryTextentity using key fields.- Specified by:
getBOMItemCategoryTextByKeyin interfaceBillOfMaterialsService- Parameters:
language- Language KeyConstraints: Not nullable, Maximum length: 2
billOfMaterialItemCategory- Item category (bill of material)Constraints: Not nullable, Maximum length: 1
- Returns:
- A fluent helper to fetch a single
BOMItemCategoryTextentity 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.
-
explodeBOM
@Nonnull public ExplodeBOMFluentHelper explodeBOM(@Nonnull UUID billOfMaterialHeaderUUID, @Nullable String material, @Nullable String plant, @Nullable String billOfMaterialVariant, @Nullable String bOMExplosionApplication, @Nullable BigDecimal requiredQuantity, @Nullable String engineeringChangeDocument, @Nullable Boolean bOMExplosionIsLimited, @Nullable String bOMItmQtyIsScrapRelevant, @Nullable String billOfMaterialItemCategory, @Nullable String bOMExplosionAssembly, @Nullable LocalDateTime bOMExplosionDate, @Nullable BigDecimal bOMExplosionLevel, @Nullable Boolean bOMExplosionIsMultilevel, @Nullable String materialProvisionFltrType, @Nullable String sparePartFltrType) Deprecated.Description copied from interface:BillOfMaterialsServiceCreates a fluent helper for the ExplodeBOM OData function import.
- Specified by:
explodeBOMin interfaceBillOfMaterialsService- Parameters:
billOfMaterialHeaderUUID- ID hdr chge statusConstraints: none
Original parameter name from the Odata EDM: BillOfMaterialHeaderUUID
material- MaterialConstraints: Nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
plant- PlantConstraints: Nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
billOfMaterialVariant- Alternative BOMConstraints: Nullable, Maximum length: 2
Original parameter name from the Odata EDM: BillOfMaterialVariant
bOMExplosionApplication- BOM ApplicationConstraints: Nullable, Maximum length: 4
Original parameter name from the Odata EDM: BOMExplosionApplication
requiredQuantity- Base quantityConstraints: Nullable, Precision: 13, Scale: 3
Original parameter name from the Odata EDM: RequiredQuantity
engineeringChangeDocument- Change NumberConstraints: Nullable, Maximum length: 12
Original parameter name from the Odata EDM: EngineeringChangeDocument
bOMExplosionIsLimited- Limited ExplosionConstraints: Nullable
Original parameter name from the Odata EDM: BOMExplosionIsLimited
bOMItmQtyIsScrapRelevant- ExceptionsConstraints: Nullable, Maximum length: 1
Original parameter name from the Odata EDM: BOMItmQtyIsScrapRelevant
billOfMaterialItemCategory- Item CategoryConstraints: Nullable, Maximum length: 1
Original parameter name from the Odata EDM: BillOfMaterialItemCategory
bOMExplosionAssembly- MaterialConstraints: Nullable, Maximum length: 40
Original parameter name from the Odata EDM: BOMExplosionAssembly
bOMExplosionDate- Valid FromConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: BOMExplosionDate
bOMExplosionLevel- Explosion levelConstraints: Nullable, Precision: 3, Scale: 0
Original parameter name from the Odata EDM: BOMExplosionLevel
bOMExplosionIsMultilevel- Multi-lev.Constraints: Nullable
Original parameter name from the Odata EDM: BOMExplosionIsMultilevel
materialProvisionFltrType- Mat. Provision Ind.Constraints: Nullable, Maximum length: 1
Original parameter name from the Odata EDM: MaterialProvisionFltrType
sparePartFltrType- Spare Part IndicatorConstraints: Nullable, Maximum length: 1
Original parameter name from the Odata EDM: SparePartFltrType
- Returns:
- A fluent helper object that will execute the ExplodeBOM OData function import with the provided
parameters. To perform execution, call the
executemethod on the fluent helper object.
-
releaseVersionBOM
@Nonnull public ReleaseVersionBOMFluentHelper releaseVersionBOM(@Nonnull UUID billOfMaterialHeaderUUID, @Nullable String stlnr, @Nullable String stlty, @Nullable String stlal, @Nullable String bomVersn, @Nullable String versnst, @Nullable Boolean versnlastind) Deprecated.Description copied from interface:BillOfMaterialsServiceCreates a fluent helper for the ReleaseVersionBOM OData function import.
- Specified by:
releaseVersionBOMin interfaceBillOfMaterialsService- Parameters:
billOfMaterialHeaderUUID- ID hdr chge statusConstraints: none
Original parameter name from the Odata EDM: BillOfMaterialHeaderUUID
stlnr- Bill of MaterialConstraints: Nullable, Maximum length: 8
Original parameter name from the Odata EDM: Stlnr
stlty- BOM categoryConstraints: Nullable, Maximum length: 1
Original parameter name from the Odata EDM: Stlty
stlal- Alternative BOMConstraints: Nullable, Maximum length: 2
Original parameter name from the Odata EDM: Stlal
bomVersn- BOM VersionConstraints: Nullable, Maximum length: 4
Original parameter name from the Odata EDM: BomVersn
versnst- BOM Version StatusConstraints: Nullable, Maximum length: 2
Original parameter name from the Odata EDM: Versnst
versnlastind- Latest Rel VersionConstraints: Nullable
Original parameter name from the Odata EDM: Versnlastind
- Returns:
- A fluent helper object that will execute the ReleaseVersionBOM OData function import with the
provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-