P_ClassifyProdEndUseForKeyDate
P_ClassifyProdEndUseForKeyDate is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_TrdClassfctnEndUse, I_TrdClassfctnProduct) and exposes 33 fields with key fields TrdClassfctnNmbrSchm, Product, TrdClassfctnEndUse.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_TrdClassfctnEndUse | _NumberSchemeEndUse | cross |
| I_TrdClassfctnProduct | Product | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sll_validon |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.sqlViewName | PCLSPREUKDATE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TrdClassfctnNmbrSchm | I_TrdClassfctnEndUse | TrdClassfctnNmbrSchm | Numbering Scheme |
| KEY | Product | I_TrdClassfctnProduct | Product | Product Sold |
| KEY | TrdClassfctnEndUse | I_TrdClassfctnEndUse | TrdClassfctnEndUse | End-Use |
| AuthorizationGroup | I_TrdClassfctnProduct | AuthorizationGroup | AuthorizGroup | |
| IsMarkedForDeletion | IsMarkedForDeletion | Purch.org. data | ||
| ProductCategory | ProductCategory | Prod Category | ||
| ProductGroup | I_TrdClassfctnProduct | ProductGroup | Product Sold Group | |
| Division | Division | Internal Division ID | ||
| ProductHierarchy | ProductHierarchy | Prod.hierarchy | ||
| ProductType | I_TrdClassfctnProduct | ProductType | Product Type Group | |
| ProductTypeCode | ProductTypeCode | Product Type Group | ||
| ExternalProductGroup | ExternalProductGroup | Ext. prod group | ||
| IndustrySector | IndustrySector | Industry | ||
| CreationDate | CreationDate | Time Stamp | ||
| TrdClassfctnNmbrSchmType | I_TrdClassfctnEndUse | TrdClassfctnNmbrSchmType | ||
| TrdClassfctnNmbr | _Class | TrdClassfctnNmbr | ||
| _TrdClassfctnNmbrSchmText | I_TrdClassfctnEndUse | _TrdClassfctnNmbrSchmText | ||
| _TrdClassfctnEndUseText | I_TrdClassfctnEndUse | _TrdClassfctnEndUseText | ||
| _Text | _Text | |||
| _ProductCategory | _ProductCategory | |||
| _ProductCategoryText | _ProductCategoryText | |||
| _ProductGroup | I_TrdClassfctnProduct | _ProductGroup | ||
| _ProductGroupText | _ProductGroupText | |||
| _Division | _Division | |||
| _DivisionText | _DivisionText | |||
| _ProductHierarchy | _ProductHierarchy | |||
| _ProductHierarchyText | _ProductHierarchyText | |||
| _ProductType | I_TrdClassfctnProduct | _ProductType | ||
| _ProductTypeText | _ProductTypeText | |||
| _ExternalProductGroup | _ExternalProductGroup | |||
| _ExternalProductGroupText | _ExternalProductGroupText | |||
| _IndustrySector | _IndustrySector | |||
| _IndustrySectorText | _IndustrySectorText |
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_ClassifyProdEndUseForKeyDate.
-- 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: PCLSPREUKDATE
-- Parameters: P_KeyDate : sll_validon
CREATE VIEW P_ClassifyProdEndUseForKeyDate AS
SELECT
_NumberSchemeEndUse.TrdClassfctnNmbrSchm AS TrdClassfctnNmbrSchm,
Product.Product AS Product,
_NumberSchemeEndUse.TrdClassfctnEndUse AS TrdClassfctnEndUse,
Product.AuthorizationGroup AS AuthorizationGroup,
IsMarkedForDeletion,
ProductCategory,
Product.ProductGroup AS ProductGroup,
Division,
ProductHierarchy,
Product.ProductType AS ProductType,
ProductTypeCode,
ExternalProductGroup,
IndustrySector,
CreationDate,
_NumberSchemeEndUse.TrdClassfctnNmbrSchmType AS TrdClassfctnNmbrSchmType,
_Class.TrdClassfctnNmbr AS TrdClassfctnNmbr,
_NumberSchemeEndUse._TrdClassfctnNmbrSchmText AS _TrdClassfctnNmbrSchmText,
_NumberSchemeEndUse._TrdClassfctnEndUseText AS _TrdClassfctnEndUseText,
Product._ProductGroup AS _ProductGroup,
Product._ProductType AS _ProductType
FROM I_TrdClassfctnProduct AS Product
CROSS JOIN I_TrdClassfctnEndUse AS _NumberSchemeEndUse
;
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