@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) |
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 inventorySpecialStockType,
String inventoryStockType,
String plant,
String storageLocation,
String batch,
String supplier,
String customer,
String wBSElementInternalID,
String sDDocument,
String sDDocumentItem)
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
- Material Number
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 inventorySpecialStockType, String inventoryStockType, String plant, String storageLocation, String batch, String supplier, String customer, String wBSElementInternalID, String sDDocument, String sDDocumentItem)
MaterialStockDisplayService
MatlStkInAcctMod
entity using key fields.getMatlStkInAcctModByKey
in interface MaterialStockDisplayService
material
- Material in Respect of Which Stock is Managed
Constraints: Not nullable, Maximum length: 40
inventorySpecialStockType
- Special Stock Indicator
Constraints: Not nullable, Maximum length: 1
inventoryStockType
- Stock Type of Goods Movement (Stock Identifier)
Constraints: Not nullable, Maximum length: 2
plant
- Plant
Constraints: Not nullable, Maximum length: 4
storageLocation
- Storage Location
Constraints: Not nullable, Maximum length: 4
batch
- Batch Number (Stock Identifier)
Constraints: Not nullable, Maximum length: 10
supplier
- Account Number of Supplier or Creditor (Stock Identifier)
Constraints: Not nullable, Maximum length: 10
customer
- Customer Number (Stock Identifier)
Constraints: Not nullable, Maximum length: 10
wBSElementInternalID
- Valuated Sales Order Stock WBS Element
Constraints: Not nullable, Maximum length: 24
sDDocument
- Sales Order Number of Valuated Sales Order Stock
Constraints: Not nullable, Maximum length: 10
sDDocumentItem
- Sales Order Item of Valuated Sales Order Stock
Constraints: Not nullable, Maximum length: 6
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 © 2019 SAP SE. All rights reserved.