C_PurInfoRecordWithOrg
Consumption for Inforecord Org
C_PurInfoRecordWithOrg is a Consumption CDS View that provides data about "Consumption for Inforecord Org" in SAP S/4HANA. It reads from 1 data source (I_PurgInfoRecordWWithDraft) and exposes 53 fields with key fields Plant, PurchasingInfoRecordCategory, PurchasingOrganization, PurchasingInfoRecord. It has 28 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurgInfoRecordWWithDraft | I_PurgInfoRecordWWithDraft | from |
Associations (28)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_PurInfCondPeriod | _PurInfCndPeriodWithDraft | _PurInfCndPeriodWithDraft.PurchasingInfoRecord = $projection.PurchasingInfoRecord and _PurInfCndPeriodWithDraft.Plant = $projection.Plant and _PurInfCndPeriodWithDraft.PurchasingOrganization = $projection.PurchasingOrganization and _PurInfCndPeriodWithDraft.PurchasingInfoRecordCategory = $projection.PurchasingInfoRecordCategory |
| [0..1] | I_UnitOfMeasureStdVH | _PurchaseOrderPriceUnit | _PurchaseOrderPriceUnit.UnitOfMeasure = $projection.PurchaseOrderPriceUnit |
| [0..1] | I_Currency | _Currency | _Currency.Currency = $projection.Currency |
| [0..1] | I_TaxCalculationProcedure | _TaxCalculationProcedure | _TaxCalculationProcedure.TaxCalculationProcedure = $projection.TaxCalculationProcedure |
| [0..1] | C_MM_TaxCodeValueHelp | _TaxCodeVH | _TaxCodeVH.TaxCode = $projection.TaxCode and _TaxCodeVH.TaxCalculationProcedure = $projection.TaxCalculationProcedure |
| [0..1] | C_MM_IncotermValueHelp | _IncotermsClassification | _IncotermsClassification.IncotermsClassification = $projection.IncotermsClassification and _IncotermsClassification.IncotermsVersion = $projection.IncotermsVersion |
| [0..1] | I_UnitOfMeasureStdVH | _BaseUnit | _BaseUnit.UnitOfMeasure = $projection.BaseUnit |
| [0..1] | C_ProductUnitOfMeasureVH | _PurgDocOrderQuantityUnit | _PurgDocOrderQuantityUnit.UnitOfMeasure = $projection.PurgDocOrderQuantityUnit |
| [0..1] | C_MM_MaterialValueHelp | _MaterialValueHelp | _MaterialValueHelp.Material = $projection.Material and _MaterialValueHelp.Plant = $projection.PlantForEdit |
| [0..1] | C_MM_MaterialGroupValueHelp | _MaterialGroupValueHelp | _MaterialGroupValueHelp.MaterialGroup = $projection.MaterialGroup |
| [0..*] | C_PurgInfoRecordSupplierVH | _SupplValueHelp | _SupplValueHelp.Supplier = $projection.Supplier |
| [0..1] | C_MM_PlantValueHelp | _PlantValueHelp | _PlantValueHelp.Plant = $projection.PlantForEdit and _PlantValueHelp.PurchasingOrganization = $projection.PurchasingOrganizationForEdit |
| [0..1] | C_PurchasingOrgValueHelp | _PurchasingOrgValueHelp | _PurchasingOrgValueHelp.PurchasingOrganization = $projection.PurchasingOrganizationForEdit |
| [0..1] | C_PurchasingGroupValueHelp | _PurchasingGroupValueHelp | _PurchasingGroupValueHelp.PurchasingGroup = $projection.PurchasingGroup |
| [0..1] | C_MM_PointsUnitOfMeasure | _PointsUnitOfMeasure | _PointsUnitOfMeasure.UnitOfMeasure = $projection.ProductPurchasePointsQtyUnit |
| [0..1] | C_MM_PriceDateCatValueHelp | _PriceDateCatValueHelp | _PriceDateCatValueHelp.PricingDateControl = $projection.PricingDateControl |
| [0..1] | C_Mm_Rmareqvaluehelp | _Rmareqvaluehelp | _Rmareqvaluehelp.IsRetMatlAuthznRqdBySupplier = $projection.IsRetMatlAuthznRqdBySupplier |
| [0..1] | C_Mm_VarOrderUnitValueHelp | _VarOrderUnitValueHelp | _VarOrderUnitValueHelp.VarblPurOrdUnitActvtnStatus = $projection.VarblPurOrdUnitIsActive |
| [0..1] | C_MM_MinRmgShelfLifeExprtnDPVH | _MinRmgShelfLifeExprtnDPV | _MinRmgShelfLifeExprtnDPV.ShelfLifeExpirationDatePeriod = $projection.ShelfLifeExpirationDatePeriod |
| [0..1] | C_MM_SupplierSubrangeValueHelp | _SupplierSubrangeValueHelp | _SupplierSubrangeValueHelp.SupplierSubrange = $projection.SupplierSubrange and _SupplierSubrangeValueHelp.Supplier = $projection.Supplier |
| [0..*] | C_PurgInfoRecordSupplierVH | _ManufacturerVH | _ManufacturerVH.Supplier = $projection.Manufacturer |
| [0..*] | C_PurgInfoRecordSupplierVH | _PriorSupplVH | _PriorSupplVH.Supplier = $projection.PriorSupplier |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [1..1] | I_MaterialText | _MaterialText | _MaterialText.Material = $projection.Material and _MaterialText.Language = $session.system_language |
| [0..1] | I_PurgInfoRecordCategory | _PurgInfoRecdMassUpdtCatVH | _PurgInfoRecdMassUpdtCatVH.PurchasingInfoRecordCategory = $projection.PurchasingInfoRecordCatForEdit |
| [1..1] | C_Mm_ConfirmationControlVH | _ConfirmationControlVH | $projection.SupplierConfirmationControlKey = _ConfirmationControlVH.SupplierConfirmationControlKey |
| [1..1] | I_Country | _TaxCountry | $projection.TaxCountry = _TaxCountry.Country |
| [0..1] | C_Mm_Shipinstructionvaluehelp | _ShipInstructionValueHelp | $projection.ShippingInstruction = _ShipInstructionValueHelp.ShippingInstruction |
Annotations (20)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPURINFORECORG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.compositionRoot | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Search.searchable | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| EndUserText.label | Consumption for Inforecord Org | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| UI.headerInfo.typeName | Purchasing Info Record | view | |
| UI.headerInfo.typeNamePlural | Info Records | view | |
| UI.headerInfo.title.value | PurchasingInfoRecordDesc | view | |
| UI.headerInfo.description.value | PurchasingInfoRecord | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | Plant | Valuation Area | |
| KEY | PurchasingInfoRecordCategory | Infotype | ||
| KEY | PurchasingOrganization | PurchasingOrganization | Purchasing Organization | |
| KEY | PurchasingInfoRecord | PurchasingInfoRecord | Info Record | |
| PurchasingInfoRecordIsAdvanced | ||||
| PurchasingInfoRecordForEdit | PurchasingInfoRecordForEdit | Info Record | ||
| PurchasingInfoRecordCatForEdit | PurchasingInfoRecordCatForEdit | Purchasing Info Record Category | ||
| PurchasingOrganizationForEdit | PurchasingOrganizationForEdit | Purchasing Organization | ||
| PlantForEdit | PlantForEdit | Plant | ||
| Supplier | Supplier | Supplier | ||
| Material | I_PurgInfoRecordWWithDraft | Material | Material | |
| MaterialGroup | MaterialGroup | Material Group | ||
| CreationDate | CreationDate | Time Stamp | ||
| PurchasingInfoRecordDesc | PurchasingInfoRecordDesc | Info Record Description | ||
| PurgDocOrderQuantityUnit | PurgDocOrderQuantityUnit | Order Unit | ||
| UnitOfEntry | UnitOfEntry | Purchase Order Unit of Measure | ||
| UnitOfMeasure | UnitOfMeasure | Unit of Measure | ||
| OrderItemQtyToBaseQtyNmrtr | OrderItemQtyToBaseQtyNmrtr | Conversion to Base Unit | ||
| OrderItemQtyToBaseQtyDnmntr | OrderItemQtyToBaseQtyDnmntr | Conversion from Order Unit | ||
| SupplierMaterialNumber | SupplierMaterialNumber | Supplier Material Number | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Salesperson | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Supplier Telephone Number | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| SupplierMaterialGroup | SupplierMaterialGroup | Supplier Material Group | ||
| PriorSupplier | PriorSupplier | Prior Supplier | ||
| AvailabilityStartDate | AvailabilityStartDate | Available From | ||
| AvailabilityEndDate | AvailabilityEndDate | Available To | ||
| VarblPurOrdUnitIsActive | VarblPurOrdUnitIsActive | Variable Purchase Order Unit | ||
| Manufacturer | Manufacturer | Manufacturer | ||
| IsRegularSupplier | IsRegularSupplier | Regular Supplier | ||
| CreatedByUser | CreatedByUser | User Name | ||
| IsMarkedForDeletion | IsMarkedForDeletion | Purch.org. data | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| Currency | Currency | Valuation Crcy | ||
| MinimumPurchaseOrderQuantity | MinimumPurchaseOrderQuantity | Minimum Order Quantity | ||
| StandardPurchaseOrderQuantity | StandardPurchaseOrderQuantity | Standard Order Quantity | ||
| MaterialPlannedDeliveryDurn | MaterialPlannedDeliveryDurn | Delivery Time in Days | ||
| OverdelivTolrtdLmtRatioInPct | OverdelivTolrtdLmtRatioInPct | Over Delivery Tolerance in % | ||
| UnderdelivTolrtdLmtRatioInPct | UnderdelivTolrtdLmtRatioInPct | Under Delivery Tolerance in % | ||
| UnlimitedOverdeliveryIsAllowed | UnlimitedOverdeliveryIsAllowed | Unlimited Delivery | ||
| LastReferencingPurchaseOrder | LastReferencingPurchaseOrder | Purchasing Document Number | ||
| ShippingInstruction | ShippingInstruction | Shipping Instruction | ||
| LastReferencingPurOrderItem | LastReferencingPurOrderItem | Purchasing Document Item | ||
| NetPriceAmount | Net Price | |||
| NetPriceQuantityUnit | NetPriceQuantityUnit | SettlmtPrcUnit | ||
| MaterialPriceUnitQty | Price Unit | |||
| PurchaseOrderPriceUnit | PurchaseOrderPriceUnit | Order Price Un. | ||
| PriceValidityEndDate | PriceValidityEndDate | Valid to | ||
| OrderPriceUnitToOrderUnitNmrtr | OrderPriceUnitToOrderUnitNmrtr | Quantity Conversion To | ||
| OrdPriceUnitToOrderUnitDnmntr | OrdPriceUnitToOrderUnitDnmntr | Quantity Conversion From | ||
| InvoiceIsGoodsReceiptBased | InvoiceIsGoodsReceiptBased | Goods-Receipt-Based Invoice Verification | ||
| TaxCode | TaxCode | Tax Code | ||
| TaxCodeName | TaxCode | Tax Code |
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_PurInfoRecordWithOrg.
-- 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: CPURINFORECORG
CREATE VIEW C_PurInfoRecordWithOrg AS
SELECT
Plant,
cast(PurchasingInfoRecordCategory as vdm_inforecordcategory preserving type ) AS PurchasingInfoRecordCategory,
PurchasingOrganization,
PurchasingInfoRecord,
cast( '' as xfeld ) AS PurchasingInfoRecordIsAdvanced,
PurchasingInfoRecordForEdit,
PurchasingInfoRecordCatForEdit,
PurchasingOrganizationForEdit,
PlantForEdit,
Supplier,
I_PurgInfoRecordWWithDraft.Material AS Material,
MaterialGroup,
CreationDate,
PurchasingInfoRecordDesc,
PurgDocOrderQuantityUnit,
UnitOfEntry,
UnitOfMeasure,
OrderItemQtyToBaseQtyNmrtr,
OrderItemQtyToBaseQtyDnmntr,
SupplierMaterialNumber,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
BaseUnit,
SupplierMaterialGroup,
PriorSupplier,
AvailabilityStartDate,
AvailabilityEndDate,
VarblPurOrdUnitIsActive,
Manufacturer,
IsRegularSupplier,
CreatedByUser,
IsMarkedForDeletion,
PurchasingGroup,
Currency,
MinimumPurchaseOrderQuantity,
StandardPurchaseOrderQuantity,
MaterialPlannedDeliveryDurn,
OverdelivTolrtdLmtRatioInPct,
UnderdelivTolrtdLmtRatioInPct,
UnlimitedOverdeliveryIsAllowed,
LastReferencingPurchaseOrder,
ShippingInstruction,
LastReferencingPurOrderItem,
cast( '0' as iprei) AS NetPriceAmount,
NetPriceQuantityUnit,
cast( 0 as epein ) AS MaterialPriceUnitQty,
PurchaseOrderPriceUnit,
PriceValidityEndDate,
OrderPriceUnitToOrderUnitNmrtr,
OrdPriceUnitToOrderUnitDnmntr,
InvoiceIsGoodsReceiptBased,
TaxCode,
TaxCode AS TaxCodeName
FROM I_PurgInfoRecordWWithDraft
LEFT OUTER JOIN C_PurInfCondPeriod AS _PurInfCndPeriodWithDraft ON _PurInfCndPeriodWithDraft.PurchasingInfoRecord = PurchasingInfoRecord AND _PurInfCndPeriodWithDraft.Plant = Plant AND _PurInfCndPeriodWithDraft.PurchasingOrganization = PurchasingOrganization AND _PurInfCndPeriodWithDraft.PurchasingInfoRecordCategory = PurchasingInfoRecordCategory -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasureStdVH AS _PurchaseOrderPriceUnit ON _PurchaseOrderPriceUnit.UnitOfMeasure = PurchaseOrderPriceUnit -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON _Currency.Currency = Currency -- association [0..1]
LEFT OUTER JOIN I_TaxCalculationProcedure AS _TaxCalculationProcedure ON _TaxCalculationProcedure.TaxCalculationProcedure = TaxCalculationProcedure -- association [0..1]
LEFT OUTER JOIN C_MM_TaxCodeValueHelp AS _TaxCodeVH ON _TaxCodeVH.TaxCode = TaxCode AND _TaxCodeVH.TaxCalculationProcedure = TaxCalculationProcedure -- association [0..1]
LEFT OUTER JOIN C_MM_IncotermValueHelp AS _IncotermsClassification ON _IncotermsClassification.IncotermsClassification = IncotermsClassification AND _IncotermsClassification.IncotermsVersion = IncotermsVersion -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasureStdVH AS _BaseUnit ON _BaseUnit.UnitOfMeasure = BaseUnit -- association [0..1]
LEFT OUTER JOIN C_ProductUnitOfMeasureVH AS _PurgDocOrderQuantityUnit ON _PurgDocOrderQuantityUnit.UnitOfMeasure = PurgDocOrderQuantityUnit -- association [0..1]
LEFT OUTER JOIN C_MM_MaterialValueHelp AS _MaterialValueHelp ON _MaterialValueHelp.Material = Material AND _MaterialValueHelp.Plant = PlantForEdit -- association [0..1]
LEFT OUTER JOIN C_MM_MaterialGroupValueHelp AS _MaterialGroupValueHelp ON _MaterialGroupValueHelp.MaterialGroup = MaterialGroup -- association [0..1]
LEFT OUTER JOIN C_PurgInfoRecordSupplierVH AS _SupplValueHelp ON _SupplValueHelp.Supplier = Supplier -- association [0..*]
LEFT OUTER JOIN C_MM_PlantValueHelp AS _PlantValueHelp ON _PlantValueHelp.Plant = PlantForEdit AND _PlantValueHelp.PurchasingOrganization = PurchasingOrganizationForEdit -- association [0..1]
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurchasingOrgValueHelp ON _PurchasingOrgValueHelp.PurchasingOrganization = PurchasingOrganizationForEdit -- association [0..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroupValueHelp ON _PurchasingGroupValueHelp.PurchasingGroup = PurchasingGroup -- association [0..1]
LEFT OUTER JOIN C_MM_PointsUnitOfMeasure AS _PointsUnitOfMeasure ON _PointsUnitOfMeasure.UnitOfMeasure = ProductPurchasePointsQtyUnit -- association [0..1]
LEFT OUTER JOIN C_MM_PriceDateCatValueHelp AS _PriceDateCatValueHelp ON _PriceDateCatValueHelp.PricingDateControl = PricingDateControl -- association [0..1]
LEFT OUTER JOIN C_Mm_Rmareqvaluehelp AS _Rmareqvaluehelp ON _Rmareqvaluehelp.IsRetMatlAuthznRqdBySupplier = IsRetMatlAuthznRqdBySupplier -- association [0..1]
LEFT OUTER JOIN C_Mm_VarOrderUnitValueHelp AS _VarOrderUnitValueHelp ON _VarOrderUnitValueHelp.VarblPurOrdUnitActvtnStatus = VarblPurOrdUnitIsActive -- association [0..1]
LEFT OUTER JOIN C_MM_MinRmgShelfLifeExprtnDPVH AS _MinRmgShelfLifeExprtnDPV ON _MinRmgShelfLifeExprtnDPV.ShelfLifeExpirationDatePeriod = ShelfLifeExpirationDatePeriod -- association [0..1]
LEFT OUTER JOIN C_MM_SupplierSubrangeValueHelp AS _SupplierSubrangeValueHelp ON _SupplierSubrangeValueHelp.SupplierSubrange = SupplierSubrange AND _SupplierSubrangeValueHelp.Supplier = Supplier -- association [0..1]
LEFT OUTER JOIN C_PurgInfoRecordSupplierVH AS _ManufacturerVH ON _ManufacturerVH.Supplier = Manufacturer -- association [0..*]
LEFT OUTER JOIN C_PurgInfoRecordSupplierVH AS _PriorSupplVH ON _PriorSupplVH.Supplier = PriorSupplier -- association [0..*]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON _MaterialText.Material = Material AND _MaterialText.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_PurgInfoRecordCategory AS _PurgInfoRecdMassUpdtCatVH ON _PurgInfoRecdMassUpdtCatVH.PurchasingInfoRecordCategory = PurchasingInfoRecordCatForEdit -- association [0..1]
LEFT OUTER JOIN C_Mm_ConfirmationControlVH AS _ConfirmationControlVH ON SupplierConfirmationControlKey = _ConfirmationControlVH.SupplierConfirmationControlKey -- association [1..1]
LEFT OUTER JOIN I_Country AS _TaxCountry ON TaxCountry = _TaxCountry.Country -- association [1..1]
LEFT OUTER JOIN C_Mm_Shipinstructionvaluehelp AS _ShipInstructionValueHelp ON ShippingInstruction = _ShipInstructionValueHelp.ShippingInstruction -- 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