P_VarConfignPlntSpcfcProdVar

DDL: P_VARCONFIGNPLNTSPCFCPRODVAR SQL: PAVCPLSPCFCPVAR Type: view BASIC

P_VarConfignPlntSpcfcProdVar is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (mara, v_marc_md) and exposes 8 fields with key fields ProductVariant, Plant.

Data Sources (2)

SourceAliasJoin Type
mara Product inner
v_marc_md ProductPlant from

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PAVCPLSPCFCPVAR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #BASIC view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ProductVariant v_marc_md matnr Vehicle Model
KEY Plant v_marc_md werks Receiving Plant
Product v_marc_md stdpd Conf. Material
ProductConfiguration v_marc_md cuobj Object Number
CreatedByUser mara ernam User Name
CreationDate mara ersda Entry Date
laedaendasLastChangeDate
aenamendasLastChangedByUser

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_VarConfignPlntSpcfcProdVar.
-- 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: PAVCPLSPCFCPVAR

CREATE VIEW P_VarConfignPlntSpcfcProdVar AS
SELECT
  ProductPlant.matnr AS ProductVariant,
  ProductPlant.werks AS Plant,
  ProductPlant.stdpd AS Product,
  ProductPlant.cuobj AS ProductConfiguration,
  Product.ernam AS CreatedByUser,
  Product.ersda AS CreationDate,
  case when Product.laeda = '00000000' or Product.laeda is null then Product.ersda else Product.laeda end as LastChangeDate AS laedaendasLastChangeDate,
  case when Product.laeda = '00000000' or Product.laeda is null then Product.ernam else Product.aenam end as LastChangedByUser AS aenamendasLastChangedByUser
FROM v_marc_md AS ProductPlant
INNER JOIN mara AS Product ON /* join condition not captured in parsed metadata */
;