Symptom
- CDS view or API that provides relationships: Product–Material, Batch–Batch Number, Storage Bin–Serial Number.
- Expected hierarchy: Product → Batch → Storage Bin → Serial Number.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
Not Relevant
Cause
Resolution
- Use the C1-released CDS view I_EWM_PHYSSTOCKPROD or the remote API API_WHSE_PHYSSTOCKPROD to retrieve physical stock data for the required product.
- Include serial numbers by consuming the association to I_EWM_SERIALNUMBER from I_EWM_PHYSSTOCKPROD.
- Leverage the view’s integrated sources to complete the hierarchy:
- Batch details via I_BatchDistinct.
- Product details via I_Product.
- Storage bin via I_EWM_StorageBin_2.
- Handling unit header via I_EWM_HandlingUnitHdr_2 (if needed for your scenario).
- Build the required hierarchy Product → Batch → Storage Bin → Serial Number from the fields exposed by I_EWM_PHYSSTOCKPROD. This is the recommended option to derive the relationship when a single direct standard view is not available.
See Also
Keywords
i_ewm_physstockprod, api_whse_physstockprod, cds view, ewm, physical stock, batch to storage bin, serial number, product batch hierarchy, i_ewm_serialnumber, i_batchdistinct, i_ewm_storagebin_2, i_product, warehouse management, s/4hana cloud public edition, storage bin linkage , KBA , SCM-EWM-WOP-2CL , Warehouse Order Processing (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public