C_PurOrdRefDocIR
Reference Documents for PO Creation - Inforecord Items
C_PurOrdRefDocIR is a Consumption CDS View that provides data about "Reference Documents for PO Creation - Inforecord Items" in SAP S/4HANA. It reads from 3 data sources (I_PurchasingInfoRecord, I_PurgInfoRecdOrgPlantData, I_Material) and exposes 91 fields with key fields PurchasingInfoRecord, PurchasingOrganization, PurchasingInfoRecordCategory, Plant. It has 19 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchasingInfoRecord | eina | left_outer |
| I_PurgInfoRecdOrgPlantData | eine | from |
| I_Material | material | left_outer |
Associations (19)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_PurchasingGroup | _PurgGrp | $projection.PurchasingGroup = _PurgGrp.PurchasingGroup |
| [0..1] | I_MM_ControllingAreaVH | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_CostCenterText | _CostCenterText | $projection.ControllingArea = _CostCenterText.ControllingArea and $projection.CostCenter = _CostCenterText.CostCenter and $projection.ValidityEndDate = _CostCenterText.ValidityEndDate and _CostCenterText.Language = $session.system_language |
| [0..1] | I_MaterialText | _MaterialText | $projection.ManufacturerMaterial = _MaterialText.Material and _MaterialText.Language = $session.system_language |
| [0..1] | I_MaterialGroupText | _MaterialGroupText | $projection.MaterialGroup = _MaterialGroupText.MaterialGroup and _MaterialGroupText.Language = $session.system_language |
| [0..1] | I_UnitOfMeasureText | _UnitOfMeasureText | $projection.PurchaseOrderPriceUnit = _UnitOfMeasureText.UnitOfMeasure and _UnitOfMeasureText.Language = $session.system_language |
| [0..1] | I_BusinessPartner | _BusinessPartner | $projection.ServicePerformer = _BusinessPartner.BusinessPartner |
| [0..1] | I_GlAccountTextInCompanycode | _GlAccountTextInCompanycode | $projection.GLAccount = _GlAccountTextInCompanycode.GLAccount and $projection.CompanyCode = _GlAccountTextInCompanycode.CompanyCode and _GlAccountTextInCompanycode.Language = $session.system_language ------------------------------------------------------------------------------------------- -- Value-Help Associations -- ------------------------------------------------------------------------------------------- |
| [0..1] | C_PurchasingGroupValueHelp | _PurchasingGroupVH | _PurchasingGroupVH.PurchasingGroup = $projection.PurchasingGroup |
| [0..*] | C_MM_SupplierValueHelp | _SupplierValueHelp | _SupplierValueHelp.Supplier = $projection.Supplier |
| [0..*] | C_MM_MaterialValueHelp | _MaterialValueHelp | _MaterialValueHelp.Material = $projection.ManufacturerMaterial |
| [0..*] | C_MM_ServicePerformerValueHelp | _ServicePerformerValueHelp | _ServicePerformerValueHelp.ServicePerformer = $projection.ServicePerformer |
| [0..1] | C_MM_MaterialGroupValueHelp | _MaterialGroupVH | _MaterialGroupVH.MaterialGroup = $projection.MaterialGroup |
| [0..*] | C_MM_PlantValueHelp | _PlantValueHelp | _PlantValueHelp.Plant = $projection.Plant |
| [0..1] | I_MM_SalesOrderValueHelp | _SalesOrder | _SalesOrder.SalesOrder = $projection.SalesOrder |
| [0..1] | I_MM_CostCenterValueHelp | _CostCenter | _CostCenter.CostCenter = $projection.CostCenter and _CostCenter.ControllingArea = $projection.ControllingArea and _CostCenter.ValidityEndDate = $projection.ValidityEndDate |
| [0..1] | I_MM_WBSElementValueHelp | _WBSElementVH | _WBSElementVH.WBSElementInternalID = $projection.WBSElementInternalID and _WBSElementVH.WBSElementExternalID = $projection.WBSElement |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | CPURORDREFDOCIR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Reference Documents for PO Creation - Inforecord Items | view | |
| Search.searchable | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (91)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingInfoRecord | I_PurgInfoRecdOrgPlantData | PurchasingInfoRecord | Info Record |
| KEY | PurchasingOrganization | I_PurgInfoRecdOrgPlantData | PurchasingOrganization | Purchasing Organization |
| KEY | PurchasingInfoRecordCategory | I_PurgInfoRecdOrgPlantData | PurchasingInfoRecordCategory | Purchasing Info Record Category |
| KEY | Plant | I_PurgInfoRecdOrgPlantData | Plant | Valuation Area |
| PurchaseRequisition | ||||
| PurchaseRequisitionItem | ||||
| PurchaseOrder | ||||
| PurchaseOrderItem | ||||
| AccountAssignmentNumber | ||||
| FixedSupplier | Fixed Vendor | |||
| FixedSupplierName | Desired Vendor | |||
| PlantName | _Plant | PlantName | Plant Name | |
| PurchasingDocument | I_PurgInfoRecdOrgPlantData | PurchasingInfoRecord | Info Record | |
| PurchasingDocumentCategory | ||||
| IsAdvancedPurchaseOrder | ||||
| PurchasingDocumentDeletionCode | ||||
| StorageLocation | ||||
| ManufacturerMaterial | I_PurchasingInfoRecord | Material | Vehicle Model | |
| Material | I_PurchasingInfoRecord | Material | Vehicle Model | |
| MaterialName | _MaterialText | MaterialName | Material Description | |
| MaterialType | ||||
| PurchaseRequisitionItemText | Purchase Requisition Item Text | |||
| MaterialGroupendasMaterialGroup | ||||
| MaterialGroupNameendasMaterialGroupName | ||||
| Supplier | I_PurchasingInfoRecord | Supplier | Supplier | |
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| PurchasingDocumentType | ||||
| PurchasingDocumentSubtype | ||||
| PurchasingDocumentItemText | I_PurchasingInfoRecord | PurchasingInfoRecordDesc | Info Short Text | |
| PurchaseOrderQty | I_PurgInfoRecdOrgPlantData | StandardPurchaseOrderQuantity | Standard Qty | |
| PurchaseOrderQuantityUnit | I_PurchasingInfoRecord | PurgDocOrderQuantityUnit | Purchasing Document Order Qty Unit | |
| PurchaseOrderNetPriceAmount | I_PurgInfoRecdOrgPlantData | NetPriceAmount | Net Price | |
| Currency | I_PurgInfoRecdOrgPlantData | Currency | Valuation Crcy | |
| PurchaseOrderNetPriceQuantity | I_PurgInfoRecdOrgPlantData | MaterialPriceUnitQty | Price unit | |
| PurchaseOrderPriceUnit | I_PurgInfoRecdOrgPlantData | PurchaseOrderPriceUnit | Order Price Un. | |
| PurchaseOrderPriceUnitName | _UnitOfMeasureText | UnitOfMeasureLongName | ||
| PurchasingGroup | I_PurgInfoRecdOrgPlantData | PurchasingGroup | Purchasing Group | |
| PurchasingGroupName | _PurgGrp | PurchasingGroupName | Purchasing Grp. Name | |
| CompanyCode | ||||
| CompanyCodeName | ||||
| PurchasingDocumentCondition | ||||
| PricingProcedure | ||||
| ValidityStartDate | ||||
| ValidityEndDate | I_PurgInfoRecdOrgPlantData | PriceValidityEndDate | Valid to | |
| ContractConsumptionInPct | 0 | |||
| GoodsReceiptIsExpected | ||||
| GoodsReceiptIsNonValuated | ||||
| InvoiceIsExpected | ||||
| InvoiceIsGoodsReceiptBased | I_PurgInfoRecdOrgPlantData | InvoiceIsGoodsReceiptBased | GR-Based IV | |
| OverdelivTolrtdLmtRatioInPct | I_PurgInfoRecdOrgPlantData | OverdelivTolrtdLmtRatioInPct | Overdeliv. Tol. | |
| UnlimitedOverdeliveryIsAllowed | I_PurgInfoRecdOrgPlantData | UnlimitedOverdeliveryIsAllowed | Unlimited Tol. | |
| UnderdelivTolrtdLmtRatioInPct | I_PurgInfoRecdOrgPlantData | UnderdelivTolrtdLmtRatioInPct | Underdel. Tol. | |
| OrderItemQtyToBaseQtyNmrtr | I_PurchasingInfoRecord | OrderItemQtyToBaseQtyNmrtr | Equal To | |
| OrderItemQtyToBaseQtyDnmntr | I_PurchasingInfoRecord | OrderItemQtyToBaseQtyDnmntr | Denominator | |
| PurchaseOrderItemCategory | ||||
| IsDeleted | I_PurgInfoRecdOrgPlantData | IsMarkedForDeletion | Purch.org. data | |
| ServicePerformer | ||||
| ServicePerformerName | ||||
| ProductType | ||||
| RefPurchaseOutlineAgreement | ||||
| RefPurchOutlineAgrmtItem | ||||
| SupplierMaterialNumber | I_PurchasingInfoRecord | SupplierMaterialNumber | Supp. Mat. No. | |
| DeliveryDate | ||||
| PerformancePeriodStartDate | ||||
| PerformancePeriodEndDate | ||||
| OrderPriceUnitToOrderUnitNmrtr | I_PurgInfoRecdOrgPlantData | OrderPriceUnitToOrderUnitNmrtr | Quantity Conversion Numerator | |
| OrdPriceUnitToOrderUnitDnmntr | I_PurgInfoRecdOrgPlantData | OrdPriceUnitToOrderUnitDnmntr | Quantity Conversion Denominator | |
| CustomerProjectName | ||||
| ProfitCenter | ||||
| WBSElementInternalID | ||||
| WBSElement | WBS Element | |||
| FunctionalArea | ||||
| GLAccount | ||||
| GLAccountName | ||||
| CostCenter | ||||
| CostCenterName | ||||
| ControllingArea | ||||
| SalesOrder | ||||
| SalesOrderItem | ||||
| PurReqnDescription | Purchase Requisition Description | |||
| _ControllingArea | _ControllingArea | |||
| _BusinessPartner | _BusinessPartner | |||
| _PurchasingGroupVH | _PurchasingGroupVH | |||
| _SupplierValueHelp | _SupplierValueHelp | |||
| _MaterialValueHelp | _MaterialValueHelp | |||
| _ServicePerformerValueHelp | _ServicePerformerValueHelp | |||
| _MaterialGroupVH | _MaterialGroupVH | |||
| _PlantValueHelp | _PlantValueHelp | |||
| _WBSElementVH | _WBSElementVH | |||
| _CostCenter | _CostCenter | |||
| _SalesOrder | _SalesOrder |
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_PurOrdRefDocIR.
-- 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: CPURORDREFDOCIR
CREATE VIEW C_PurOrdRefDocIR AS
SELECT
eine.PurchasingInfoRecord AS PurchasingInfoRecord,
eine.PurchasingOrganization AS PurchasingOrganization,
eine.PurchasingInfoRecordCategory AS PurchasingInfoRecordCategory,
eine.Plant AS Plant,
cast('' as abap.char(10)) AS PurchaseRequisition,
cast('' as abap.numc(5)) AS PurchaseRequisitionItem,
'' AS PurchaseOrder,
cast('' as abap.numc(5)) AS PurchaseOrderItem,
'' AS AccountAssignmentNumber,
cast('' as abap.char(10)) AS FixedSupplier,
cast('' as abap.char(10)) AS FixedSupplierName,
_Plant.PlantName AS PlantName,
eine.PurchasingInfoRecord AS PurchasingDocument,
'I' AS PurchasingDocumentCategory,
'' AS IsAdvancedPurchaseOrder,
'' AS PurchasingDocumentDeletionCode,
'' AS StorageLocation,
eina.Material AS ManufacturerMaterial,
eina.Material AS Material,
_MaterialText.MaterialName AS MaterialName,
material._MaterialType.MaterialType AS MaterialType,
cast('' as abap.char(40)) AS PurchaseRequisitionItemText,
case eina.MaterialGroup when '' then eina._Material.MaterialGroup else eina.MaterialGroup end as MaterialGroup AS MaterialGroupendasMaterialGroup,
case eina.MaterialGroup when '' then eina._Material._MaterialGroup._Text[1: Language = $session.system_language].MaterialGroupName else eina._MaterialGroup._Text[1: Language = $session.system_language].MaterialGroupName end as MaterialGroupName AS MaterialGroupNameendasMaterialGroupName,
eina.Supplier AS Supplier,
_Supplier.SupplierName AS SupplierName,
cast('' as abap.char(4)) AS PurchasingDocumentType,
cast('' as abap.char(4)) AS PurchasingDocumentSubtype,
eina.PurchasingInfoRecordDesc AS PurchasingDocumentItemText,
eine.StandardPurchaseOrderQuantity AS PurchaseOrderQty,
eina.PurgDocOrderQuantityUnit AS PurchaseOrderQuantityUnit,
eine.NetPriceAmount AS PurchaseOrderNetPriceAmount,
eine.Currency AS Currency,
eine.MaterialPriceUnitQty AS PurchaseOrderNetPriceQuantity,
eine.PurchaseOrderPriceUnit AS PurchaseOrderPriceUnit,
_UnitOfMeasureText.UnitOfMeasureLongName AS PurchaseOrderPriceUnitName,
eine.PurchasingGroup AS PurchasingGroup,
_PurgGrp.PurchasingGroupName AS PurchasingGroupName,
cast('' as abap.char(4)) AS CompanyCode,
cast('' as abap.char(25)) AS CompanyCodeName,
cast('' as abap.char(10)) AS PurchasingDocumentCondition,
'' AS PricingProcedure,
cast('00000000' as vdm_validitystart) AS ValidityStartDate,
eine.PriceValidityEndDate AS ValidityEndDate,
0 AS ContractConsumptionInPct,
cast('' as abap.char(1)) AS GoodsReceiptIsExpected,
cast('' as abap.char(1)) AS GoodsReceiptIsNonValuated,
cast('' as abap.char(1)) AS InvoiceIsExpected,
eine.InvoiceIsGoodsReceiptBased AS InvoiceIsGoodsReceiptBased,
eine.OverdelivTolrtdLmtRatioInPct AS OverdelivTolrtdLmtRatioInPct,
eine.UnlimitedOverdeliveryIsAllowed AS UnlimitedOverdeliveryIsAllowed,
eine.UnderdelivTolrtdLmtRatioInPct AS UnderdelivTolrtdLmtRatioInPct,
eina.OrderItemQtyToBaseQtyNmrtr AS OrderItemQtyToBaseQtyNmrtr,
eina.OrderItemQtyToBaseQtyDnmntr AS OrderItemQtyToBaseQtyDnmntr,
'' AS PurchaseOrderItemCategory,
eine.IsMarkedForDeletion AS IsDeleted,
'' AS ServicePerformer,
'' AS ServicePerformerName,
'' AS ProductType,
cast('' as abap.char(10)) AS RefPurchaseOutlineAgreement,
cast('00000' as abap.numc(5)) AS RefPurchOutlineAgrmtItem,
eina.SupplierMaterialNumber AS SupplierMaterialNumber,
cast('00000000' as abap.dats) AS DeliveryDate,
cast('00000000' as abap.dats) AS PerformancePeriodStartDate,
cast('00000000' as abap.dats) AS PerformancePeriodEndDate,
eine.OrderPriceUnitToOrderUnitNmrtr AS OrderPriceUnitToOrderUnitNmrtr,
eine.OrdPriceUnitToOrderUnitDnmntr AS OrdPriceUnitToOrderUnitDnmntr,
'' AS CustomerProjectName,
cast('' as abap.char(10)) AS ProfitCenter,
cast('' as abap.numc(8)) AS WBSElementInternalID,
cast('' as abap.numc(10)) AS WBSElement,
cast('' as abap.char(16)) AS FunctionalArea,
cast('' as abap.char(10)) AS GLAccount,
'' AS GLAccountName,
cast('' as abap.char(10)) AS CostCenter,
'' AS CostCenterName,
cast('' as abap.char(4)) AS ControllingArea,
cast('' as abap.char(10)) AS SalesOrder,
cast('' as abap.numc(6)) AS SalesOrderItem,
cast('' as abap.char(4)) AS PurReqnDescription
FROM I_PurgInfoRecdOrgPlantData AS eine
LEFT OUTER JOIN I_PurchasingInfoRecord AS eina ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Material AS material ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurgGrp ON PurchasingGroup = _PurgGrp.PurchasingGroup -- association [0..1]
LEFT OUTER JOIN I_MM_ControllingAreaVH AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_CostCenterText AS _CostCenterText ON ControllingArea = _CostCenterText.ControllingArea AND CostCenter = _CostCenterText.CostCenter AND ValidityEndDate = _CostCenterText.ValidityEndDate AND _CostCenterText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON ManufacturerMaterial = _MaterialText.Material AND _MaterialText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_MaterialGroupText AS _MaterialGroupText ON MaterialGroup = _MaterialGroupText.MaterialGroup AND _MaterialGroupText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasureText AS _UnitOfMeasureText ON PurchaseOrderPriceUnit = _UnitOfMeasureText.UnitOfMeasure AND _UnitOfMeasureText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON ServicePerformer = _BusinessPartner.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_GlAccountTextInCompanycode AS _GlAccountTextInCompanycode ON GLAccount = _GlAccountTextInCompanycode.GLAccount AND CompanyCode = _GlAccountTextInCompanycode.CompanyCode AND _GlAccountTextInCompanycode.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroupVH ON _PurchasingGroupVH.PurchasingGroup = PurchasingGroup -- association [0..1]
LEFT OUTER JOIN C_MM_SupplierValueHelp AS _SupplierValueHelp ON _SupplierValueHelp.Supplier = Supplier -- association [0..*]
LEFT OUTER JOIN C_MM_MaterialValueHelp AS _MaterialValueHelp ON _MaterialValueHelp.Material = ManufacturerMaterial -- association [0..*]
LEFT OUTER JOIN C_MM_ServicePerformerValueHelp AS _ServicePerformerValueHelp ON _ServicePerformerValueHelp.ServicePerformer = ServicePerformer -- association [0..*]
LEFT OUTER JOIN C_MM_MaterialGroupValueHelp AS _MaterialGroupVH ON _MaterialGroupVH.MaterialGroup = MaterialGroup -- association [0..1]
LEFT OUTER JOIN C_MM_PlantValueHelp AS _PlantValueHelp ON _PlantValueHelp.Plant = Plant -- association [0..*]
LEFT OUTER JOIN I_MM_SalesOrderValueHelp AS _SalesOrder ON _SalesOrder.SalesOrder = SalesOrder -- association [0..1]
LEFT OUTER JOIN I_MM_CostCenterValueHelp AS _CostCenter ON _CostCenter.CostCenter = CostCenter AND _CostCenter.ControllingArea = ControllingArea AND _CostCenter.ValidityEndDate = ValidityEndDate -- association [0..1]
LEFT OUTER JOIN I_MM_WBSElementValueHelp AS _WBSElementVH ON _WBSElementVH.WBSElementInternalID = WBSElementInternalID AND _WBSElementVH.WBSElementExternalID = WBSElement -- association [0..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