I_ProdCstmsTNEndUseForKeyDate
Product Classification - End Use
I_ProdCstmsTNEndUseForKeyDate is a Composite CDS View that provides data about "Product Classification - End Use" in SAP S/4HANA. It reads from 2 data sources (I_ProductTrdClassfctnEndUse, I_TrdClassfctnEndUse) and exposes 14 fields with key fields Product, TrdClassfctnNmbrSchm, TrdClassfctnEndUse. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductTrdClassfctnEndUse | _ProductTrdClassfctnEndUse | from |
| I_TrdClassfctnEndUse | _TrdClassfctnEndUse | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sll_validon |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CstmsTrifNmbrForKeyDate | _CstmsTrifNmbrForKeyDate | _ProductTrdClassfctnEndUse.TrdClassfctnNmbrSchm = _CstmsTrifNmbrForKeyDate.TrdClassfctnNmbrSchm and _ProductTrdClassfctnEndUse.TrdClassfctnNmbr = _CstmsTrifNmbrForKeyDate.CustomsTariffNumber |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Product Classification - End Use | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.sqlViewName | IPRODENDUSEKD | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | I_ProductTrdClassfctnEndUse | Product | Product Sold |
| KEY | TrdClassfctnNmbrSchm | I_ProductTrdClassfctnEndUse | TrdClassfctnNmbrSchm | Numbering Scheme |
| KEY | TrdClassfctnEndUse | I_ProductTrdClassfctnEndUse | TrdClassfctnEndUse | End-Use |
| CustomsTariffNumber | ||||
| TrdClassfctnRemark | I_ProductTrdClassfctnEndUse | TrdClassfctnRemark | Remark | |
| ValidityStartDate | I_ProductTrdClassfctnEndUse | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | I_ProductTrdClassfctnEndUse | ValidityEndDate | ValidTo | |
| TrdClassfctnNmbr | ||||
| TrdClassfctnNmbrForOfclDesc | ||||
| TrdClassfctnNmbrForCnctntdDesc | ||||
| TrdClassfctnNmbrSchmCntnt | ||||
| TrdClassfctnNmbrStartDate | ||||
| _OfficialDesc | ||||
| _CnctntdDesc |
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 I_ProdCstmsTNEndUseForKeyDate.
-- 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: IPRODENDUSEKD
-- Parameters: P_KeyDate : sll_validon
CREATE VIEW I_ProdCstmsTNEndUseForKeyDate AS
SELECT
_ProductTrdClassfctnEndUse.Product AS Product,
_ProductTrdClassfctnEndUse.TrdClassfctnNmbrSchm AS TrdClassfctnNmbrSchm,
_ProductTrdClassfctnEndUse.TrdClassfctnEndUse AS TrdClassfctnEndUse,
cast ( _ProductTrdClassfctnEndUse.TrdClassfctnNmbr as /sapsll/tarno ) AS CustomsTariffNumber,
_ProductTrdClassfctnEndUse.TrdClassfctnRemark AS TrdClassfctnRemark,
_ProductTrdClassfctnEndUse.ValidityStartDate AS ValidityStartDate,
_ProductTrdClassfctnEndUse.ValidityEndDate AS ValidityEndDate,
_CstmsTrifNmbrForKeyDate(P_KeyDate : $parameters.P_KeyDate).CustomsTariffNumber AS TrdClassfctnNmbr,
_CstmsTrifNmbrForKeyDate(P_KeyDate : $parameters.P_KeyDate).TrdClassfctnNmbrForOfclDesc AS TrdClassfctnNmbrForOfclDesc,
_CstmsTrifNmbrForKeyDate(P_KeyDate : $parameters.P_KeyDate).TrdClassfctnNmbrForCnctntdDesc AS TrdClassfctnNmbrForCnctntdDesc,
_CstmsTrifNmbrForKeyDate(P_KeyDate : $parameters.P_KeyDate).TrdClassfctnNmbrSchmCntnt AS TrdClassfctnNmbrSchmCntnt,
_CstmsTrifNmbrForKeyDate(P_KeyDate : $parameters.P_KeyDate).ValidityStartDate AS TrdClassfctnNmbrStartDate,
_CstmsTrifNmbrForKeyDate(P_KeyDate : $parameters.P_KeyDate)._OfficialDesc AS _OfficialDesc,
_CstmsTrifNmbrForKeyDate(P_KeyDate : $parameters.P_KeyDate)._CnctntdDesc AS _CnctntdDesc
FROM I_ProductTrdClassfctnEndUse AS _ProductTrdClassfctnEndUse
INNER JOIN I_TrdClassfctnEndUse AS _TrdClassfctnEndUse ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CstmsTrifNmbrForKeyDate AS _CstmsTrifNmbrForKeyDate ON _ProductTrdClassfctnEndUse.TrdClassfctnNmbrSchm = _CstmsTrifNmbrForKeyDate.TrdClassfctnNmbrSchm AND _ProductTrdClassfctnEndUse.TrdClassfctnNmbr = _CstmsTrifNmbrForKeyDate.CustomsTariffNumber -- 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