P_ConfigurableProductPlantSmpl

DDL: P_CONFIGURABLEPRODUCTPLANTSMPL SQL: PCONFPRPLSMPL Type: view CONSUMPTION

P_ConfigurableProductPlantSmpl is a Consumption CDS View in SAP S/4HANA. It reads from 5 data sources (P_ReleasedConfigurationProfile, P_ReleasedConfigurationProfile, mara, mara, v_marc_md) and exposes 17 fields with key fields Product, Plant, Plant.

Data Sources (5)

SourceAliasJoin Type
P_ReleasedConfigurationProfile _ConfigurationProfile inner
P_ReleasedConfigurationProfile _ConfigurationProfile inner
mara Product inner
mara Product union
v_marc_md ProductPlant from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCONFPRPLSMPL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY Product v_marc_md matnr Vehicle Model
KEY Plant v_marc_md werks Receiving Plant
CreatedByUser mara ernam User Name
CreationDate mara ersda Entry Date
laedaendasLastChangeDate
aenamendasLastChangedByUser
ProductAuthorizationGroup mara begru AuthorizGroup
mtart mara mtart Product Type
matnrasProduct
KEY Plant Receiving Plant
CreatedByUser mara ernam User Name
CreationDate mara ersda Entry Date
laedaendasLastChangeDate
aenamendasLastChangedByUser
ProductAuthorizationGroup mara begru AuthorizGroup
mtart mara mtart Product Type
matkl mara matkl Product Sold Group

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_ConfigurableProductPlantSmpl.
-- 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: PCONFPRPLSMPL

CREATE VIEW P_ConfigurableProductPlantSmpl AS
SELECT
  ProductPlant.matnr AS Product,
  ProductPlant.werks AS Plant,
  Product.ernam AS CreatedByUser,
  Product.ersda AS CreationDate,
  case when Product.laeda is null or Product.laeda = '00000000' then Product.ersda else Product.laeda end as LastChangeDate AS laedaendasLastChangeDate,
  case when Product.laeda is null or Product.laeda = '00000000' then Product.ernam else Product.aenam end as LastChangedByUser AS aenamendasLastChangedByUser,
  Product.begru AS ProductAuthorizationGroup,
  Product.mtart AS mtart,
  Product.matkl AS matnrasProduct,
  Product.matkl AS matkl
FROM v_marc_md AS ProductPlant
INNER JOIN mara AS Product ON /* join condition not captured in parsed metadata */
INNER JOIN P_ReleasedConfigurationProfile AS _ConfigurationProfile ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): mara
;