I_ProdCstmsTrifNmbrForKeyDate

DDL: I_PRODCSTMSTRIFNMBRFORKEYDATE SQL: IPRTRIFNMBRFKDAT Type: view COMPOSITE

Product Classification - Customs Tariff Number

I_ProdCstmsTrifNmbrForKeyDate is a Composite CDS View that provides data about "Product Classification - Customs Tariff Number" in SAP S/4HANA. It reads from 2 data sources (I_CstmsTrifNmbrNmbrSchm, I_ProductTrdClassfctn) and exposes 13 fields with key fields Product, TrdClassfctnNmbrSchm. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_CstmsTrifNmbrNmbrSchm _CstmsTrifNmbrNmbrSchm inner
I_ProductTrdClassfctn _ProductTrdClassfctn from

Parameters (1)

NameTypeDefault
P_KeyDate sll_validon

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_CstmsTrifNmbrForKeyDate _CstmsTrifNmbrForKeyDate _ProductTrdClassfctn.TrdClassfctnNmbrSchm = _CstmsTrifNmbrForKeyDate.TrdClassfctnNmbrSchm and _ProductTrdClassfctn.TrdClassfctnNmbr = _CstmsTrifNmbrForKeyDate.CustomsTariffNumber

Annotations (8)

NameValueLevelField
EndUserText.label Product Classification - Customs Tariff Number view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName IPRTRIFNMBRFKDAT view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory L view
ObjectModel.usageType.dataClass #MIXED view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY Product I_ProductTrdClassfctn Product Product Sold
KEY TrdClassfctnNmbrSchm I_ProductTrdClassfctn TrdClassfctnNmbrSchm Numbering Scheme
CustomsTariffNumber
TrdClassfctnRemark I_ProductTrdClassfctn TrdClassfctnRemark Remark
ValidityStartDate I_ProductTrdClassfctn ValidityStartDate Validity Start Date
ValidityEndDate I_ProductTrdClassfctn 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_ProdCstmsTrifNmbrForKeyDate.
-- 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: IPRTRIFNMBRFKDAT
-- Parameters: P_KeyDate : sll_validon

CREATE VIEW I_ProdCstmsTrifNmbrForKeyDate AS
SELECT
  _ProductTrdClassfctn.Product AS Product,
  _ProductTrdClassfctn.TrdClassfctnNmbrSchm AS TrdClassfctnNmbrSchm,
  cast ( _ProductTrdClassfctn.TrdClassfctnNmbr as /sapsll/tarno ) AS CustomsTariffNumber,
  _ProductTrdClassfctn.TrdClassfctnRemark AS TrdClassfctnRemark,
  _ProductTrdClassfctn.ValidityStartDate AS ValidityStartDate,
  _ProductTrdClassfctn.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_ProductTrdClassfctn AS _ProductTrdClassfctn
INNER JOIN I_CstmsTrifNmbrNmbrSchm AS _CstmsTrifNmbrNmbrSchm ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CstmsTrifNmbrForKeyDate AS _CstmsTrifNmbrForKeyDate ON _ProductTrdClassfctn.TrdClassfctnNmbrSchm = _CstmsTrifNmbrForKeyDate.TrdClassfctnNmbrSchm AND _ProductTrdClassfctn.TrdClassfctnNmbr = _CstmsTrifNmbrForKeyDate.CustomsTariffNumber  -- association [0..1]
;