P_ProductStorageLocationWD

DDL: P_PRODUCTSTORAGELOCATIONWD SQL: PPRDSTORAGELOCWD Type: view COMPOSITE

P_ProductStorageLocationWD is a Composite CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 42 fields with key fields Draftkey, ActiveProduct, ActivePlant, ActiveStorageLocation, ActiveProduct.

Data Sources (6)

SourceAliasJoin Type
I_ProductStorageLocation ActiveDocument from
I_DraftAdministrativeData DraftAdministrativeData inner
P_ProductStorageLocationD DraftDocument left_outer
P_ProductStorageLocationD DraftDocument union_all
P_ProductPlantD DraftPlantDocument inner
P_ProductD DraftRootDocument inner

Annotations (6)

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

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY Draftkey
KEY ActiveProduct I_ProductStorageLocation Product Product
KEY ActivePlant I_ProductStorageLocation Plant Plant ID
KEY ActiveStorageLocation I_ProductStorageLocation StorageLocation Stor. Location
ParentDraftKey NodeID
Product I_ProductStorageLocation Product Product Sold
Plant I_ProductStorageLocation Plant Valuation Area
StorageLocation I_ProductStorageLocation StorageLocation StorageLocation
WarehouseStorageBin I_ProductStorageLocation WarehouseStorageBin Storage Bin
MaintenanceStatus I_ProductStorageLocation MaintenanceStatus Maint. status
IsMarkedForDeletion I_ProductStorageLocation IsMarkedForDeletion Purch.org. data
PhysicalInventoryBlockInd I_ProductStorageLocation PhysicalInventoryBlockInd Phys. Inv. Blk
CreationDate I_ProductStorageLocation CreationDate Time Stamp
DateOfLastPostedCntUnRstrcdStk I_ProductStorageLocation DateOfLastPostedCntUnRstrcdStk Last Count Date
InventoryCorrectionFactor I_ProductStorageLocation InventoryCorrectionFactor Inven.cor.fact.
InvtryRestrictedUseStockInd I_ProductStorageLocation InvtryRestrictedUseStockInd Restricted-use
InvtryCurrentYearStockInd I_ProductStorageLocation InvtryCurrentYearStockInd Warehouse stock
InvtryQualInspCurrentYrStkInd I_ProductStorageLocation InvtryQualInspCurrentYrStkInd QualInspStock
InventoryBlockStockInd I_ProductStorageLocation InventoryBlockStockInd Blocked stock
InvtryRestStockPrevPeriodInd I_ProductStorageLocation InvtryRestStockPrevPeriodInd Restricted use
InventoryStockPrevPeriod I_ProductStorageLocation InventoryStockPrevPeriod Warehouse stock
InvtryStockQltyInspPrevPeriod I_ProductStorageLocation InvtryStockQltyInspPrevPeriod QualInspStock
HasInvtryBlockStockPrevPeriod I_ProductStorageLocation HasInvtryBlockStockPrevPeriod Blocked stock
FiscalYearCurrentPeriod I_ProductStorageLocation FiscalYearCurrentPeriod Year cur.period
FiscalMonthCurrentPeriod I_ProductStorageLocation FiscalMonthCurrentPeriod Current period
FiscalYearCurrentInvtryPeriod I_ProductStorageLocation FiscalYearCurrentInvtryPeriod Fiscal Year of Current Physical Inventory Indicator
IsActiveEntity
HasActiveEntity TRUE
RootDraftKey NodeID
DraftkeyasDraftKey
KEY ActiveProduct P_ProductStorageLocationD ActiveProduct Product
KEY ActivePlant P_ProductStorageLocationD ActivePlant Plant ID
KEY ActiveStorageLocation P_ProductStorageLocationD ActiveStorageLocation Stor. Location
ParentDraftKey P_ProductStorageLocationD Parentdraftkey NodeID
product P_ProductD product Product Sold
plant P_ProductPlantD plant Valuation Area
creationdate P_ProductStorageLocationD creationdate Time Stamp
IsActiveEntity
HasActiveEntity P_ProductStorageLocationD HasActiveEntity TRUE
HasDraftEntity
RootDraftKey P_ProductStorageLocationD RootDraftKey NodeID
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_ProductStorageLocationWD.
-- 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: PPRDSTORAGELOCWD

CREATE VIEW P_ProductStorageLocationWD AS
SELECT
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS Draftkey,
  ActiveDocument.Product AS ActiveProduct,
  ActiveDocument.Plant AS ActivePlant,
  ActiveDocument.StorageLocation AS ActiveStorageLocation,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS ParentDraftKey,
  ActiveDocument.Product AS Product,
  ActiveDocument.Plant AS Plant,
  ActiveDocument.StorageLocation AS StorageLocation,
  ActiveDocument.WarehouseStorageBin AS WarehouseStorageBin,
  ActiveDocument.MaintenanceStatus AS MaintenanceStatus,
  ActiveDocument.IsMarkedForDeletion AS IsMarkedForDeletion,
  ActiveDocument.PhysicalInventoryBlockInd AS PhysicalInventoryBlockInd,
  ActiveDocument.CreationDate AS CreationDate,
  ActiveDocument.DateOfLastPostedCntUnRstrcdStk AS DateOfLastPostedCntUnRstrcdStk,
  ActiveDocument.InventoryCorrectionFactor AS InventoryCorrectionFactor,
  ActiveDocument.InvtryRestrictedUseStockInd AS InvtryRestrictedUseStockInd,
  ActiveDocument.InvtryCurrentYearStockInd AS InvtryCurrentYearStockInd,
  ActiveDocument.InvtryQualInspCurrentYrStkInd AS InvtryQualInspCurrentYrStkInd,
  ActiveDocument.InventoryBlockStockInd AS InventoryBlockStockInd,
  ActiveDocument.InvtryRestStockPrevPeriodInd AS InvtryRestStockPrevPeriodInd,
  ActiveDocument.InventoryStockPrevPeriod AS InventoryStockPrevPeriod,
  ActiveDocument.InvtryStockQltyInspPrevPeriod AS InvtryStockQltyInspPrevPeriod,
  ActiveDocument.HasInvtryBlockStockPrevPeriod AS HasInvtryBlockStockPrevPeriod,
  ActiveDocument.FiscalYearCurrentPeriod AS FiscalYearCurrentPeriod,
  ActiveDocument.FiscalMonthCurrentPeriod AS FiscalMonthCurrentPeriod,
  ActiveDocument.FiscalYearCurrentInvtryPeriod AS FiscalYearCurrentInvtryPeriod,
  cast( 'X' as boole_d ) AS IsActiveEntity,
  cast( ' ' as boole_d ) AS HasActiveEntity,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS RootDraftKey,
  cast(DraftDocument.RootDraftKey as sysuuid_x ) as DraftAdministrativeDataUUID AS DraftkeyasDraftKey,
  cast( ' ' as boole_d ) AS HasDraftEntity,
  cast(DraftDocument.RootDraftKey as sysuuid_x ) AS DraftAdministrativeDataUUID
FROM I_ProductStorageLocation AS ActiveDocument
LEFT OUTER JOIN P_ProductStorageLocationD AS DraftDocument ON /* join condition not captured in parsed metadata */
INNER JOIN P_ProductPlantD AS DraftPlantDocument 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_ProductStorageLocationD
;