C_RequirementTrackingPurRFQ

DDL: C_REQUIREMENTTRACKINGPURRFQ SQL: CREQTRACKRFQ Type: view CONSUMPTION Package: ODATA_MM_PUR_REQUIREMENT_TRACK

RFQ by Requirement Tracking

C_RequirementTrackingPurRFQ is a Consumption CDS View that provides data about "RFQ by Requirement Tracking" in SAP S/4HANA. It reads from 2 data sources (I_PurchasingDocumentItem, I_SupplierQuotationItemEnh) and exposes 56 fields with key fields RequestForQuotation, RequestForQuotationItem, SupplierQuotation, SupplierQuotationItem. It has 18 associations to related views. Part of development package ODATA_MM_PUR_REQUIREMENT_TRACK.

Data Sources (2)

SourceAliasJoin Type
I_PurchasingDocumentItem I_PurchasingDocumentItem from
I_SupplierQuotationItemEnh I_SupplierQuotationItemEnh left_outer

Associations (18)

CardinalityTargetAliasCondition
[1..1] I_RequestForQuotationEnhanced _RFQEnhancedWeb $projection.RequestForQuotation = _RFQEnhancedWeb.RequestForQuotation
[1..1] I_PurchasingDocument _PurchasingDocument $projection.RequestForQuotation = _PurchasingDocument.PurchasingDocument
[1..1] I_PurchasingCategoryMatlGroup _PurchasingCategoryMatlGroup $projection.MaterialGroup = _PurchasingCategoryMatlGroup.MaterialGroup
[1..1] I_ProcmtBlockedSupplierTxt _ProcmtBlockedSupplierTxt _ProcmtBlockedSupplierTxt.PurchasingIsBlockedForSupplier = 'X' and _ProcmtBlockedSupplierTxt.Language = $session.system_language
[1..1] I_PurchasingDocument _SupplierQuotationDocument $projection.SupplierQuotation = _SupplierQuotationDocument.PurchasingDocument
[0..1] I_PurgDocScheduleLine _PurgDocScheduleLine _PurgDocScheduleLine.PurchasingDocument = $projection.RequestForQuotation and _PurgDocScheduleLine.PurchasingDocumentItem = $projection.RequestForQuotationItem and _PurgDocScheduleLine.ScheduleLine = '0001'
[1..1] I_Material _Material $projection.Material = _Material.Material
[1..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[1..1] I_Supplier _Supplier $projection.supplier = _Supplier.Supplier
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] C_PurchasingOrgValueHelp _PurchasingOrgValueHelp _PurchasingOrgValueHelp.PurchasingOrganization = $projection.purchasingorganization
[1..1] C_PurchasingGroupValueHelp _PurchasingGroupValueHelp _PurchasingGroupValueHelp.PurchasingGroup = $projection.purchasinggroup
[1..1] C_MM_CompanyCodeValueHelp _CompanyCodeValueHelp _CompanyCodeValueHelp.CompanyCode = $projection.companycode
[1..1] I_RequestForQuotationType _RFQType $projection.purchasingdocumenttype = _RFQType.RFQType
[1..1] I_PurgDocumentItemCategory _PurgDocumentItemCategory $projection.purgdocexternalitemcategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory
[1..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..1] I_UnitOfMeasure _OrderQuantityUnit $projection.OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure
[1..1] I_SupplierQuotation _SupplierQuotation _SupplierQuotation.SupplierQuotation = $projection.SupplierQuotation

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CREQTRACKRFQ view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #CONSUMPTION view
EndUserText.label RFQ by Requirement Tracking view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
Search.searchable true view
AccessControl.personalData.blocking #REQUIRED view
VDM.lifecycle.contract.type #NONE view

Fields (56)

