P_ProductStorageWD

DDL: P_PRODUCTSTORAGEWD SQL: PPRDSTORAGEWD Type: view COMPOSITE

P_ProductStorageWD is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (I_Productstorage, I_DraftAdministrativeData, P_Productstoraged, P_Productstoraged, P_ProductD) and exposes 28 fields with key fields Draftkey, ActiveProduct, ActiveProduct.

Data Sources (5)

SourceAliasJoin Type
I_Productstorage ActiveDocument from
I_DraftAdministrativeData DraftAdministrativeData inner
P_Productstoraged DraftDocument left_outer
P_Productstoraged DraftDocument union_all
P_ProductD DraftRootDocument inner

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PPRDSTORAGEWD view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientDependent true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY Draftkey
KEY ActiveProduct I_Productstorage Product Product
ParentDraftKey NodeID
Product I_Productstorage Product Product Sold
StorageConditions I_Productstorage StorageConditions Stor.conditions
TemperatureConditionInd I_Productstorage TemperatureConditionInd Temperature
HazardousMaterialNumber I_Productstorage HazardousMaterialNumber Haz. matl no.
NmbrOfGROrGISlipsToPrintQty I_Productstorage NmbrOfGROrGISlipsToPrintQty Number of GR slips
LabelType I_Productstorage LabelType Label Type
LabelForm I_Productstorage LabelForm Label Form
MinRemainingShelfLife I_Productstorage MinRemainingShelfLife Rem. Shelf Life
ExpirationDate I_Productstorage ExpirationDate Expiratn Date
StorageBinInstruction I_Productstorage StorageBinInstruction Container
TotalShelfLifeStoragePercent I_Productstorage TotalShelfLifeStoragePercent Storage %
ShelfLifeExpirationDatePeriod I_Productstorage ShelfLifeExpirationDatePeriod Period Ind.
ShelfLifeExprtnDateRndingRule I_Productstorage ShelfLifeExprtnDateRndingRule Rounding rule
IsActiveEntity
HasActiveEntity
DraftKeyasDraftKey
KEY ActiveProduct P_Productstoraged ActiveProduct Product
ParentDraftKey P_Productstoraged ParentDraftKey NodeID
Product P_ProductD product Product Sold
labeltype P_Productstoraged labeltype Label Type
labelform P_Productstoraged labelform Label Form
IsActiveEntity
HasActiveEntity
HasDraftEntity
DraftAdministrativeDataUUID

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_ProductStorageWD.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PPRDSTORAGEWD

CREATE VIEW P_ProductStorageWD AS
SELECT
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS Draftkey,
  ActiveDocument.Product AS ActiveProduct,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS ParentDraftKey,
  ActiveDocument.Product AS Product,
  ActiveDocument.StorageConditions AS StorageConditions,
  ActiveDocument.TemperatureConditionInd AS TemperatureConditionInd,
  ActiveDocument.HazardousMaterialNumber AS HazardousMaterialNumber,
  ActiveDocument.NmbrOfGROrGISlipsToPrintQty AS NmbrOfGROrGISlipsToPrintQty,
  ActiveDocument.LabelType AS LabelType,
  ActiveDocument.LabelForm AS LabelForm,
  ActiveDocument.MinRemainingShelfLife AS MinRemainingShelfLife,
  ActiveDocument.ExpirationDate AS ExpirationDate,
  ActiveDocument.StorageBinInstruction AS StorageBinInstruction,
  ActiveDocument.TotalShelfLifeStoragePercent AS TotalShelfLifeStoragePercent,
  ActiveDocument.ShelfLifeExpirationDatePeriod AS ShelfLifeExpirationDatePeriod,
  ActiveDocument.ShelfLifeExprtnDateRndingRule AS ShelfLifeExprtnDateRndingRule,
  cast( 'X' as boole_d ) AS IsActiveEntity,
  cast( ' ' as boole_d ) AS HasActiveEntity,
  cast(DraftDocument.ParentDraftKey as sysuuid_x ) as DraftAdministrativeDataUUID AS DraftKeyasDraftKey,
  cast( ' ' as boole_d ) AS HasDraftEntity,
  cast(DraftDocument.ParentDraftKey as sysuuid_x ) AS DraftAdministrativeDataUUID
FROM I_Productstorage AS ActiveDocument
LEFT OUTER JOIN P_Productstoraged AS DraftDocument ON /* join condition not captured in parsed metadata */
INNER JOIN P_ProductD AS DraftRootDocument ON /* join condition not captured in parsed metadata */
INNER JOIN I_DraftAdministrativeData AS DraftAdministrativeData ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_Productstoraged
;