P_ReclsfyProdEndUseForKeyDate
P_ReclsfyProdEndUseForKeyDate is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_ProductTrdClassfctnEndUse, I_TrdClassfctnEndUse, I_TrdClassfctnProduct) and exposes 36 fields with key fields Product, TrdClassfctnNmbrSchm, TrdClassfctnEndUse.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductTrdClassfctnEndUse | _Class | from |
| I_TrdClassfctnEndUse | _NumberSchemeEndUse | inner |
| I_TrdClassfctnProduct | _Product | inner |
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 | PRECLSPREUKDATE | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | I_TrdClassfctnProduct | Product | Product Sold |
| KEY | TrdClassfctnNmbrSchm | I_ProductTrdClassfctnEndUse | TrdClassfctnNmbrSchm | Numbering Scheme |
| KEY | TrdClassfctnEndUse | I_ProductTrdClassfctnEndUse | TrdClassfctnEndUse | End-Use |
| ValidityStartDate | I_ProductTrdClassfctnEndUse | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | I_ProductTrdClassfctnEndUse | ValidityEndDate | ValidTo | |
| TrdClassfctnNmbr | I_ProductTrdClassfctnEndUse | TrdClassfctnNmbr | Number | |
| TrdClassfctnRemark | I_ProductTrdClassfctnEndUse | TrdClassfctnRemark | Remark | |
| AuthorizationGroup | I_TrdClassfctnProduct | AuthorizationGroup | AuthorizGroup | |
| IsMarkedForDeletion | I_TrdClassfctnProduct | IsMarkedForDeletion | Purch.org. data | |
| ProductCategory | I_TrdClassfctnProduct | ProductCategory | Prod Category | |
| ProductGroup | I_TrdClassfctnProduct | ProductGroup | Product Sold Group | |
| Division | I_TrdClassfctnProduct | Division | Internal Division ID | |
| ProductHierarchy | I_TrdClassfctnProduct | ProductHierarchy | Prod.hierarchy | |
| ProductType | I_TrdClassfctnProduct | ProductType | Product Type Group | |
| ProductTypeCode | I_TrdClassfctnProduct | ProductTypeCode | Product Type Group | |
| ExternalProductGroup | I_TrdClassfctnProduct | ExternalProductGroup | Ext. prod group | |
| IndustrySector | I_TrdClassfctnProduct | IndustrySector | Industry | |
| TrdClassfctnNmbrSchmCntnt | _Activation | TrdClassfctnNmbrSchmCntnt | ||
| _TrdClassfctnNmbrSchm | I_ProductTrdClassfctnEndUse | _TrdClassfctnNmbrSchm | ||
| _TrdClassfctnNmbrSchmText | I_ProductTrdClassfctnEndUse | _TrdClassfctnNmbrSchmText | ||
| _TrdClassfctnEndUseText | I_ProductTrdClassfctnEndUse | _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_ReclsfyProdEndUseForKeyDate.
-- 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: PRECLSPREUKDATE
-- Parameters: P_KeyDate : sll_validon
CREATE VIEW P_ReclsfyProdEndUseForKeyDate AS
SELECT
_Product.Product AS Product,
_Class.TrdClassfctnNmbrSchm AS TrdClassfctnNmbrSchm,
_Class.TrdClassfctnEndUse AS TrdClassfctnEndUse,
_Class.ValidityStartDate AS ValidityStartDate,
_Class.ValidityEndDate AS ValidityEndDate,
_Class.TrdClassfctnNmbr AS TrdClassfctnNmbr,
_Class.TrdClassfctnRemark AS TrdClassfctnRemark,
_Product.AuthorizationGroup AS AuthorizationGroup,
_Product.IsMarkedForDeletion AS IsMarkedForDeletion,
_Product.ProductCategory AS ProductCategory,
_Product.ProductGroup AS ProductGroup,
_Product.Division AS Division,
_Product.ProductHierarchy AS ProductHierarchy,
_Product.ProductType AS ProductType,
_Product.ProductTypeCode AS ProductTypeCode,
_Product.ExternalProductGroup AS ExternalProductGroup,
_Product.IndustrySector AS IndustrySector,
_Activation.TrdClassfctnNmbrSchmCntnt AS TrdClassfctnNmbrSchmCntnt,
_Class._TrdClassfctnNmbrSchm AS _TrdClassfctnNmbrSchm,
_Class._TrdClassfctnNmbrSchmText AS _TrdClassfctnNmbrSchmText,
_Class._TrdClassfctnEndUseText AS _TrdClassfctnEndUseText,
_Product._ProductGroup AS _ProductGroup,
_Product._ProductType AS _ProductType
FROM I_ProductTrdClassfctnEndUse AS _Class
INNER JOIN I_TrdClassfctnProduct AS _Product ON /* join condition not captured in parsed metadata */
INNER JOIN I_TrdClassfctnEndUse AS _NumberSchemeEndUse ON /* join condition not captured in parsed metadata */
;
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