C_SuplrQtnItemHierarchyTP
QTN Hierarchy for Items
C_SuplrQtnItemHierarchyTP is a Consumption CDS View that provides data about "QTN Hierarchy for Items" in SAP S/4HANA. It reads from 1 data source (I_SuplrQuotationItemEnhWD) and exposes 73 fields with key fields SupplierQuotation, SupplierQuotationItem. It has 11 associations to related views. Part of development package ODATA_MM_PUR_QTN_MAINTAIN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SuplrQuotationItemEnhWD | I_SuplrQuotationItemEnhWD | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_SuplrQuotationEnhWD | _SuplrQuotation | _SuplrQuotation.SupplierQuotation = $projection.SupplierQuotation |
| [0..1] | P_RFQScheduleLine | _RFQScheduleLine | _RFQScheduleLine.RequestForQuotation = $projection.RequestForQuotation and _RFQScheduleLine.RequestForQuotationItem = $projection.RequestForQuotationItem |
| [1..1] | I_SupplierQuotation | _SupplierQuotation | _SupplierQuotation.SupplierQuotation = $projection.SupplierQuotation |
| [0..1] | C_MM_ProductTypeValueHelp | _ProductTypeValueHelp | _ProductTypeValueHelp.ProductType = $projection.PurgDocProductType |
| [0..1] | C_MM_MaterialValueHelp | _MaterialValueHelp | _MaterialValueHelp.Material = $projection.Material and _MaterialValueHelp.Plant = $projection.Plant |
| [0..1] | C_MM_MaterialGroupValueHelp | _MaterialGroupValueHelp | _MaterialGroupValueHelp.MaterialGroup = $projection.MaterialGroup |
| [0..*] | I_MaterialText | _MaterialText | $projection.Material = _MaterialText.Material |
| [0..*] | I_MaterialGroupText | _MaterialGroupText | $projection.MaterialGroup = _MaterialGroupText.MaterialGroup |
| [0..*] | I_MaterialText | _ManufacturerMaterialText | $projection.ManufacturerMaterial = _ManufacturerMaterialText.Material |
| [0..*] | C_MM_PlantValueHelp | _PlantValueHelp | _PlantValueHelp.Plant = $projection.Plant |
| [1..1] | C_AddressTP | _AddressTP | _AddressTP.AddressID = $projection.ItemDeliveryAddressID |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CQTNITMHIER | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | QTN Hierarchy for Items | view | |
| Search.searchable | true | view | |
| ObjectModel.query.implementedBy | ABAP:CL_MM_QTN_HIER_QUERY | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (73)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SupplierQuotation | I_SuplrQuotationItemEnhWD | SupplierQuotation | RFQ |
| KEY | SupplierQuotationItem | I_SuplrQuotationItemEnhWD | SupplierQuotationItem | Supplier Quotation Item |
| PurchasingDocumentCategory | I_SuplrQuotationItemEnhWD | PurchasingDocumentCategory | Doc. Category | |
| PurchasingDocumentItemText | I_SuplrQuotationItemEnhWD | PurchasingDocumentItemText | Short Text | |
| PurchasingInfoRecordCategory | ||||
| CreationDate | _SupplierQuotation | CreationDate | Time Stamp | |
| Supplier | _SupplierQuotation | Supplier | Supplier | |
| SupplierName | ||||
| Material | I_SuplrQuotationItemEnhWD | Material | Vehicle Model | |
| PurgDocProductType | I_SuplrQuotationItemEnhWD | ProductType | Product Type Group | |
| ManufacturerMaterial | I_SuplrQuotationItemEnhWD | ManufacturerMaterial | MPN: Material | |
| SupplierMaterialNumber | I_SuplrQuotationItemEnhWD | SupplierMaterialNumber | Supp. Mat. No. | |
| ManufacturerPartNmbr | I_SuplrQuotationItemEnhWD | ManufacturerPartNmbr | Mfr Part Number | |
| Manufacturer | I_SuplrQuotationItemEnhWD | Manufacturer | Manufacturer | |
| MaterialGroup | I_SuplrQuotationItemEnhWD | MaterialGroup | Product Group | |
| Plant | I_SuplrQuotationItemEnhWD | Plant | Valuation Area | |
| ManualDeliveryAddressID | I_SuplrQuotationItemEnhWD | ManualDeliveryAddressID | Address Number | |
| ReferenceDeliveryAddressID | I_SuplrQuotationItemEnhWD | ReferenceDeliveryAddressID | Reference Address | |
| AddressID | I_SuplrQuotationItemEnhWD | AddressID | Ship-to address | |
| ItemDeliveryAddressID | I_SuplrQuotationItemEnhWD | ItemDeliveryAddressID | Address | |
| ScheduleLineDeliveryDate | I_SuplrQuotationItemEnhWD | ScheduleLineDeliveryDate | Delivery Date | |
| ScheduleLineOrderQuantity | I_SuplrQuotationItemEnhWD | ScheduleLineOrderQuantity | Scheduled Qty | |
| RequestedQuantity | ||||
| AwardedQuantity | I_SuplrQuotationItemEnhWD | AwardedQuantity | Awarded Quantity | |
| PerformancePeriodStartDate | I_SuplrQuotationItemEnhWD | PerformancePeriodStartDate | Start of Performance Period | |
| PerformancePeriodEndDate | I_SuplrQuotationItemEnhWD | PerformancePeriodEndDate | End of Performance Period | |
| OrderPriceUnit | I_SuplrQuotationItemEnhWD | OrderPriceUnit | Order Price Un. | |
| OrderPriceUnitToOrderUnitNmrtr | I_SuplrQuotationItemEnhWD | OrderPriceUnitToOrderUnitNmrtr | Quantity Conversion Numerator | |
| OrdPriceUnitToOrderUnitDnmntr | I_SuplrQuotationItemEnhWD | OrdPriceUnitToOrderUnitDnmntr | Quantity Conversion Denominator | |
| OrderQuantityUnit | I_SuplrQuotationItemEnhWD | OrderQuantityUnit | Sales Unit | |
| NetAmount | I_SuplrQuotationItemEnhWD | NetAmount | Stated Amount | |
| GrossAmount | I_SuplrQuotationItemEnhWD | GrossAmount | Gross Order Value | |
| EffectiveAmount | I_SuplrQuotationItemEnhWD | EffectiveAmount | Effective Value | |
| NetPriceAmount | I_SuplrQuotationItemEnhWD | NetPriceAmount | Net Price | |
| NetPriceQuantity | I_SuplrQuotationItemEnhWD | NetPriceQuantity | Price Unit | |
| DocumentCurrency | I_SuplrQuotationItemEnhWD | DocumentCurrency | Document Currency | |
| PurchaseRequisition | I_SuplrQuotationItemEnhWD | PurchaseRequisition | Purchase Requisition | |
| PurchaseRequisitionItem | I_SuplrQuotationItemEnhWD | PurchaseRequisitionItem | Item of Requisition | |
| FormattedPurRequisitionItem | ||||
| RequestForQuotation | I_SuplrQuotationItemEnhWD | RequestForQuotation | RFQ | |
| FormattedRFQItem | ||||
| RequestForQuotationItem | I_SuplrQuotationItemEnhWD | RequestForQuotationItem | RFQ Item | |
| PurchasingInfoRecordUpdateCode | I_SuplrQuotationItemEnhWD | PurchasingInfoRecordUpdateCode | InfoUpdate | |
| NoteTypeListText | ||||
| PurchasingInfoRecord | I_SuplrQuotationItemEnhWD | PurchasingInfoRecord | Purchasing Info Record | |
| PurchasingParentItem | I_SuplrQuotationItemEnhWD | PurchasingParentItem | Parent Item No | |
| PurgConfigurableItemNumber | I_SuplrQuotationItemEnhWD | PurgConfigurableItemNumber | Hierarchy Number | |
| IsStatisticalItem | I_SuplrQuotationItemEnhWD | IsStatisticalItem | Statisticl.Indicator | |
| PurgExternalSortNumber | I_SuplrQuotationItemEnhWD | PurgExternalSortNumber | External Sort No. | |
| HierarchyNode | I_SuplrQuotationItemEnhWD | HierarchyNode | Node | |
| HierarchyParentNode | I_SuplrQuotationItemEnhWD | HierarchyParentNode | Hier.node | |
| HierarchyLevel | I_SuplrQuotationItemEnhWD | HierarchyLevel | Hierarchy Level | |
| HierarchyNodeSubTreeSize | I_SuplrQuotationItemEnhWD | HierarchyNodeSubTreeSize | Descendant Count | |
| HierarchyDrillState | I_SuplrQuotationItemEnhWD | HierarchyDrillState | Drill State | |
| HierarchyNodeOrdinalNumber | I_SuplrQuotationItemEnhWD | HierarchyNodeOrdinalNumber | Node Number | |
| IsOutline | I_SuplrQuotationItemEnhWD | IsOutline | Item Set | |
| _DocumentCurrency | I_SuplrQuotationItemEnhWD | _DocumentCurrency | ||
| _Material | I_SuplrQuotationItemEnhWD | _Material | ||
| _MaterialGroup | I_SuplrQuotationItemEnhWD | _MaterialGroup | ||
| _MaterialGroupText | _MaterialGroupText | |||
| _MaterialText | _MaterialText | |||
| _ManufacturerMaterial | I_SuplrQuotationItemEnhWD | _ManufacturerMaterial | ||
| _ManufacturerMaterialText | _ManufacturerMaterialText | |||
| _Plant | I_SuplrQuotationItemEnhWD | _Plant | ||
| _PlantValueHelp | _PlantValueHelp | |||
| _PurgDocumentCategory | I_SuplrQuotationItemEnhWD | _PurgDocumentCategory | ||
| _ProductType | I_SuplrQuotationItemEnhWD | _ProductType | ||
| _ProductTypeValueHelp | _ProductTypeValueHelp | |||
| _SupplierQuotation | _SupplierQuotation | |||
| _MaterialValueHelp | _MaterialValueHelp | |||
| _MaterialGroupValueHelp | _MaterialGroupValueHelp | |||
| _AddressTP | _AddressTP | |||
| _SuplrQuotation | _SuplrQuotation |
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_SuplrQtnItemHierarchyTP.
-- 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: CQTNITMHIER
CREATE VIEW C_SuplrQtnItemHierarchyTP AS
SELECT
I_SuplrQuotationItemEnhWD.SupplierQuotation AS SupplierQuotation,
I_SuplrQuotationItemEnhWD.SupplierQuotationItem AS SupplierQuotationItem,
I_SuplrQuotationItemEnhWD.PurchasingDocumentCategory AS PurchasingDocumentCategory,
I_SuplrQuotationItemEnhWD.PurchasingDocumentItemText AS PurchasingDocumentItemText,
cast ( '' as vdm_inforecordcategory ) AS PurchasingInfoRecordCategory,
_SupplierQuotation.CreationDate AS CreationDate,
_SupplierQuotation.Supplier AS Supplier,
_SupplierQuotation._Supplier.SupplierName AS SupplierName,
I_SuplrQuotationItemEnhWD.Material AS Material,
I_SuplrQuotationItemEnhWD.ProductType AS PurgDocProductType,
I_SuplrQuotationItemEnhWD.ManufacturerMaterial AS ManufacturerMaterial,
I_SuplrQuotationItemEnhWD.SupplierMaterialNumber AS SupplierMaterialNumber,
I_SuplrQuotationItemEnhWD.ManufacturerPartNmbr AS ManufacturerPartNmbr,
I_SuplrQuotationItemEnhWD.Manufacturer AS Manufacturer,
I_SuplrQuotationItemEnhWD.MaterialGroup AS MaterialGroup,
I_SuplrQuotationItemEnhWD.Plant AS Plant,
I_SuplrQuotationItemEnhWD.ManualDeliveryAddressID AS ManualDeliveryAddressID,
I_SuplrQuotationItemEnhWD.ReferenceDeliveryAddressID AS ReferenceDeliveryAddressID,
I_SuplrQuotationItemEnhWD.AddressID AS AddressID,
I_SuplrQuotationItemEnhWD.ItemDeliveryAddressID AS ItemDeliveryAddressID,
I_SuplrQuotationItemEnhWD.ScheduleLineDeliveryDate AS ScheduleLineDeliveryDate,
I_SuplrQuotationItemEnhWD.ScheduleLineOrderQuantity AS ScheduleLineOrderQuantity,
cast( _RFQScheduleLine.ScheduleLineOrderQuantity as vdm_requested_quantity preserving type ) AS RequestedQuantity,
I_SuplrQuotationItemEnhWD.AwardedQuantity AS AwardedQuantity,
I_SuplrQuotationItemEnhWD.PerformancePeriodStartDate AS PerformancePeriodStartDate,
I_SuplrQuotationItemEnhWD.PerformancePeriodEndDate AS PerformancePeriodEndDate,
I_SuplrQuotationItemEnhWD.OrderPriceUnit AS OrderPriceUnit,
I_SuplrQuotationItemEnhWD.OrderPriceUnitToOrderUnitNmrtr AS OrderPriceUnitToOrderUnitNmrtr,
I_SuplrQuotationItemEnhWD.OrdPriceUnitToOrderUnitDnmntr AS OrdPriceUnitToOrderUnitDnmntr,
I_SuplrQuotationItemEnhWD.OrderQuantityUnit AS OrderQuantityUnit,
I_SuplrQuotationItemEnhWD.NetAmount AS NetAmount,
I_SuplrQuotationItemEnhWD.GrossAmount AS GrossAmount,
I_SuplrQuotationItemEnhWD.EffectiveAmount AS EffectiveAmount,
I_SuplrQuotationItemEnhWD.NetPriceAmount AS NetPriceAmount,
I_SuplrQuotationItemEnhWD.NetPriceQuantity AS NetPriceQuantity,
I_SuplrQuotationItemEnhWD.DocumentCurrency AS DocumentCurrency,
I_SuplrQuotationItemEnhWD.PurchaseRequisition AS PurchaseRequisition,
I_SuplrQuotationItemEnhWD.PurchaseRequisitionItem AS PurchaseRequisitionItem,
cast( '' as mm_pur_requisition_frmtdpritem) AS FormattedPurRequisitionItem,
I_SuplrQuotationItemEnhWD.RequestForQuotation AS RequestForQuotation,
cast( '' as mm_pur_rfq_frmtdpritem) AS FormattedRFQItem,
I_SuplrQuotationItemEnhWD.RequestForQuotationItem AS RequestForQuotationItem,
I_SuplrQuotationItemEnhWD.PurchasingInfoRecordUpdateCode AS PurchasingInfoRecordUpdateCode,
cast( '' as abap.sstring( 450 ) ) AS NoteTypeListText,
I_SuplrQuotationItemEnhWD.PurchasingInfoRecord AS PurchasingInfoRecord,
I_SuplrQuotationItemEnhWD.PurchasingParentItem AS PurchasingParentItem,
I_SuplrQuotationItemEnhWD.PurgConfigurableItemNumber AS PurgConfigurableItemNumber,
I_SuplrQuotationItemEnhWD.IsStatisticalItem AS IsStatisticalItem,
I_SuplrQuotationItemEnhWD.PurgExternalSortNumber AS PurgExternalSortNumber,
I_SuplrQuotationItemEnhWD.HierarchyNode AS HierarchyNode,
I_SuplrQuotationItemEnhWD.HierarchyParentNode AS HierarchyParentNode,
I_SuplrQuotationItemEnhWD.HierarchyLevel AS HierarchyLevel,
I_SuplrQuotationItemEnhWD.HierarchyNodeSubTreeSize AS HierarchyNodeSubTreeSize,
I_SuplrQuotationItemEnhWD.HierarchyDrillState AS HierarchyDrillState,
I_SuplrQuotationItemEnhWD.HierarchyNodeOrdinalNumber AS HierarchyNodeOrdinalNumber,
I_SuplrQuotationItemEnhWD.IsOutline AS IsOutline,
I_SuplrQuotationItemEnhWD._DocumentCurrency AS _DocumentCurrency,
I_SuplrQuotationItemEnhWD._Material AS _Material,
I_SuplrQuotationItemEnhWD._MaterialGroup AS _MaterialGroup,
I_SuplrQuotationItemEnhWD._ManufacturerMaterial AS _ManufacturerMaterial,
I_SuplrQuotationItemEnhWD._Plant AS _Plant,
I_SuplrQuotationItemEnhWD._PurgDocumentCategory AS _PurgDocumentCategory,
I_SuplrQuotationItemEnhWD._ProductType AS _ProductType
FROM I_SuplrQuotationItemEnhWD
LEFT OUTER JOIN C_SuplrQuotationEnhWD AS _SuplrQuotation ON _SuplrQuotation.SupplierQuotation = SupplierQuotation -- association [1..1]
LEFT OUTER JOIN P_RFQScheduleLine AS _RFQScheduleLine ON _RFQScheduleLine.RequestForQuotation = RequestForQuotation AND _RFQScheduleLine.RequestForQuotationItem = RequestForQuotationItem -- association [0..1]
LEFT OUTER JOIN I_SupplierQuotation AS _SupplierQuotation ON _SupplierQuotation.SupplierQuotation = SupplierQuotation -- association [1..1]
LEFT OUTER JOIN C_MM_ProductTypeValueHelp AS _ProductTypeValueHelp ON _ProductTypeValueHelp.ProductType = PurgDocProductType -- association [0..1]
LEFT OUTER JOIN C_MM_MaterialValueHelp AS _MaterialValueHelp ON _MaterialValueHelp.Material = Material AND _MaterialValueHelp.Plant = Plant -- association [0..1]
LEFT OUTER JOIN C_MM_MaterialGroupValueHelp AS _MaterialGroupValueHelp ON _MaterialGroupValueHelp.MaterialGroup = MaterialGroup -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material -- association [0..*]
LEFT OUTER JOIN I_MaterialGroupText AS _MaterialGroupText ON MaterialGroup = _MaterialGroupText.MaterialGroup -- association [0..*]
LEFT OUTER JOIN I_MaterialText AS _ManufacturerMaterialText ON ManufacturerMaterial = _ManufacturerMaterialText.Material -- association [0..*]
LEFT OUTER JOIN C_MM_PlantValueHelp AS _PlantValueHelp ON _PlantValueHelp.Plant = Plant -- association [0..*]
LEFT OUTER JOIN C_AddressTP AS _AddressTP ON _AddressTP.AddressID = ItemDeliveryAddressID -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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