P_AssgblSuplrForProcmtProd

DDL: P_ASSGBLSUPLRFORPROCMTPROD SQL: PASNSUPLPROCPROD Type: view CONSUMPTION

P_AssgblSuplrForProcmtProd is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_Plant, I_PurchasingInfoRecord) and exposes 8 fields with key fields PurchasingInfoRecord, Product, Supplier. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_Plant I_Plant left_outer
I_PurchasingInfoRecord PurchasingInfoRecord from

Associations (1)

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

Annotations (7)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PASNSUPLPROCPROD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY PurchasingInfoRecord PurchasingInfoRecord Info Record
KEY Product Material Vehicle Model
KEY Supplier Supplier Supplier
SupplierName
AvailabilityStartDate
AvailabilityEndDate
_ActiveLogisticalProduct _ActiveLogisticalProduct
_Supplier I_PurchasingInfoRecord _Supplier

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_AssgblSuplrForProcmtProd.
-- 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: PASNSUPLPROCPROD

CREATE VIEW P_AssgblSuplrForProcmtProd AS
SELECT
  PurchasingInfoRecord,
  Material AS Product,
  Supplier,
  PurchasingInfoRecord._Supplier.SupplierName AS SupplierName,
  case when AvailabilityStartDate = '00000000' then '00010101' else AvailabilityStartDate end AS AvailabilityStartDate,
  case when AvailabilityEndDate = '00000000' then '99991231' else AvailabilityEndDate end AS AvailabilityEndDate,
  PurchasingInfoRecord._Supplier AS _Supplier
FROM I_PurchasingInfoRecord AS PurchasingInfoRecord
LEFT OUTER JOIN I_Plant ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ActiveLogisticalProduct AS _ActiveLogisticalProduct ON Product = _ActiveLogisticalProduct.Product  -- association [1..1]
;