KeyFieldSource TableSource FieldDescription
KEY RequestForQuotation I_PurchasingDocumentItem PurchasingDocument RFQ
KEY RequestForQuotationItem Item
KEY SupplierQuotation I_SupplierQuotationItemEnh SupplierQuotation Supplier Quotation
KEY SupplierQuotationItem I_SupplierQuotationItemEnh SupplierQuotationItem Supplier Quotation Item
FormattedRFQItem RFQ Item
RequestForQuotationName _RFQEnhancedWeb RequestForQuotationName RFQ Description
BindingPeriodValidityEndDate _RFQEnhancedWeb BindingPeriodValidityEndDate Binding Period
UserDescription Created By
CreationDate _RFQEnhancedWeb CreationDate Time Stamp
ScheduleLineDeliveryDate I_SupplierQuotationItemEnh ScheduleLineDeliveryDate Delivery Date
RFQPublishingDate _RFQEnhancedWeb RFQPublishingDate Publishing Date
PurchaseRequisition I_PurchasingDocumentItem PurchaseRequisition Purchase Requisition
SupplierCreationDate _SupplierQuotation CreationDate Quotation Created On
QuotationSubmissionDate _SupplierQuotationDocument QuotationSubmissionDate Quotation Date
Material I_PurchasingDocumentItem Material Vehicle Model
ScheduleLineOrderQuantity
PlannedQuantity ScheduleLineOrderQuantity Quotation Quantity
OrderQuantityUnit I_PurchasingDocumentItem OrderQuantityUnit Order Unit
NetAmount
DocumentCurrency I_SupplierQuotationItemEnh DocumentCurrency Document Currency
PriceQuotation
Plant I_PurchasingDocumentItem Plant Valuation Area
Supplier _SupplierQuotationDocument Supplier Supplier
RFQLifecycleStatusName
QuotationLatestSubmissionDate _RFQEnhancedWeb QuotationLatestSubmissionDate Quotation Deadline
AwardedQuantity AwardedQuantity Awarded Quantity
IsEndOfPurposeBlocked _RFQEnhancedWeb IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
RequirementTracking I_PurchasingDocumentItem RequirementTracking Requirement Tracking Number
MaterialGroup I_PurchasingDocumentItem MaterialGroup Product Group
PurchasingText I_PurchasingDocumentItem PurchasingDocumentItemText Short Text
PurchasingOrganization _RFQEnhancedWeb PurchasingOrganization Purchasing Organization
PurchasingGroup _RFQEnhancedWeb PurchasingGroup Purchasing Group
CompanyCode _RFQEnhancedWeb CompanyCode Receiver Company Code
StorageLocation I_PurchasingDocumentItem StorageLocation StorageLocation
PurchasingCategory
PurgCatName
PurchasingDocumentType _RFQEnhancedWeb PurchasingDocumentType Purchasing Document Type
PurchasingDocumentCategory _RFQEnhancedWeb PurchasingDocumentCategory Purchasing Document Category
PurgDocExternalItemCategory Item Category
AccountAssignmentCategory Account Assignment Category
PurchasingDocumentOrderDate _PurchasingDocument PurchasingDocumentOrderDate PO Date
_Material _Material
_MaterialGroup _MaterialGroup
_RFQEnhancedWeb _RFQEnhancedWeb
_PurchasingCategoryMatlGroup _PurchasingCategoryMatlGroup
_PurgDocScheduleLine _PurgDocScheduleLine
_PurchasingOrgValueHelp _PurchasingOrgValueHelp
_PurchasingGroupValueHelp _PurchasingGroupValueHelp
_CompanyCodeValueHelp _CompanyCodeValueHelp
_RFQType _RFQType
_Plant _Plant
_Supplier _Supplier
_PurgDocumentItemCategory _PurgDocumentItemCategory
_StorageLocation _StorageLocation
_ProcmtBlockedSupplierTxt _ProcmtBlockedSupplierTxt
_OrderQuantityUnit _OrderQuantityUnit

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_RequirementTrackingPurRFQ.
-- 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: CREQTRACKRFQ

