SADL_V_EXP_ProductCategory

DDL: SADL_V_EXP_PRODUCT_CAT SQL: SADL_V_E_PROD_C Type: view

CDS view to test view parameters

SADL_V_EXP_ProductCategory is a CDS View that provides data about "CDS view to test view parameters" in SAP S/4HANA. It reads from 2 data sources (snwd_pd, snwd_pd_catgos) and exposes 5 fields with key field productId.

Data Sources (2)

SourceAliasJoin Type
snwd_pd product from
snwd_pd_catgos productCategory left_outer

Parameters (1)

NameTypeDefault
p_mainCategory abap.char( 40 )

Annotations (2)

NameValueLevelField
AbapCatalog.sqlViewName SADL_V_E_PROD_C view
EndUserText.label CDS view to test view parameters view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY productId snwd_pd product_id Simulated Product ID
category snwd_pd category Violation Category
price snwd_pd price RVP f.PricePro.
currencyCode snwd_pd currency_code Currency Code
mainCategory snwd_pd_catgos main_category Main Category

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 SADL_V_EXP_ProductCategory.
-- 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: SADL_V_E_PROD_C
-- Parameters: p_mainCategory : abap.char( 40 )

CREATE VIEW SADL_V_EXP_ProductCategory AS
SELECT
  product.product_id AS productId,
  product.category AS category,
  product.price AS price,
  product.currency_code AS currencyCode,
  productCategory.main_category AS mainCategory
FROM snwd_pd AS product
LEFT OUTER JOIN snwd_pd_catgos AS productCategory ON /* join condition not captured in parsed metadata */
;