C_OpnCtlgItem

DDL: C_OPNCTLGITEM SQL: COPNCTLGITEM Type: view CONSUMPTION

Catalog Item

C_OpnCtlgItem is a Consumption CDS View that provides data about "Catalog Item" in SAP S/4HANA. It reads from 1 data source (I_OpnCtlgItem) and exposes 53 fields with key fields OpnCtlgItemID, OpnCtlgItemKey. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_OpnCtlgItem I_OpnCtlgItem from

Associations (3)

CardinalityTargetAliasCondition
[1..*] C_OpnCtlgAttribute _OpnCtlgAttribute $projection.OpnCtlgItemID = _OpnCtlgAttribute.OpnCtlgItemID
[1..*] C_OpnCtlgReview _OpnCtlgReview $projection.OpnCtlgItemID = _OpnCtlgReview.OpnCtlgItemID
[1..*] C_OpnCtlgProdImages _OpnCtlgProdImages $projection.OpnCtlgItemID = _OpnCtlgProdImages.OpnCtlgItemID

Annotations (14)

NameValueLevelField
VDM.viewType #CONSUMPTION view
ClientDependent true view
Search.searchable true view
AbapCatalog.sqlViewName COPNCTLGITEM view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Catalog Item view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #C view
UI.headerInfo.typeName Catalog Item view
UI.headerInfo.typeNamePlural Catalog Items view
UI.headerInfo.title.value ProductDescription view
UI.headerInfo.imageUrl OpnCtlgMainImageURL view

Fields (53)

KeyFieldSource TableSource FieldDescription
KEY OpnCtlgItemID OpnCtlgItemID Catalog Item Key
KEY OpnCtlgItemKey OpnCtlgItemKey Item Hash Key
OpnCtlgMainImageURL Image
ProductDescription _ItemDesc ProductDescription Product Description
OpnCtlgSrchLongText _LongText OpnCtlgSrchLongText Product Details
OpenCatalogUserRatingValue OpenCatalogUserRatingValue Rating
ProductCatalogName ProductCatalogName Catalog Name
OpnCtlgItemPrice _PriceCon OpnCtlgItemPrice Item Price
OpnCtlgItemCurrency _PriceCon OpnCtlgItemCurrency Item Currency
NetPriceQuantity NetPriceQuantity Net Price Quantity
UnitOfMeasure UnitOfMeasure Unit of Measure
OpnCtlgMinOrderQuantity OpnCtlgMinOrderQuantity Quantity
MaterialFixedLotSizeQuantity MaterialFixedLotSizeQuantity Quantity
OpnCtlgPrcValidityStartDate Price Valid From
OpnCtlgPrcValidityEndDate OpnCtlgPrcValidityEndDate Price Valid To
TaxTolerancePercent TaxTolerancePercent Tax Percentage
ManufacturerName ManufacturerName Manufacturer Name
OpnCtlgIntCatalogName OpnCtlgIntCatalogName Internal Catalog Name
Material Material Material
MaterialGroupName _MtrGrpText MaterialGroupName Material Group Name
OpnCtlgSupplierID OpnCtlgSupplierID Vendor
ProductType ProductType Product Type
OpnCtlgCategoryID OpnCtlgCategoryID Category
OpnCtlgHasProdRelationExists OpnCtlgHasProdRelationExists Product Relation Exists
OpnCtlgMainImageText Main Image Text
OpnCtlgMainImageID _AttachMain OpnCtlgImageID Search Main Image Key
OpnCtlgPriceID OpnCtlgPriceID Price Key
OpnCtlgHasPriceScale OpnCtlgHasPriceScale Price Scale
Service Service Service
OpnCtlgExternalProductID OpnCtlgExternalProductID External Product ID
OpnCtlgWebServiceID OpnCtlgWebServiceID Catalog Web Service ID
ItemType ItemType Item Type
OpnCtlgContentUnit Content Unit
ContractAccount ContractAccount Contract Account
OpnCtlgContractItem OpnCtlgContractItem Contract Item
OpnCtlgExternalQuoteID OpnCtlgExternalQuoteID External Quote ID
OpnCtlgExtQuoteItem OpnCtlgExtQuoteItem External Quote Item
OpnCtlgExtSchemaType OpnCtlgExtSchemaType External Schema Type
OpnCtlgExternalCategoryID OpnCtlgExternalCategoryID External Category ID
OpnCtlgExternalCategory OpnCtlgExternalCategory External Category
ParentItem ParentItem Parent Item
Plant Plant Plant
OpnCtlgPurchasingOrganization OpnCtlgPurchasingOrganization Purchasing Organization
OpnCtlgSystemName OpnCtlgSystemName System Name
OpnCtlgLeadTmeAnncmntDuDaysVal OpnCtlgLeadTmeAnncmntDuDaysVal Lead Time
_UnitOfMeasureText _UnitOfMeasureText
OpnCtlgNumberOfHits Number of Hits
OrderQuantity Order Quantity
ObjectType
OpnCtlgOriginApplication
_OpnCtlgAttribute _OpnCtlgAttribute
_OpnCtlgReview _OpnCtlgReview
_OpnCtlgProdImages _OpnCtlgProdImages

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_OpnCtlgItem.
-- 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: COPNCTLGITEM

