I_PurgInfoRecordWWithDraft
Purchasing Info Rec. with Org Plant Data
I_PurgInfoRecordWWithDraft is a Transactional CDS View that provides data about "Purchasing Info Rec. with Org Plant Data" in SAP S/4HANA. It reads from 2 data sources (P_PurgInfoRecordWithOrgData, I_Material) and exposes 121 fields with key fields PurchasingInfoRecord, Plant, PurchasingInfoRecordCategory, PurchasingOrganization. It has 19 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_PurgInfoRecordWithOrgData | Document | from |
| I_Material | I_Material | left_outer |
Associations (19)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | E_PurchasingInforecord | _PurchasingInforecordExtension | _PurchasingInforecordExtension.PurchasingInfoRecord = $projection.PurchasingInfoRecord |
| [0..1] | E_PurInfoRecWithOrgDraft | _PurInfoRecOrgDraftExtension | _PurInfoRecOrgDraftExtension.DraftUUID = Document.PurgInfoRecdDrftID |
| [0..1] | E_PurgInfoRecdOrgPlantData | _PurgInfoRecdOrgPlantExtension | _PurgInfoRecdOrgPlantExtension.PurchasingInfoRecord = $projection.PurchasingInfoRecord and _PurgInfoRecdOrgPlantExtension.PurchasingInfoRecordCategory = $projection.PurchasingInfoRecordCategory and _PurgInfoRecdOrgPlantExtension.PurchasingOrganization = $projection.PurchasingOrganization and _PurgInfoRecdOrgPlantExtension.Plant = $projection.Plant |
| [0..*] | I_PurInfCndPeriodWithDraft | _PurInfCndPeriodWithDraft | _PurInfCndPeriodWithDraft.Plant = $projection.Plant and _PurInfCndPeriodWithDraft.PurchasingInfoRecordCategory = $projection.PurchasingInfoRecordCategory and _PurInfCndPeriodWithDraft.PurchasingOrganization = $projection.PurchasingOrganization and _PurInfCndPeriodWithDraft.PurchasingInfoRecord = $projection.PurchasingInfoRecord |
| [0..1] | I_PurchasingOrganization | _PurchasingOrganization | _PurchasingOrganization.PurchasingOrganization = $projection.PurchasingOrganizationForEdit |
| [0..1] | I_Plant | _Plant | _Plant.Plant = $projection.PlantForEdit |
| [0..1] | I_UnitOfMeasure | _PurchaseOrderPriceUnit | _PurchaseOrderPriceUnit.UnitOfMeasure = $projection.PurchaseOrderPriceUnit |
| [0..1] | I_Currency | _Currency | _Currency.Currency = $projection.Currency |
| [0..1] | I_PurchasingGroup | _PurchasingGroup | _PurchasingGroup.PurchasingGroup = $projection.PurchasingGroup |
| [0..*] | I_TaxCode | _TaxCode | _TaxCode.TaxCode = $projection.TaxCode |
| [0..1] | I_IncotermsClassification | _IncotermsClassification | _IncotermsClassification.IncotermsClassification = $projection.IncotermsClassification |
| [0..1] | I_User | _CreatedByUser | _CreatedByUser.UserID = $projection.CreatedByUser |
| [0..*] | I_PurgInfoRecdOrgPlantData | _PurgInfoRecdOrgPlantData | _PurgInfoRecdOrgPlantData.PurchasingInfoRecord = $projection.PurchasingInfoRecordForEdit |
| [0..1] | I_Material | _Material | _Material.Material = $projection.Material |
| [0..1] | I_MaterialGroup | _MaterialGroup | _MaterialGroup.MaterialGroup = $projection.MaterialGroup |
| [0..1] | I_Supplier | _Supplier | _Supplier.Supplier = $projection.Supplier |
| [0..1] | I_UnitOfMeasure | _BaseUnit | _BaseUnit.UnitOfMeasure = $projection.BaseUnit |
| [0..1] | I_UnitOfMeasure | _PurgDocOrderQuantityUnit | _PurgDocOrderQuantityUnit.UnitOfMeasure = $projection.PurgDocOrderQuantityUnit |
| [1..1] | I_Country | _TaxCountry | $projection.TaxCountry = _TaxCountry.Country |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IINFRECWITHORGWD | view | |
| EndUserText.label | Purchasing Info Rec. with Org Plant Data | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| ObjectModel.writeDraftPersistence | INFREC_HDR_D | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.sapObjectNodeType.name | PurchasingInfoRecord | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.entityChangeStateId | LastChangeDateTime | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (121)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingInfoRecord | P_PurgInfoRecordWithOrgData | PurchasingInfoRecord | Info Record |
| KEY | Plant | P_PurgInfoRecordWithOrgData | Plant | Valuation Area |
| KEY | PurchasingInfoRecordCategory | P_PurgInfoRecordWithOrgData | PurchasingInfoRecordCategory | Infotype |
| KEY | PurchasingOrganization | P_PurgInfoRecordWithOrgData | PurchasingOrganization | Purchasing Organization |
| PurchasingInfoRecordForEdit | P_PurgInfoRecordWithOrgData | PurchasingInfoRecord | Info Record | |
| PurchasingOrganizationForEdit | P_PurgInfoRecordWithOrgData | PurchasingOrganization | Purchasing Organization | |
| PurchasingInfoRecordCatForEdit | P_PurgInfoRecordWithOrgData | PurchasingInfoRecordCategory | Infotype | |
| PlantForEdit | P_PurgInfoRecordWithOrgData | Plant | Valuation Area | |
| Supplier | P_PurgInfoRecordWithOrgData | Supplier | Supplier | |
| Material | P_PurgInfoRecordWithOrgData | Material | Vehicle Model | |
| MaterialGroupendasMaterialGroup | ||||
| CreationDate | P_PurgInfoRecordWithOrgData | CreationDate | Time Stamp | |
| IsDeleted | P_PurgInfoRecordWithOrgData | IsDeleted | TRUE | |
| PurchasingInfoRecordDesc | P_PurgInfoRecordWithOrgData | PurchasingInfoRecordDesc | Info Short Text | |
| PurgDocOrderQuantityUnit | P_PurgInfoRecordWithOrgData | PurgDocOrderQuantityUnit | Purchasing Document Order Qty Unit | |
| OrderItemQtyToBaseQtyNmrtr | P_PurgInfoRecordWithOrgData | OrderItemQtyToBaseQtyNmrtr | Equal To | |
| OrderItemQtyToBaseQtyDnmntr | P_PurgInfoRecordWithOrgData | OrderItemQtyToBaseQtyDnmntr | Denominator | |
| SupplierMaterialNumber | P_PurgInfoRecordWithOrgData | SupplierMaterialNumber | Supp. Mat. No. | |
| SupplierRespSalesPersonName | P_PurgInfoRecordWithOrgData | SupplierRespSalesPersonName | Salesperson | |
| SupplierPhoneNumber | P_PurgInfoRecordWithOrgData | SupplierPhoneNumber | Telephone | |
| BaseUnit | P_PurgInfoRecordWithOrgData | BaseUnit | Unit of Measure | |
| SupplierMaterialGroup | P_PurgInfoRecordWithOrgData | SupplierMaterialGroup | Suppl. Mat. Grp | |
| PriorSupplier | P_PurgInfoRecordWithOrgData | PriorSupplier | Prior Supplier | |
| AvailabilityStartDate | P_PurgInfoRecordWithOrgData | AvailabilityStartDate | Available from | |
| AvailabilityEndDate | P_PurgInfoRecordWithOrgData | AvailabilityEndDate | Available to | |
| VarblPurOrdUnitIsActive | P_PurgInfoRecordWithOrgData | VarblPurOrdUnitIsActive | Var. Order Unit | |
| Manufacturer | P_PurgInfoRecordWithOrgData | Manufacturer | Manufacturer | |
| IsRegularSupplier | P_PurgInfoRecordWithOrgData | IsRegularSupplier | Reg. Supplier | |
| CreatedByUser | P_PurgInfoRecordWithOrgData | CreatedByUser | User Name | |
| IsMarkedForDeletion | P_PurgInfoRecordWithOrgData | IsMarkedForDeletion | Purch.org. data | |
| PurchasingGroup | P_PurgInfoRecordWithOrgData | PurchasingGroup | Purchasing Group | |
| Currency | P_PurgInfoRecordWithOrgData | Currency | Valuation Crcy | |
| MinimumPurchaseOrderQuantity | P_PurgInfoRecordWithOrgData | MinimumPurchaseOrderQuantity | Minimum Qty | |
| StandardPurchaseOrderQuantity | P_PurgInfoRecordWithOrgData | StandardPurchaseOrderQuantity | Standard Qty | |
| MaterialPlannedDeliveryDurn | P_PurgInfoRecordWithOrgData | MaterialPlannedDeliveryDurn | Pl. Deliv. Time | |
| OverdelivTolrtdLmtRatioInPct | P_PurgInfoRecordWithOrgData | OverdelivTolrtdLmtRatioInPct | Overdeliv. Tol. | |
| UnderdelivTolrtdLmtRatioInPct | P_PurgInfoRecordWithOrgData | UnderdelivTolrtdLmtRatioInPct | Underdel. Tol. | |
| UnlimitedOverdeliveryIsAllowed | P_PurgInfoRecordWithOrgData | UnlimitedOverdeliveryIsAllowed | Unlimited Tol. | |
| LastReferencingPurchaseOrder | P_PurgInfoRecordWithOrgData | LastReferencingPurchaseOrder | Purchasing Doc. | |
| LastReferencingPurOrderItem | P_PurgInfoRecordWithOrgData | LastReferencingPurOrderItem | Item | |
| NetPriceAmount | P_PurgInfoRecordWithOrgData | NetPriceAmount | Net Price | |
| MaterialPriceUnitQty | P_PurgInfoRecordWithOrgData | MaterialPriceUnitQty | Price unit | |
| PurchaseOrderPriceUnit | P_PurgInfoRecordWithOrgData | PurchaseOrderPriceUnit | Order Price Un. | |
| PriceValidityEndDate | P_PurgInfoRecordWithOrgData | PriceValidityEndDate | Valid to | |
| OrderPriceUnitToOrderUnitNmrtr | P_PurgInfoRecordWithOrgData | OrderPriceUnitToOrderUnitNmrtr | Quantity Conversion Numerator | |
| OrdPriceUnitToOrderUnitDnmntr | P_PurgInfoRecordWithOrgData | OrdPriceUnitToOrderUnitDnmntr | Quantity Conversion Denominator | |
| InvoiceIsGoodsReceiptBased | P_PurgInfoRecordWithOrgData | InvoiceIsGoodsReceiptBased | GR-Based IV | |
| TaxCode | P_PurgInfoRecordWithOrgData | TaxCode | Tax Code | |
| TimeDependentTaxValidFromDate | P_PurgInfoRecordWithOrgData | TimeDependentTaxValidFromDate | Tax Rate Valid-From | |
| TaxCountry | P_PurgInfoRecordWithOrgData | TaxCountry | Tax Ctry/Reg. | |
| IncotermsClassification | P_PurgInfoRecordWithOrgData | IncotermsClassification | Incoterms | |
| IncotermsTransferLocation | P_PurgInfoRecordWithOrgData | IncotermsTransferLocation | Incoterms 2 | |
| IncotermsLocation1 | P_PurgInfoRecordWithOrgData | IncotermsLocation1 | Inco. Location1 | |
| IncotermsLocation1Identifier | ||||
| IncotermsLocation2Identifier | ||||
| IncotermsDvtgLocIdentifier | ||||
| IncotermsDvtgLocDescription | ||||
| IncotermsSupChnLoc1AddlUUID | P_PurgInfoRecordWithOrgData | IncotermsSupChnLoc1AddlUUID | Location UUID | |
| IncotermsSupChnLoc2AddlUUID | P_PurgInfoRecordWithOrgData | IncotermsSupChnLoc2AddlUUID | Location UUID | |
| IncotermsSupChnDvtgLocAddlUUID | P_PurgInfoRecordWithOrgData | IncotermsSupChnDvtgLocAddlUUID | Location UUID | |
| MaximumOrderQuantity | P_PurgInfoRecordWithOrgData | MaximumOrderQuantity | Max. Quantity | |
| NoDaysReminder1 | P_PurgInfoRecordWithOrgData | NoDaysReminder1 | 1st Rem./Exped. | |
| NoDaysReminder2 | P_PurgInfoRecordWithOrgData | NoDaysReminder2 | 2nd Rem./Exped. | |
| NoDaysReminder3 | P_PurgInfoRecordWithOrgData | NoDaysReminder3 | 3rd Rem./Exped. | |
| ProductPurchasePointsQty | P_PurgInfoRecordWithOrgData | ProductPurchasePointsQty | Points | |
| ProductPurchasePointsQtyUnit | P_PurgInfoRecordWithOrgData | ProductPurchasePointsQtyUnit | Points Unit | |
| ReturnAgreement | P_PurgInfoRecordWithOrgData | ReturnAgreement | Return Agmt | |
| SupplierCertOriginCat | P_PurgInfoRecordWithOrgData | SupplierCertOriginCat | Certif. Cat. | |
| SupplierCertOriginNumber | P_PurgInfoRecordWithOrgData | SupplierCertOriginNumber | Certificate | |
| SupplierCertValidityEndDate | P_PurgInfoRecordWithOrgData | SupplierCertValidityEndDate | Valid to | |
| SupplierCertOriginCountry | P_PurgInfoRecordWithOrgData | SupplierCertOriginCountry | C/R. of Origin | |
| SupplierCertOriginRegion | P_PurgInfoRecordWithOrgData | SupplierCertOriginRegion | Region | |
| SuplrCertOriginClassfctnNumber | P_PurgInfoRecordWithOrgData | SuplrCertOriginClassfctnNumber | Number | |
| SupplierQuotation | P_PurgInfoRecordWithOrgData | SupplierQuotation | RFQ | |
| SupplierQuotationDate | P_PurgInfoRecordWithOrgData | SupplierQuotationDate | Quotation from | |
| MinRemainingShelfLife | P_PurgInfoRecordWithOrgData | MinRemainingShelfLife | Rem. Shelf Life | |
| ShippingInstruction | P_PurgInfoRecordWithOrgData | ShippingInstruction | Shipping Instr. | |
| IsEvaluatedRcptSettlmtAllowed | P_PurgInfoRecordWithOrgData | IsEvaluatedRcptSettlmtAllowed | No ERS | |
| IsPurOrderAllwdForInbDeliv | P_PurgInfoRecordWithOrgData | IsPurOrderAllwdForInbDeliv | Create Ref Doc | |
| IsOrderAcknRqd | P_PurgInfoRecordWithOrgData | IsOrderAcknRqd | Acknowl. Reqd. | |
| SupplierConfirmationControlKey | P_PurgInfoRecordWithOrgData | SupplierConfirmationControlKey | Conf. Control | |
| MaterialRoundingProfile | P_PurgInfoRecordWithOrgData | MaterialRoundingProfile | Rnding Profile | |
| MaterialStagingTime | P_PurgInfoRecordWithOrgData | MaterialStagingTime | Staging Time | |
| ProductUnitGroup | P_PurgInfoRecordWithOrgData | ProductUnitGroup | UoM Group | |
| IsRetMatlAuthznRqdBySupplier | P_PurgInfoRecordWithOrgData | IsRetMatlAuthznRqdBySupplier | RMA Required | |
| IsCashDiscountGranted | P_PurgInfoRecordWithOrgData | IsCashDiscountGranted | No Cash Disc. | |
| MaterialConditionGroup | P_PurgInfoRecordWithOrgData | MaterialConditionGroup | Condition Group | |
| PricingDateControl | P_PurgInfoRecordWithOrgData | PricingDateControl | Pr. Date Cat. | |
| IncotermsLocation2 | P_PurgInfoRecordWithOrgData | IncotermsLocation2 | Inco. Location2 | |
| IncotermsVersion | P_PurgInfoRecordWithOrgData | IncotermsVersion | Inco. Version | |
| SupplierSubrange | P_PurgInfoRecordWithOrgData | SupplierSubrange | Suppl. Subrange | |
| PurchasingDocumentDate | P_PurgInfoRecordWithOrgData | PurchasingDocumentDate | Document Date | |
| SupplierSubrangeSortNumber | P_PurgInfoRecordWithOrgData | SupplierSubrangeSortNumber | SSR Sort No. | |
| LastChangeDateTime | P_PurgInfoRecordWithOrgData | LastChangeDateTime | Timestamp | |
| ShelfLifeExpirationDatePeriod | P_PurgInfoRecordWithOrgData | ShelfLifeExpirationDatePeriod | Period Ind. | |
| PurgInfoRecNonStockItmSortTerm | P_PurgInfoRecordWithOrgData | PurgInfoRecNonStockItmSortTerm | Sort Term | |
| UnitOfEntry | ||||
| UnitOfMeasure | ||||
| NetPriceQuantityUnit | Net Price | |||
| ValidityStartDate | ||||
| ValidityEndDate | ||||
| TaxCalculationProcedure | ||||
| CompanyCode | ||||
| _PurInfCndPeriodWithDraft | _PurInfCndPeriodWithDraft | |||
| IsRelevantForAutomSrcg | ||||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _Plant | _Plant | |||
| _PurchaseOrderPriceUnit | _PurchaseOrderPriceUnit | |||
| _Currency | _Currency | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _TaxCode | _TaxCode | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _CreatedByUser | _CreatedByUser | |||
| _PurgInfoRecdOrgPlantData | _PurgInfoRecdOrgPlantData | |||
| _Material | _Material | |||
| _MaterialGroup | _MaterialGroup | |||
| _Supplier | _Supplier | |||
| _BaseUnit | _BaseUnit | |||
| _PurgDocOrderQuantityUnit | _PurgDocOrderQuantityUnit | |||
| _Country | _Country | |||
| _TaxCountry | _TaxCountry |
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 I_PurgInfoRecordWWithDraft.
-- 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: IINFRECWITHORGWD
CREATE VIEW I_PurgInfoRecordWWithDraft AS
SELECT
Document.PurchasingInfoRecord AS PurchasingInfoRecord,
Document.Plant AS Plant,
Document.PurchasingInfoRecordCategory AS PurchasingInfoRecordCategory,
Document.PurchasingOrganization AS PurchasingOrganization,
Document.PurchasingInfoRecord AS PurchasingInfoRecordForEdit,
Document.PurchasingOrganization AS PurchasingOrganizationForEdit,
Document.PurchasingInfoRecordCategory AS PurchasingInfoRecordCatForEdit,
Document.Plant AS PlantForEdit,
Document.Supplier AS Supplier,
Document.Material AS Material,
case when Document.MaterialGroup = '' then I_Material.MaterialGroup else Document.MaterialGroup end as MaterialGroup AS MaterialGroupendasMaterialGroup,
Document.CreationDate AS CreationDate,
Document.IsDeleted AS IsDeleted,
Document.PurchasingInfoRecordDesc AS PurchasingInfoRecordDesc,
Document.PurgDocOrderQuantityUnit AS PurgDocOrderQuantityUnit,
Document.OrderItemQtyToBaseQtyNmrtr AS OrderItemQtyToBaseQtyNmrtr,
Document.OrderItemQtyToBaseQtyDnmntr AS OrderItemQtyToBaseQtyDnmntr,
Document.SupplierMaterialNumber AS SupplierMaterialNumber,
Document.SupplierRespSalesPersonName AS SupplierRespSalesPersonName,
Document.SupplierPhoneNumber AS SupplierPhoneNumber,
Document.BaseUnit AS BaseUnit,
Document.SupplierMaterialGroup AS SupplierMaterialGroup,
Document.PriorSupplier AS PriorSupplier,
Document.AvailabilityStartDate AS AvailabilityStartDate,
Document.AvailabilityEndDate AS AvailabilityEndDate,
Document.VarblPurOrdUnitIsActive AS VarblPurOrdUnitIsActive,
Document.Manufacturer AS Manufacturer,
Document.IsRegularSupplier AS IsRegularSupplier,
Document.CreatedByUser AS CreatedByUser,
Document.IsMarkedForDeletion AS IsMarkedForDeletion,
Document.PurchasingGroup AS PurchasingGroup,
Document.Currency AS Currency,
Document.MinimumPurchaseOrderQuantity AS MinimumPurchaseOrderQuantity,
Document.StandardPurchaseOrderQuantity AS StandardPurchaseOrderQuantity,
Document.MaterialPlannedDeliveryDurn AS MaterialPlannedDeliveryDurn,
Document.OverdelivTolrtdLmtRatioInPct AS OverdelivTolrtdLmtRatioInPct,
Document.UnderdelivTolrtdLmtRatioInPct AS UnderdelivTolrtdLmtRatioInPct,
Document.UnlimitedOverdeliveryIsAllowed AS UnlimitedOverdeliveryIsAllowed,
Document.LastReferencingPurchaseOrder AS LastReferencingPurchaseOrder,
Document.LastReferencingPurOrderItem AS LastReferencingPurOrderItem,
Document.NetPriceAmount AS NetPriceAmount,
Document.MaterialPriceUnitQty AS MaterialPriceUnitQty,
Document.PurchaseOrderPriceUnit AS PurchaseOrderPriceUnit,
Document.PriceValidityEndDate AS PriceValidityEndDate,
Document.OrderPriceUnitToOrderUnitNmrtr AS OrderPriceUnitToOrderUnitNmrtr,
Document.OrdPriceUnitToOrderUnitDnmntr AS OrdPriceUnitToOrderUnitDnmntr,
Document.InvoiceIsGoodsReceiptBased AS InvoiceIsGoodsReceiptBased,
Document.TaxCode AS TaxCode,
Document.TimeDependentTaxValidFromDate AS TimeDependentTaxValidFromDate,
Document.TaxCountry AS TaxCountry,
Document.IncotermsClassification AS IncotermsClassification,
Document.IncotermsTransferLocation AS IncotermsTransferLocation,
Document.IncotermsLocation1 AS IncotermsLocation1,
cast( '' as tminco_loc_1_id ) AS IncotermsLocation1Identifier,
cast( '' as tminco_loc_1_id ) AS IncotermsLocation2Identifier,
cast( '' as tminco_loc_d_id ) AS IncotermsDvtgLocIdentifier,
cast( '' as tminco_loc_d_descr ) AS IncotermsDvtgLocDescription,
Document.IncotermsSupChnLoc1AddlUUID AS IncotermsSupChnLoc1AddlUUID,
Document.IncotermsSupChnLoc2AddlUUID AS IncotermsSupChnLoc2AddlUUID,
Document.IncotermsSupChnDvtgLocAddlUUID AS IncotermsSupChnDvtgLocAddlUUID,
Document.MaximumOrderQuantity AS MaximumOrderQuantity,
Document.NoDaysReminder1 AS NoDaysReminder1,
Document.NoDaysReminder2 AS NoDaysReminder2,
Document.NoDaysReminder3 AS NoDaysReminder3,
Document.ProductPurchasePointsQty AS ProductPurchasePointsQty,
Document.ProductPurchasePointsQtyUnit AS ProductPurchasePointsQtyUnit,
Document.ReturnAgreement AS ReturnAgreement,
Document.SupplierCertOriginCat AS SupplierCertOriginCat,
Document.SupplierCertOriginNumber AS SupplierCertOriginNumber,
Document.SupplierCertValidityEndDate AS SupplierCertValidityEndDate,
Document.SupplierCertOriginCountry AS SupplierCertOriginCountry,
Document.SupplierCertOriginRegion AS SupplierCertOriginRegion,
Document.SuplrCertOriginClassfctnNumber AS SuplrCertOriginClassfctnNumber,
Document.SupplierQuotation AS SupplierQuotation,
Document.SupplierQuotationDate AS SupplierQuotationDate,
Document.MinRemainingShelfLife AS MinRemainingShelfLife,
Document.ShippingInstruction AS ShippingInstruction,
Document.IsEvaluatedRcptSettlmtAllowed AS IsEvaluatedRcptSettlmtAllowed,
Document.IsPurOrderAllwdForInbDeliv AS IsPurOrderAllwdForInbDeliv,
Document.IsOrderAcknRqd AS IsOrderAcknRqd,
Document.SupplierConfirmationControlKey AS SupplierConfirmationControlKey,
Document.MaterialRoundingProfile AS MaterialRoundingProfile,
Document.MaterialStagingTime AS MaterialStagingTime,
Document.ProductUnitGroup AS ProductUnitGroup,
Document.IsRetMatlAuthznRqdBySupplier AS IsRetMatlAuthznRqdBySupplier,
Document.IsCashDiscountGranted AS IsCashDiscountGranted,
Document.MaterialConditionGroup AS MaterialConditionGroup,
Document.PricingDateControl AS PricingDateControl,
Document.IncotermsLocation2 AS IncotermsLocation2,
Document.IncotermsVersion AS IncotermsVersion,
Document.SupplierSubrange AS SupplierSubrange,
Document.PurchasingDocumentDate AS PurchasingDocumentDate,
Document.SupplierSubrangeSortNumber AS SupplierSubrangeSortNumber,
Document.LastChangeDateTime AS LastChangeDateTime,
Document.ShelfLifeExpirationDatePeriod AS ShelfLifeExpirationDatePeriod,
Document.PurgInfoRecNonStockItmSortTerm AS PurgInfoRecNonStockItmSortTerm,
cast('' as bstme) AS UnitOfEntry,
cast('' as meins) AS UnitOfMeasure,
cast(NetPriceAmount as abap.sstring(50)) AS NetPriceQuantityUnit,
cast('00000000' as abap.dats(8)) AS ValidityStartDate,
cast('00000000' as abap.dats(8)) AS ValidityEndDate,
cast('' as kalsm_d) AS TaxCalculationProcedure,
cast('' as bukrs) AS CompanyCode,
cast(Document.IsRelevantForAutomSrcg as xfeld ) AS IsRelevantForAutomSrcg
FROM P_PurgInfoRecordWithOrgData AS Document
LEFT OUTER JOIN I_Material ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN E_PurchasingInforecord AS _PurchasingInforecordExtension ON _PurchasingInforecordExtension.PurchasingInfoRecord = PurchasingInfoRecord -- association [0..1]
LEFT OUTER JOIN E_PurInfoRecWithOrgDraft AS _PurInfoRecOrgDraftExtension ON _PurInfoRecOrgDraftExtension.DraftUUID = Document.PurgInfoRecdDrftID -- association [0..1]
LEFT OUTER JOIN E_PurgInfoRecdOrgPlantData AS _PurgInfoRecdOrgPlantExtension ON _PurgInfoRecdOrgPlantExtension.PurchasingInfoRecord = PurchasingInfoRecord AND _PurgInfoRecdOrgPlantExtension.PurchasingInfoRecordCategory = PurchasingInfoRecordCategory AND _PurgInfoRecdOrgPlantExtension.PurchasingOrganization = PurchasingOrganization AND _PurgInfoRecdOrgPlantExtension.Plant = Plant -- association [0..1]
LEFT OUTER JOIN I_PurInfCndPeriodWithDraft AS _PurInfCndPeriodWithDraft ON _PurInfCndPeriodWithDraft.Plant = Plant AND _PurInfCndPeriodWithDraft.PurchasingInfoRecordCategory = PurchasingInfoRecordCategory AND _PurInfCndPeriodWithDraft.PurchasingOrganization = PurchasingOrganization AND _PurInfCndPeriodWithDraft.PurchasingInfoRecord = PurchasingInfoRecord -- association [0..*]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON _PurchasingOrganization.PurchasingOrganization = PurchasingOrganizationForEdit -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = PlantForEdit -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure 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_PurchasingGroup AS _PurchasingGroup ON _PurchasingGroup.PurchasingGroup = PurchasingGroup -- association [0..1]
LEFT OUTER JOIN I_TaxCode AS _TaxCode ON _TaxCode.TaxCode = TaxCode -- association [0..*]
LEFT OUTER JOIN I_IncotermsClassification AS _IncotermsClassification ON _IncotermsClassification.IncotermsClassification = IncotermsClassification -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON _CreatedByUser.UserID = CreatedByUser -- association [0..1]
LEFT OUTER JOIN I_PurgInfoRecdOrgPlantData AS _PurgInfoRecdOrgPlantData ON _PurgInfoRecdOrgPlantData.PurchasingInfoRecord = PurchasingInfoRecordForEdit -- association [0..*]
LEFT OUTER JOIN I_Material AS _Material ON _Material.Material = Material -- association [0..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON _MaterialGroup.MaterialGroup = MaterialGroup -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = Supplier -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON _BaseUnit.UnitOfMeasure = BaseUnit -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _PurgDocOrderQuantityUnit ON _PurgDocOrderQuantityUnit.UnitOfMeasure = PurgDocOrderQuantityUnit -- association [0..1]
LEFT OUTER JOIN I_Country AS _TaxCountry ON TaxCountry = _TaxCountry.Country -- 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