P_ReclsfyProdEndUseForKeyDate

DDL: P_RECLSFYPRODENDUSEFORKEYDATE SQL: PRECLSPREUKDATE Type: view COMPOSITE

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)

SourceAliasJoin Type
I_ProductTrdClassfctnEndUse _Class from
I_TrdClassfctnEndUse _NumberSchemeEndUse inner
I_TrdClassfctnProduct _Product inner

Parameters (1)

NameTypeDefault
P_KeyDate sll_validon

Annotations (7)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;