P_ConfigurableProductPlantSmpl
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)
| Source | Alias | Join Type |
|---|---|---|
| P_ReleasedConfigurationProfile | _ConfigurationProfile | inner |
| P_ReleasedConfigurationProfile | _ConfigurationProfile | inner |
| mara | Product | inner |
| mara | Product | union |
| v_marc_md | ProductPlant | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | v_marc_md | matnr | |
| KEY | Plant | v_marc_md | werks | |
| CreatedByUser | mara | ernam | ||
| CreationDate | mara | ersda | ||
| laedaendasLastChangeDate | ||||
| aenamendasLastChangedByUser | ||||
| ProductAuthorizationGroup | mara | begru | ||
| mtart | mara | mtart | ||
| matnrasProduct | ||||
| KEY | Plant | |||
| CreatedByUser | mara | ernam | ||
| CreationDate | mara | ersda | ||
| laedaendasLastChangeDate | ||||
| aenamendasLastChangedByUser | ||||
| ProductAuthorizationGroup | mara | begru | ||
| mtart | mara | mtart | ||
| matkl | mara | matkl |
@AbapCatalog.sqlViewName: 'PCONFPRPLSMPL'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #CONSUMPTION
@VDM.private: true
define view P_ConfigurableProductPlantSmpl as
select from v_marc_md as ProductPlant
inner join mara as Product on ProductPlant.matnr = Product.matnr
inner join P_ReleasedConfigurationProfile as _ConfigurationProfile on ProductPlant.matnr = _ConfigurationProfile.ProductConfiguration
and _ConfigurationProfile.ObjectDatabaseTable = 'MARA'
{
key ProductPlant.matnr as Product,
key 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,
case
when Product.laeda is null or Product.laeda = '00000000'
then Product.ernam
else Product.aenam
end as LastChangedByUser,
Product.begru as ProductAuthorizationGroup,
Product.mtart,
Product.matkl
}
where
Product.kzkfg = 'X' and //Configuration possible on Cross-Plant level (KZKFG)
Product.lvorm != 'X' and //Deletion marker
ProductPlant.lvorm != 'X' //Deletion marker
union
select from mara as Product
inner join P_ReleasedConfigurationProfile as _ConfigurationProfile on Product.matnr = _ConfigurationProfile.ProductConfiguration
and _ConfigurationProfile.ObjectDatabaseTable = 'MARA'
{
key Product.matnr as Product,
key '' as Plant, //There are no records with empty plants in I_ProductPlant
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,
case
when Product.laeda is null or Product.laeda = '00000000'
then Product.ernam
else Product.aenam
end as LastChangedByUser,
Product.begru as ProductAuthorizationGroup,
Product.mtart,
Product.matkl
}
where
Product.kzkfg = 'X' and //Configuration possible on Cross-Plant level (KZKFG)
Product.lvorm != 'X' //Deletion marker
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_RELEASEDCONFIGURATIONPROFILE",
"MARA",
"V_MARC_MD"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA