N_Product
Auxiliary view for Product
N_Product is a CDS View that provides data about "Auxiliary view for Product" in SAP S/4HANA. It reads from 1 data source (mara) and exposes 40 fields with key field Product. It has 23 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| mara | ProductSearch | from |
Associations (23)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_ProductSalesDelivery | _ProductSalesDelivery | $projection.Product = _ProductSalesDelivery.Product |
| [0..*] | I_DivisionText | _DivisionText | $projection.Division = _DivisionText.Division |
| [0..*] | I_ProductText | _Text | $projection.Product = _Text.Product |
| [0..1] | I_ProductGroup_2 | _ProductGroup | $projection.ProductGroup = _ProductGroup.ProductGroup |
| [1..1] | I_Producttype | _ProductType | $projection.ProductType = _ProductType.ProductType |
| [0..*] | I_ProductTypeText | _ProductTypeName | $projection.ProductType = _ProductTypeName.ProductType |
| [1..1] | I_ProductCategory | _ProductCategory | $projection.ProductCategory = _ProductCategory.ProductCategory |
| [0..*] | I_SourceOfSupplyCategoryT | _SourceOfSupplyText | $projection.SourceOfSupply = _SourceOfSupplyText.SourceOfSupplyCategory |
| [0..1] | I_Supplier | _Supplier | $projection.ManufacturerNumber = _Supplier.Supplier |
| [0..*] | I_TextObjectPlainLongText | _TextObjectPlainLongText | $projection.Product = _TextObjectPlainLongText.TextObjectKey and _TextObjectPlainLongText.TextObjectCategory = 'MATERIAL' |
| [0..*] | I_DocumentInfoRecordObjectLink | _DocInfoRecordObjectLink | $projection.Product = _DocInfoRecordObjectLink.LinkedSAPObjectKey and _DocInfoRecordObjectLink.LinkedSAPObject = 'MARA' |
| [0..*] | I_UnitOfMeasureText | _WeightUnitText | $projection.WeightUnit = _WeightUnitText.UnitOfMeasure |
| [0..*] | I_UnitOfMeasureText | _PurOrderQuantityUnitText | $projection.PurchaseOrderQuantityUnit = _PurOrderQuantityUnitText.UnitOfMeasure |
| [0..*] | I_UnitOfMeasureText | _BaseUnitOfMeasureText | $projection.BaseUnit = _BaseUnitOfMeasureText.UnitOfMeasure |
| [0..*] | I_ProductPlant | _ProductPlant | $projection.Product = _ProductPlant.Product |
| [0..*] | I_ClfnObjectCharcValForKeyDate | _CharValueAssignment | $projection.Product = _CharValueAssignment.ClfnObjectID and _CharValueAssignment.ClfnObjectTable = 'MARA' |
| [0..*] | I_ClfnObjectClassForKeyDate | _ClassAssignment | $projection.Product = _ClassAssignment.ClfnObjectID and _ClassAssignment.ClfnObjectTable = 'MARA' |
| [1..1] | I_UserContactCard | _CreatedByUserContactCard | $projection.CreatedByUser = _CreatedByUserContactCard.ContactCardID |
| [0..1] | I_UserContactCard | _LastChangedByUserContactCard | $projection.LastChangedByUser = _LastChangedByUserContactCard.ContactCardID |
| [1..1] | I_UnitOfMeasure | _BaseUnitOfMeasure | $projection.BaseUnit = _BaseUnitOfMeasure.UnitOfMeasure |
| [0..1] | I_Division | _Division | $projection.Division = _Division.Division |
| [0..1] | I_UnitOfMeasure | _WeightUnitValueHelp | $projection.WeightUnit = _WeightUnitValueHelp.UnitOfMeasure |
| [0..1] | E_Product | _ProductExt | $projection.Product = _ProductExt.Product |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | NPRODUCT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Auxiliary view for Product | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.auxiliaryEntity.for.entity | I_Product | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | |||
| SourceOfSupply | mara | bwscl | Supply source | |
| ManufacturerNumber | mara | mfrnr | Manufacturer | |
| PurchaseOrderQuantityUnit | mara | bstme | Unit.Order | |
| AuthorizationGroup | mara | begru | AuthorizGroup | |
| BaseUnit | mara | meins | Valuation Unit | |
| CreatedByUser | mara | ernam | User Name | |
| LastChangedByUser | mara | aenam | User Name | |
| Division | mara | spart | Source supplier | |
| GrossWeight | mara | brgew | Weight | |
| NetWeight | mara | ntgew | Net Weight | |
| ProductExternalID | mara | matnr_external | Material | |
| WeightUnit | mara | gewei | Weight Unit | |
| ProductCategory | ||||
| ProductGroup | ||||
| ProductOldID | ||||
| ProductStandardID | ||||
| ProductType | ||||
| _ProductTypeName | _ProductTypeName | |||
| _ProductType | _ProductType | |||
| _ProductSalesDelivery | _ProductSalesDelivery | |||
| _ProductGroup | _ProductGroup | |||
| _ProductCategory | _ProductCategory | |||
| _SourceOfSupplyText | _SourceOfSupplyText | |||
| _Supplier | _Supplier | |||
| _Division | _Division | |||
| _DivisionText | _DivisionText | |||
| _BaseUnitOfMeasure | _BaseUnitOfMeasure | |||
| _BaseUnitOfMeasureText | _BaseUnitOfMeasureText | |||
| _Text | _Text | |||
| _WeightUnitText | _WeightUnitText | |||
| _WeightUnitValueHelp | _WeightUnitValueHelp | |||
| _TextObjectPlainLongText | _TextObjectPlainLongText | |||
| _DocInfoRecordObjectLink | _DocInfoRecordObjectLink | |||
| _PurOrderQuantityUnitText | _PurOrderQuantityUnitText | |||
| _ProductPlant | _ProductPlant | |||
| _CharValueAssignment | _CharValueAssignment | |||
| _ClassAssignment | _ClassAssignment | |||
| _CreatedByUserContactCard | _CreatedByUserContactCard | |||
| _LastChangedByUserContactCard | _LastChangedByUserContactCard |
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 N_Product.
-- 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 N_Product AS
SELECT
cast (ProductSearch.matnr as productnumber preserving type ) AS Product,
ProductSearch.bwscl AS SourceOfSupply,
ProductSearch.mfrnr AS ManufacturerNumber,
ProductSearch.bstme AS PurchaseOrderQuantityUnit,
ProductSearch.begru AS AuthorizationGroup,
ProductSearch.meins AS BaseUnit,
ProductSearch.ernam AS CreatedByUser,
ProductSearch.aenam AS LastChangedByUser,
ProductSearch.spart AS Division,
ProductSearch.brgew AS GrossWeight,
ProductSearch.ntgew AS NetWeight,
ProductSearch.matnr_external AS ProductExternalID,
ProductSearch.gewei AS WeightUnit,
cast (ProductSearch.attyp as prodcategory preserving type ) AS ProductCategory,
cast (ProductSearch.matkl as productgroup) AS ProductGroup,
cast (ProductSearch.bismt as productoldid) AS ProductOldID,
cast( ProductSearch.ean11 as globaltradeitemnumber) AS ProductStandardID,
cast (ProductSearch.mtart as producttype preserving type ) AS ProductType
FROM mara AS ProductSearch
LEFT OUTER JOIN I_ProductSalesDelivery AS _ProductSalesDelivery ON Product = _ProductSalesDelivery.Product -- association [0..*]
LEFT OUTER JOIN I_DivisionText AS _DivisionText ON Division = _DivisionText.Division -- association [0..*]
LEFT OUTER JOIN I_ProductText AS _Text ON Product = _Text.Product -- association [0..*]
LEFT OUTER JOIN I_ProductGroup_2 AS _ProductGroup ON ProductGroup = _ProductGroup.ProductGroup -- association [0..1]
LEFT OUTER JOIN I_Producttype AS _ProductType ON ProductType = _ProductType.ProductType -- association [1..1]
LEFT OUTER JOIN I_ProductTypeText AS _ProductTypeName ON ProductType = _ProductTypeName.ProductType -- association [0..*]
LEFT OUTER JOIN I_ProductCategory AS _ProductCategory ON ProductCategory = _ProductCategory.ProductCategory -- association [1..1]
LEFT OUTER JOIN I_SourceOfSupplyCategoryT AS _SourceOfSupplyText ON SourceOfSupply = _SourceOfSupplyText.SourceOfSupplyCategory -- association [0..*]
LEFT OUTER JOIN I_Supplier AS _Supplier ON ManufacturerNumber = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_TextObjectPlainLongText AS _TextObjectPlainLongText ON Product = _TextObjectPlainLongText.TextObjectKey AND _TextObjectPlainLongText.TextObjectCategory = 'MATERIAL' -- association [0..*]
LEFT OUTER JOIN I_DocumentInfoRecordObjectLink AS _DocInfoRecordObjectLink ON Product = _DocInfoRecordObjectLink.LinkedSAPObjectKey AND _DocInfoRecordObjectLink.LinkedSAPObject = 'MARA' -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasureText AS _WeightUnitText ON WeightUnit = _WeightUnitText.UnitOfMeasure -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasureText AS _PurOrderQuantityUnitText ON PurchaseOrderQuantityUnit = _PurOrderQuantityUnitText.UnitOfMeasure -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasureText AS _BaseUnitOfMeasureText ON BaseUnit = _BaseUnitOfMeasureText.UnitOfMeasure -- association [0..*]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Product = _ProductPlant.Product -- association [0..*]
LEFT OUTER JOIN I_ClfnObjectCharcValForKeyDate AS _CharValueAssignment ON Product = _CharValueAssignment.ClfnObjectID AND _CharValueAssignment.ClfnObjectTable = 'MARA' -- association [0..*]
LEFT OUTER JOIN I_ClfnObjectClassForKeyDate AS _ClassAssignment ON Product = _ClassAssignment.ClfnObjectID AND _ClassAssignment.ClfnObjectTable = 'MARA' -- association [0..*]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByUserContactCard ON CreatedByUser = _CreatedByUserContactCard.ContactCardID -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _LastChangedByUserContactCard ON LastChangedByUser = _LastChangedByUserContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnitOfMeasure ON BaseUnit = _BaseUnitOfMeasure.UnitOfMeasure -- association [1..1]
LEFT OUTER JOIN I_Division AS _Division ON Division = _Division.Division -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _WeightUnitValueHelp ON WeightUnit = _WeightUnitValueHelp.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN E_Product AS _ProductExt ON Product = _ProductExt.Product -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA