@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultMaterialStockDisplayService") public class DefaultMaterialStockDisplayService extends Object implements MaterialStockDisplayService
This service enables you to retrieve material stock information using the OData protocol with filter data provided in the payload. It can be consumed by external warehouse applications..
Reference: SAP API Business Hub
OData Service: | API_MATERIAL_STOCK_SRV |
API Version: | 1 |
Communication Scenario: | Material Stock Integration (SAP_COM_0164) |
Scope Items: | Core Inventory Management (BMC), CORE Inventory Management (OMC) |
Authentication Methods: | Basic, x509 |
Business Object: | MaterialStock |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultMaterialStockDisplayService()
Creates a service using
MaterialStockDisplayService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultMaterialStockDisplayServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
MaterialStockFluentHelper |
getAllMaterialStock()
Fetch multiple
MaterialStock entities. |
MatlStkInAcctModFluentHelper |
getAllMatlStkInAcctMod()
Fetch multiple
MatlStkInAcctMod entities. |
MaterialStockByKeyFluentHelper |
getMaterialStockByKey(String material)
Fetch a single
MaterialStock entity using key fields. |
MatlStkInAcctModByKeyFluentHelper |
getMatlStkInAcctModByKey(String material,
String plant,
String storageLocation,
String batch,
String supplier,
String customer,
String wBSElementInternalID,
String sDDocument,
String sDDocumentItem,
String inventorySpecialStockType,
String inventoryStockType)
Fetch a single
MatlStkInAcctMod entity using key fields. |
DefaultMaterialStockDisplayService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultMaterialStockDisplayService()
MaterialStockDisplayService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultMaterialStockDisplayService withServicePath(@Nonnull String servicePath)
MaterialStockDisplayService
withServicePath
in interface MaterialStockDisplayService
servicePath
- Service path that will override the default.@Nonnull public DefaultMaterialStockDisplayServiceBatch batch()
batch
in interface BatchService<MaterialStockDisplayServiceBatch>
@Nonnull public MaterialStockFluentHelper getAllMaterialStock()
MaterialStockDisplayService
MaterialStock
entities.getAllMaterialStock
in interface MaterialStockDisplayService
MaterialStock
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 MaterialStockByKeyFluentHelper getMaterialStockByKey(String material)
MaterialStockDisplayService
MaterialStock
entity using key fields.getMaterialStockByKey
in interface MaterialStockDisplayService
material
- Alphanumeric key uniquely identifying the material.
Constraints: Not nullable, Maximum length: 40
MaterialStock
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 MatlStkInAcctModFluentHelper getAllMatlStkInAcctMod()
MaterialStockDisplayService
MatlStkInAcctMod
entities.getAllMatlStkInAcctMod
in interface MaterialStockDisplayService
MatlStkInAcctMod
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 MatlStkInAcctModByKeyFluentHelper getMatlStkInAcctModByKey(String material, String plant, String storageLocation, String batch, String supplier, String customer, String wBSElementInternalID, String sDDocument, String sDDocumentItem, String inventorySpecialStockType, String inventoryStockType)
MaterialStockDisplayService
MatlStkInAcctMod
entity using key fields.getMatlStkInAcctModByKey
in interface MaterialStockDisplayService
material
- Material in respect of which the stock is managed.
Constraints: Not nullable, Maximum length: 40
plant
- Key uniquely identifying a plant.
Constraints: Not nullable, Maximum length: 4
storageLocation
- Number of the storage location in which the material is stored. A plant may contain one or more
storage locations.
Constraints: Not nullable, Maximum length: 4
batch
- Assigns a material that is manufactured in batches or production lots to a specific batch.
Constraints: Not nullable, Maximum length: 10
supplier
- Specifies an alphanumeric key that uniquely identifies the supplier in the SAP system.
Constraints: Not nullable, Maximum length: 10
customer
- Gives an alphanumeric key, which clearly identifies the customer or supplier in the SAP system.
Constraints: Not nullable, Maximum length: 10
wBSElementInternalID
- Key that identifies the WBS element that is assigned to a sales order stock
Constraints: Not nullable, Maximum length: 24
sDDocument
- Uniquely identifies a sales order.
Constraints: Not nullable, Maximum length: 10
sDDocumentItem
- Uniquely identifies an item in a sales order.
Constraints: Not nullable, Maximum length: 6
inventorySpecialStockType
- Special Stock Type
Constraints: Not nullable, Maximum length: 1
inventoryStockType
- Unique stock type that identifies the purpose of the stock.
Constraints: Not nullable, Maximum length: 2
MatlStkInAcctMod
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.Copyright © 2021 SAP SE. All rights reserved.