R_PlantSubstnExclsnTP
Plant Substitution Exclusion TP View
R_PlantSubstnExclsnTP is a Transactional CDS View that provides data about "Plant Substitution Exclusion TP View" in SAP S/4HANA. It reads from 1 data source (R_MDSubstnExclsnTP) and exposes 38 fields with key field MDSubstnUUID. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_MDSubstnExclsnTP | R_MDSubstnExclsnTP | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_SalesOrganization | _SalesOrganization | $projection.SalesOrganization = _SalesOrganization.SalesOrganization |
| [0..1] | I_DistributionChannel | _DistributionChannel | $projection.DistributionChannel = _DistributionChannel.DistributionChannel |
| [1..1] | I_Indicator | _MDSubstnIsRlvtForATPPlant | $projection.MDSubstnIsRlvtForATPPlant = _MDSubstnIsRlvtForATPPlant.IndicatorValue |
| [0..1] | I_UserContactCard | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.ContactCardID |
| [0..1] | I_UserContactCard | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.ContactCardID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Plant Substitution Exclusion TP View | view | |
| ObjectModel.representativeKey | MDSubstnUUID | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.sapObjectNodeType.name | PlantExclusion | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #TRANSACTIONAL | view |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MDSubstnUUID | MDSubstnUUID | ||
| MDSubstnObjectType | MDSubstnObjectType | |||
| Plant | ||||
| MDSubstnContextObjectType | MDSubstnContextObjectType | |||
| SalesOrganization | ||||
| MDSubstnContextObjectType2 | MDSubstnContextObjectType2 | |||
| DistributionChannel | ||||
| MDSubstnGroup | MDSubstnGroup | |||
| MDSubstnVersionValue | MDSubstnVersionValue | |||
| MDSubstnValidityStartDateTime | MDSubstnValidityStartDateTime | |||
| MDSubstnValidityStartDate | MDSubstnValidityStartDate | |||
| MDSubstnValidityStartTime | MDSubstnValidityStartTime | |||
| MDSubstnValidityEndDateTime | MDSubstnValidityEndDateTime | |||
| MDSubstnValidityEndDate | MDSubstnValidityEndDate | |||
| MDSubstnValidityEndTime | MDSubstnValidityEndTime | |||
| TimeZoneID | TimeZoneID | Time Zone | ||
| MDSubstnReason | MDSubstnReason | |||
| MDSubstnStatus | MDSubstnStatus | |||
| MDSubstnIsRlvtForATPPlant | MDSubstnIsRlvtForATPPlant | |||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDateTime | CreationDateTime | Timestamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| TimeZoneIANACode | TimeZoneIANACode | |||
| _ContextObjectTypeCode | _ContextObjectTypeCode | |||
| _ContextObjectTypeCode2 | _ContextObjectTypeCode2 | |||
| _CreatedByUser | _CreatedByUser | |||
| _Group | _Group | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _MDObjectType | _MDObjectType | |||
| _Reason | _Reason | |||
| _Status | _Status | |||
| _TimeZone | _TimeZone | |||
| _IANATimeZone | _IANATimeZone | |||
| _Plant | _Plant | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _MDSubstnIsRlvtForATPPlant | _MDSubstnIsRlvtForATPPlant |
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 R_PlantSubstnExclsnTP.
-- 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.
CREATE VIEW R_PlantSubstnExclsnTP AS
SELECT
MDSubstnUUID,
MDSubstnObjectType,
cast( MDObject as werks_d ) AS Plant,
MDSubstnContextObjectType,
cast( MDSubstnContextObject as vkorg ) AS SalesOrganization,
MDSubstnContextObjectType2,
cast( MDSubstnContextObject2 as vtweg ) AS DistributionChannel,
MDSubstnGroup,
MDSubstnVersionValue,
MDSubstnValidityStartDateTime,
MDSubstnValidityStartDate,
MDSubstnValidityStartTime,
MDSubstnValidityEndDateTime,
MDSubstnValidityEndDate,
MDSubstnValidityEndTime,
TimeZoneID,
MDSubstnReason,
MDSubstnStatus,
MDSubstnIsRlvtForATPPlant,
CreatedByUser,
CreationDateTime,
LastChangedByUser,
LastChangeDateTime,
TimeZoneIANACode
FROM R_MDSubstnExclsnTP
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _MDSubstnIsRlvtForATPPlant ON MDSubstnIsRlvtForATPPlant = _MDSubstnIsRlvtForATPPlant.IndicatorValue -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByUser ON CreatedByUser = _CreatedByUser.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.ContactCardID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA