P_AssgblDCForSuplr

DDL: P_ASSGBLDCFORSUPLR SQL: PASNDCFORSUPL Type: view CONSUMPTION Package: RFM_ASSG_PROCMT_PROD

Assignable DC for Supplier Value Help

P_AssgblDCForSuplr is a Consumption CDS View that provides data about "Assignable DC for Supplier Value Help" in SAP S/4HANA. It reads from 3 data sources (I_Plant, I_ActiveLogisticalProduct, I_ProductPlant) and exposes 4 fields with key fields Material, DistributionCenter. It has 1 association to related views. Part of development package RFM_ASSG_PROCMT_PROD.

Data Sources (3)

SourceAliasJoin Type
I_Plant Plant cross
I_ActiveLogisticalProduct Product from
I_ProductPlant ProductPlant left_outer

Parameters (3)

NameTypeDefault
P_ValidityStartDate datum
P_ValidityEndDate datum
P_Supplier lifnr

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_ActiveLogisticalProduct _ActiveLogisticalProduct $projection.Material = _ActiveLogisticalProduct.Product

Annotations (8)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PASNDCFORSUPL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ObjectModel.usageType.serviceQuality #B view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Material I_ActiveLogisticalProduct Product Product Sold
KEY DistributionCenter I_Plant Plant Valuation Area
DistributionCenterName PlantName Plant Name
_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 P_AssgblDCForSuplr.
-- 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: PASNDCFORSUPL
-- Parameters: P_ValidityStartDate : datum, P_ValidityEndDate : datum, P_Supplier : lifnr

CREATE VIEW P_AssgblDCForSuplr AS
SELECT
  Product.Product AS Material,
  Plant.Plant AS DistributionCenter,
  PlantName AS DistributionCenterName
FROM I_ActiveLogisticalProduct AS Product
CROSS JOIN I_Plant AS Plant
LEFT OUTER JOIN I_ProductPlant AS ProductPlant ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ActiveLogisticalProduct AS _ActiveLogisticalProduct ON Material = _ActiveLogisticalProduct.Product  -- association [1..1]
;