C_ProdIntrastatSCObjPage

DDL: C_PRODINTRASTATSCOBJPAGE SQL: CPRISROP Type: view CONSUMPTION Package: VDM_SLL_CLS

Product Classification - Intrastat Service Code

C_ProdIntrastatSCObjPage is a Consumption CDS View that provides data about "Product Classification - Intrastat Service Code" in SAP S/4HANA. It reads from 2 data sources (I_IntrastatSrvcNmbrSchm, I_TrdClassfctnProduct) and exposes 14 fields with key fields Product, TrdClassfctnNmbrSchm. It has 2 associations to related views. It is exposed through 1 OData service (ASQL_F3935). Part of development package VDM_SLL_CLS.

Data Sources (2)

SourceAliasJoin Type
I_IntrastatSrvcNmbrSchm _IntrastatSrvcNmbrSchm cross
I_TrdClassfctnProduct _TrdClassfctnProduct from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_ProdIntrastatSCForKeyDate _ProdIntrastatSCForKeyDate _IntrastatSrvcNmbrSchm.TrdClassfctnNmbrSchm = _ProdIntrastatSCForKeyDate.TrdClassfctnNmbrSchm and _TrdClassfctnProduct.Product = _ProdIntrastatSCForKeyDate.Product
[0..1] I_Product _Product _Product.Product = $projection.Product

Annotations (14)

NameValueLevelField
EndUserText.label Product Classification - Intrastat Service Code view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName CPRISROP view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory L view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled false view
ObjectModel.deleteEnabled false view
ObjectModel.draftEnabled false view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F3935 ASQL_F3935 C2 NOT_RELEASED

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY Product I_TrdClassfctnProduct Product Product Sold
KEY TrdClassfctnNmbrSchm I_IntrastatSrvcNmbrSchm TrdClassfctnNmbrSchm
TrdClassfctnNmbrSchmName Numbering Scheme Description
IntrastatServiceCode
TrdClassfctnNmbrForOfclDesc
ValidityStartDate
ValidityEndDate
TrdClassfctnRemark
TrdClassfctnNmbr
TrdClassfctnNmbrSchmCntnt
TrdClassfctnNmbrStartDate
_OfficialDesc
_TrdClassfctnNmbrSchmText _TrdClassfctnNmbrSchmText
_Product _Product

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 C_ProdIntrastatSCObjPage.
-- 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: CPRISROP

CREATE VIEW C_ProdIntrastatSCObjPage AS
SELECT
  _TrdClassfctnProduct.Product AS Product,
  _IntrastatSrvcNmbrSchm.TrdClassfctnNmbrSchm AS TrdClassfctnNmbrSchm,
  _TrdClassfctnNmbrSchmText[ 1: Language = $session.system_language ].TrdClassfctnNmbrSchmName AS TrdClassfctnNmbrSchmName,
  _ProdIntrastatSCForKeyDate(P_KeyDate : $session.system_date).IntrastatServiceCode AS IntrastatServiceCode,
  _ProdIntrastatSCForKeyDate(P_KeyDate : $session.system_date).TrdClassfctnNmbrForOfclDesc AS TrdClassfctnNmbrForOfclDesc,
  _ProdIntrastatSCForKeyDate(P_KeyDate : $session.system_date).ValidityStartDate AS ValidityStartDate,
  _ProdIntrastatSCForKeyDate(P_KeyDate : $session.system_date).ValidityEndDate AS ValidityEndDate,
  _ProdIntrastatSCForKeyDate(P_KeyDate : $session.system_date).TrdClassfctnRemark AS TrdClassfctnRemark,
  _ProdIntrastatSCForKeyDate(P_KeyDate : $session.system_date).TrdClassfctnNmbr AS TrdClassfctnNmbr,
  _ProdIntrastatSCForKeyDate(P_KeyDate : $session.system_date).TrdClassfctnNmbrSchmCntnt AS TrdClassfctnNmbrSchmCntnt,
  _ProdIntrastatSCForKeyDate(P_KeyDate : $session.system_date).TrdClassfctnNmbrStartDate AS TrdClassfctnNmbrStartDate,
  _ProdIntrastatSCForKeyDate(P_KeyDate : $session.system_date)._OfficialDesc AS _OfficialDesc
FROM I_TrdClassfctnProduct AS _TrdClassfctnProduct
CROSS JOIN I_IntrastatSrvcNmbrSchm AS _IntrastatSrvcNmbrSchm
LEFT OUTER JOIN I_ProdIntrastatSCForKeyDate AS _ProdIntrastatSCForKeyDate ON _IntrastatSrvcNmbrSchm.TrdClassfctnNmbrSchm = _ProdIntrastatSCForKeyDate.TrdClassfctnNmbrSchm AND _TrdClassfctnProduct.Product = _ProdIntrastatSCForKeyDate.Product  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON _Product.Product = Product  -- association [0..1]
;