CREATE VIEW C_OpnCtlgItem AS
SELECT
  OpnCtlgItemID,
  OpnCtlgItemKey,
  _AttachMain._Attach.OpnCtlgMainImageURL AS OpnCtlgMainImageURL,
  _ItemDesc.ProductDescription AS ProductDescription,
  _LongText.OpnCtlgSrchLongText AS OpnCtlgSrchLongText,
  OpenCatalogUserRatingValue,
  ProductCatalogName,
  _PriceCon.OpnCtlgItemPrice AS OpnCtlgItemPrice,
  _PriceCon.OpnCtlgItemCurrency AS OpnCtlgItemCurrency,
  NetPriceQuantity,
  UnitOfMeasure,
  OpnCtlgMinOrderQuantity,
  MaterialFixedLotSizeQuantity,
  / OpnCtlgPrcValidityStartDate AS OpnCtlgPrcValidityStartDate,
  OpnCtlgPrcValidityEndDate,
  TaxTolerancePercent,
  ManufacturerName,
  OpnCtlgIntCatalogName,
  Material,
  _MtrGrpText.MaterialGroupName AS MaterialGroupName,
  OpnCtlgSupplierID,
  ProductType,
  OpnCtlgCategoryID,
  OpnCtlgHasProdRelationExists,
  _AttachMain._Attach.OpnCtlgMainImageName AS OpnCtlgMainImageText,
  _AttachMain.OpnCtlgImageID AS OpnCtlgMainImageID,
  OpnCtlgPriceID,
  OpnCtlgHasPriceScale,
  Service,
  OpnCtlgExternalProductID,
  OpnCtlgWebServiceID,
  ItemType,
  cast( OpnCtlgContentUnit as abap.unit( 3 ) ) AS OpnCtlgContentUnit,
  ContractAccount,
  OpnCtlgContractItem,
  OpnCtlgExternalQuoteID,
  OpnCtlgExtQuoteItem,
  OpnCtlgExtSchemaType,
  OpnCtlgExternalCategoryID,
  OpnCtlgExternalCategory,
  ParentItem,
  Plant,
  OpnCtlgPurchasingOrganization,
  OpnCtlgSystemName,
  OpnCtlgLeadTmeAnncmntDuDaysVal,
  cast(0 as abap.int4( 10 )) AS OpnCtlgNumberOfHits,
  cast(0 as abap.int4( 10 )) AS OrderQuantity,
  cast(0 as abap.char( 30 )) AS ObjectType,
  cast(0 as abap.char( 50 )) AS OpnCtlgOriginApplication
FROM I_OpnCtlgItem
LEFT OUTER JOIN C_OpnCtlgAttribute AS _OpnCtlgAttribute ON OpnCtlgItemID = _OpnCtlgAttribute.OpnCtlgItemID  -- association [1..*]
LEFT OUTER JOIN C_OpnCtlgReview AS _OpnCtlgReview ON OpnCtlgItemID = _OpnCtlgReview.OpnCtlgItemID  -- association [1..*]
LEFT OUTER JOIN C_OpnCtlgProdImages AS _OpnCtlgProdImages ON OpnCtlgItemID = _OpnCtlgProdImages.OpnCtlgItemID  -- association [1..*]
;