CREATE VIEW C_RequirementTrackingPurRFQ AS
SELECT
  I_PurchasingDocumentItem.PurchasingDocument AS RequestForQuotation,
  cast (I_PurchasingDocumentItem.PurchasingDocumentItem as vdm_requestforquotationitem preserving type) AS RequestForQuotationItem,
  I_SupplierQuotationItemEnh.SupplierQuotation AS SupplierQuotation,
  I_SupplierQuotationItemEnh.SupplierQuotationItem AS SupplierQuotationItem,
  concat(concat(I_PurchasingDocumentItem.PurchasingDocument, '/'), I_PurchasingDocumentItem.PurchasingDocumentItem) AS FormattedRFQItem,
  _RFQEnhancedWeb.RequestForQuotationName AS RequestForQuotationName,
  _RFQEnhancedWeb.BindingPeriodValidityEndDate AS BindingPeriodValidityEndDate,
  _SupplierQuotationDocument._CreatedByUser.UserDescription AS UserDescription,
  _RFQEnhancedWeb.CreationDate AS CreationDate,
  I_SupplierQuotationItemEnh.ScheduleLineDeliveryDate AS ScheduleLineDeliveryDate,
  _RFQEnhancedWeb.RFQPublishingDate AS RFQPublishingDate,
  I_PurchasingDocumentItem.PurchaseRequisition AS PurchaseRequisition,
  _SupplierQuotation.CreationDate AS SupplierCreationDate,
  _SupplierQuotationDocument.QuotationSubmissionDate AS QuotationSubmissionDate,
  I_PurchasingDocumentItem.Material AS Material,
  cast( _PurgDocScheduleLine.ScheduleLineOrderQuantity as vdm_requested_quantity preserving type ) AS ScheduleLineOrderQuantity,
  ScheduleLineOrderQuantity AS PlannedQuantity,
  I_PurchasingDocumentItem.OrderQuantityUnit AS OrderQuantityUnit,
  cast(I_SupplierQuotationItemEnh.NetAmount as vdm_supplier_submit_quot_value) AS NetAmount,
  I_SupplierQuotationItemEnh.DocumentCurrency AS DocumentCurrency,
  cast(cast(I_SupplierQuotationItemEnh.AwardedQuantity * I_SupplierQuotationItemEnh.NetPriceAmount as abap.curr( 18, 2 )) as vdm_supplier_award_quot_value) AS PriceQuotation,
  I_PurchasingDocumentItem.Plant AS Plant,
  _SupplierQuotationDocument.Supplier AS Supplier,
  _RFQEnhancedWeb._RFQLifecycleStatus._Text[1: Language = $session.system_language].RFQLifecycleStatusName AS RFQLifecycleStatusName,
  _RFQEnhancedWeb.QuotationLatestSubmissionDate AS QuotationLatestSubmissionDate,
  AwardedQuantity,
  _RFQEnhancedWeb.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
  I_PurchasingDocumentItem.RequirementTracking AS RequirementTracking,
  I_PurchasingDocumentItem.MaterialGroup AS MaterialGroup,
  I_PurchasingDocumentItem.PurchasingDocumentItemText AS PurchasingText,
  _RFQEnhancedWeb.PurchasingOrganization AS PurchasingOrganization,
  _RFQEnhancedWeb.PurchasingGroup AS PurchasingGroup,
  _RFQEnhancedWeb.CompanyCode AS CompanyCode,
  I_PurchasingDocumentItem.StorageLocation AS StorageLocation,
  _PurchasingCategoryMatlGroup._PurchasingCategory.PurchasingCategory AS PurchasingCategory,
  _PurchasingCategoryMatlGroup._PurchasingCategory.PurgCatName AS PurgCatName,
  _RFQEnhancedWeb.PurchasingDocumentType AS PurchasingDocumentType,
  _RFQEnhancedWeb.PurchasingDocumentCategory AS PurchasingDocumentCategory,
  I_PurchasingDocumentItem._PurgDocumentItemCategory._Text[1: Language = $session.system_language].PurgDocExternalItemCategory AS PurgDocExternalItemCategory,
  cast( '' as knttp ) AS AccountAssignmentCategory,
  _PurchasingDocument.PurchasingDocumentOrderDate AS PurchasingDocumentOrderDate
FROM I_PurchasingDocumentItem
LEFT OUTER JOIN I_SupplierQuotationItemEnh ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_RequestForQuotationEnhanced AS _RFQEnhancedWeb ON RequestForQuotation = _RFQEnhancedWeb.RequestForQuotation  -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocument AS _PurchasingDocument ON RequestForQuotation = _PurchasingDocument.PurchasingDocument  -- association [1..1]
LEFT OUTER JOIN I_PurchasingCategoryMatlGroup AS _PurchasingCategoryMatlGroup ON MaterialGroup = _PurchasingCategoryMatlGroup.MaterialGroup  -- association [1..1]
LEFT OUTER JOIN I_ProcmtBlockedSupplierTxt AS _ProcmtBlockedSupplierTxt ON _ProcmtBlockedSupplierTxt.PurchasingIsBlockedForSupplier = 'X' AND _ProcmtBlockedSupplierTxt.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocument AS _SupplierQuotationDocument ON SupplierQuotation = _SupplierQuotationDocument.PurchasingDocument  -- association [1..1]
LEFT OUTER JOIN I_PurgDocScheduleLine AS _PurgDocScheduleLine ON _PurgDocScheduleLine.PurchasingDocument = RequestForQuotation AND _PurgDocScheduleLine.PurchasingDocumentItem = RequestForQuotationItem AND _PurgDocScheduleLine.ScheduleLine = '0001'  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON supplier = _Supplier.Supplier  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurchasingOrgValueHelp ON _PurchasingOrgValueHelp.PurchasingOrganization = purchasingorganization  -- association [1..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroupValueHelp ON _PurchasingGroupValueHelp.PurchasingGroup = purchasinggroup  -- association [1..1]
LEFT OUTER JOIN C_MM_CompanyCodeValueHelp AS _CompanyCodeValueHelp ON _CompanyCodeValueHelp.CompanyCode = companycode  -- association [1..1]
LEFT OUTER JOIN I_RequestForQuotationType AS _RFQType ON purchasingdocumenttype = _RFQType.RFQType  -- association [1..1]
LEFT OUTER JOIN I_PurgDocumentItemCategory AS _PurgDocumentItemCategory ON purgdocexternalitemcategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory  -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OrderQuantityUnit ON OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_SupplierQuotation AS _SupplierQuotation ON _SupplierQuotation.SupplierQuotation = SupplierQuotation  -- association [1..1]
;