I_LoglProductAssgmtDCToStore

DDL: I_LOGLPRODUCTASSGMTDCTOSTORE Type: view COMPOSITE

Logistical Product DC Store Assignment

I_LoglProductAssgmtDCToStore is a Composite CDS View that provides data about "Logistical Product DC Store Assignment" in SAP S/4HANA. It reads from 2 data sources (P_StoreGrpFromClfnStore, I_MPPurchasingSourceItem) and exposes 14 fields with key fields Material, Store, SourceListRecord. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
P_StoreGrpFromClfnStore P_StoreGrpFromClfnStore left_outer
I_MPPurchasingSourceItem SourceList from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Plant _Store $projection.Store = _Store.Plant
[0..1] I_Plant _DistributionCenter $projection.DistributionCenter = _DistributionCenter.Plant
[1..1] I_ActiveLogisticalProduct _ActiveLogisticalProduct $projection.Material = _ActiveLogisticalProduct.Product

Annotations (11)

NameValueLevelField
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
AbapCatalog.sqlViewName ILOGLPRODASSDCST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Logistical Product DC Store Assignment view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY Material I_MPPurchasingSourceItem Material Vehicle Model
KEY Store
KEY SourceListRecord I_MPPurchasingSourceItem SourceListRecord Number
SupplierendasSupplier
DistributionCenter
PurchasingOrganization I_MPPurchasingSourceItem PurchasingOrganization Purchasing Organization
ValidityStartDate
ValidityEndDate
LastChangeDateTime I_MPPurchasingSourceItem LastChangeDateTime Timestamp
StoreGroupInternalID _AssgdStoreGroup StoreGroupInternalID
_Store _Store
_DistributionCenter _DistributionCenter
_PurchasingOrganization _PurchasingOrganization
_ActiveLogisticalProduct _ActiveLogisticalProduct

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 I_LoglProductAssgmtDCToStore.
-- 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.

CREATE VIEW I_LoglProductAssgmtDCToStore AS
SELECT
  SourceList.Material AS Material,
  cast(SourceList.Plant as store) AS Store,
  SourceList.SourceListRecord AS SourceListRecord,
  case I_Supplier.IsBusinessPurposeCompleted when 'X' then '*****' else SourceList.Supplier end as Supplier AS SupplierendasSupplier,
  cast(I_Plant.Plant as distributioncenter) AS DistributionCenter,
  SourceList.PurchasingOrganization AS PurchasingOrganization,
  cast(SourceList.ValidityStartDate as validitystartdate preserving type) AS ValidityStartDate,
  cast(SourceList.ValidityEndDate as validityenddate preserving type) AS ValidityEndDate,
  SourceList.LastChangeDateTime AS LastChangeDateTime,
  _AssgdStoreGroup.StoreGroupInternalID AS StoreGroupInternalID
FROM I_MPPurchasingSourceItem AS SourceList
LEFT OUTER JOIN P_StoreGrpFromClfnStore ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Plant AS _Store ON Store = _Store.Plant  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _DistributionCenter ON DistributionCenter = _DistributionCenter.Plant  -- association [0..1]
LEFT OUTER JOIN I_ActiveLogisticalProduct AS _ActiveLogisticalProduct ON Material = _ActiveLogisticalProduct.Product  -- association [1..1]
;