I_ProductTypeCode

DDL: I_PRODUCTTYPECODE Type: view BASIC

Product Type Code

I_ProductTypeCode (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Product Type Group Code · Database & Data Management

I_ProductTypeCode is a Basic CDS View (Dimension) that provides data about "Product Type Code" in SAP S/4HANA. It reads from 1 data source (cmd_prdtype) and exposes 2 fields with key field ProductTypeCode. It has 1 association to related views.

SAP Help Documentation

CategoryCDS Views for Product Master
Data CategoryDimension
StatusReleased
Data Extraction TypeFull (physical deletions are possible in source tables) Delta: Change Data Capture
Corresponding DataSourceNA
Purpose
This CDS view provides the information about product type codes for given Product to the customer. Description: Product Type Code

Prerequisites
Users must also have authorization to access the Material Master Data for Plant.

Structure
Object types This view relates to the following SAP object types: Material Product Product Type

SAP Business Warehouse (SAP BW) Extraction
Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. In case you are interested in the details of the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Use SAP Library BI Content . For more information about data extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessDatabase & Data Management
Application ComponentLO-MD-MM
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source for Search, Analytical Dimension, Data Source for Data Extraction
PackageDatabase & Data Management for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides the information about product type codes for given Product to the customer. </p> <p>Description: Product Type Code </p>

Documentation

Data Sources (1)

SourceAliasJoin Type
cmd_prdtype cmd_prdtype from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_ProductTypeCodeText _Text $projection.ProductTypeCode = _Text.ProductTypeCode

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName IPRODTYPCODE view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
ObjectModel.representativeKey ProductTypeCode view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #CUSTOMIZING view
EndUserText.label Product Type Code view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.dataExtraction.delta.changeDataCapture.automatic true view
ObjectModel.sapObjectNodeType.name ProductTypeGroupCode view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY ProductTypeCode prod_type_code Product Type Group
_Text _Text

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_ProductTypeCode.
-- 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.

CREATE VIEW I_ProductTypeCode AS
SELECT
  prod_type_code AS ProductTypeCode
FROM cmd_prdtype
LEFT OUTER JOIN I_ProductTypeCodeText AS _Text ON ProductTypeCode = _Text.ProductTypeCode  -- association [0..*]
;