P_Inforecordmanagesosdraft
P_Inforecordmanagesosdraft is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (eina_eine_d) and exposes 55 fields with key field Guid. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| eina_eine_d | draft | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [0..1] | usr21 | _User | draft.crea_uname = _User.bname |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | PIRMNGSOSDRAFT | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Guid | eina_eine_d | guid | UUID 22 char. |
| PurchasingInfoRecord | eina_eine_d | infnr | Info Record | |
| PurchasingOrganization | eina_eine_d | ekorg | Purchasing Org. | |
| Plant | eina_eine_d | werks | Receiving Plant | |
| PurchasingInfoRecordCategory | eina_eine_d | esokz | Infotype | |
| Supplier | eina_eine_d | lifnr | Vendor no. | |
| Material | eina_eine_d | matnr | Vehicle Model | |
| Entitystate | eina_eine_d | entitystate | Single-Character Flag | |
| MaterialGroupasMaterialGroup | ||||
| GeneralDataDeleted | eina_eine_d | loekz_a | Complete | |
| PurchasingInfoRecordDesc | eina_eine_d | txz01 | Text | |
| OrderUnit | eina_eine_d | meins | Valuation Unit | |
| OrderItemQtyToBaseQtyNmrtr | eina_eine_d | umrez | Numerator | |
| OrderItemQtyToBaseQtyDnmntr | eina_eine_d | umren | Denominator | |
| SupplierMaterialNumber | eina_eine_d | idnlf | Vendor Material | |
| SalesPerson | eina_eine_d | verkf | Salesperson | |
| SupplierPhoneNumber | eina_eine_d | telf1 | Telephone no. | |
| BaseUnit | eina_eine_d | lmein | Base Unit | |
| SupplierMaterialGroup | eina_eine_d | wglif | Suppl. Mat. Grp | |
| PriorSupplier | eina_eine_d | kolif | Prior Supplier | |
| AvailableFromDate | eina_eine_d | lifab | Available from | |
| AvailableToDate | eina_eine_d | lifbi | Available to | |
| vabme | eina_eine_d | vabme | Var. Order Unit | |
| relif | eina_eine_d | relif | Reg. Supplier | |
| isMarkedForDeletion | eina_eine_d | loekz_e | Purch.org. data | |
| PurchasingGroup | eina_eine_d | ekgrp | Sub. purchasing grp | |
| Currency | eina_eine_d | waers | Transaction Currency | |
| MinimumPurchaseOrderQuantity | eina_eine_d | minbm | Minimum Qty | |
| StandardPurchaseOrderQuantity | eina_eine_d | norbm | Standard Qty | |
| MaterialPlannedDeliveryDurn | eina_eine_d | aplfz | Pl. Deliv. Time | |
| OverdelivTolrtdLmtRatioInPct | eina_eine_d | uebto | Overrun Tol. | |
| UnderdelivTolrtdLmtRatioInPct | eina_eine_d | untto | Underdel. Tol. | |
| uebtk | eina_eine_d | uebtk | Unlimited Tol. | |
| ebeln | eina_eine_d | ebeln | Source PurchDoc | |
| ebelp | eina_eine_d | ebelp | Item pur. doc. | |
| NetPriceAmount | eina_eine_d | netpr | Price | |
| MaterialPriceUnitQty | eina_eine_d | peinh | Unit of measure | |
| PurchaseOrderPriceUnit | eina_eine_d | bprme | PO Price Unit | |
| PriceValidityEndDate | eina_eine_d | prdat | Valid to | |
| bpumz | eina_eine_d | bpumz | Qty Conversion | |
| bpumn | eina_eine_d | bpumn | Qty Conversion | |
| InvoiceIsGoodsReceiptBased | eina_eine_d | webre | GR-Based IV | |
| TaxCode | eina_eine_d | mwskz | Tax Code | |
| IncotermsClassification | eina_eine_d | inco1 | Incoterms | |
| IncotermsTransferLocation | eina_eine_d | inco2 | Incoterms 2 | |
| MaximumOrderQuantity | eina_eine_d | bstma | To Lot Size | |
| IsRelevantForAutomSrcg | eina_eine_d | aut_source | Auto. Sourcing | |
| Creator | eina_eine_d | crea_uname | User Name | |
| CreatorName | _User | techdesc | Description | |
| DraftCreationDate | eina_eine_d | crea_date_time | Time Stamp | |
| DraftChangeDate | eina_eine_d | lchg_date_time | Time Stamp | |
| _Plant | _Plant | |||
| _Supplier | _Supplier | |||
| _Material | _Material | |||
| _PurchasingOrganization | _PurchasingOrganization |
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 P_Inforecordmanagesosdraft.
-- 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: PIRMNGSOSDRAFT
CREATE VIEW P_Inforecordmanagesosdraft AS
SELECT
draft.guid AS Guid,
draft.infnr AS PurchasingInfoRecord,
draft.ekorg AS PurchasingOrganization,
draft.werks AS Plant,
draft.esokz AS PurchasingInfoRecordCategory,
draft.lifnr AS Supplier,
draft.matnr AS Material,
draft.entitystate AS Entitystate,
coalesce(draft.matkl, _Material._MaterialGroup.MaterialGroup ) as MaterialGroup AS MaterialGroupasMaterialGroup,
draft.loekz_a AS GeneralDataDeleted,
draft.txz01 AS PurchasingInfoRecordDesc,
draft.meins AS OrderUnit,
draft.umrez AS OrderItemQtyToBaseQtyNmrtr,
draft.umren AS OrderItemQtyToBaseQtyDnmntr,
draft.idnlf AS SupplierMaterialNumber,
draft.verkf AS SalesPerson,
draft.telf1 AS SupplierPhoneNumber,
draft.lmein AS BaseUnit,
draft.wglif AS SupplierMaterialGroup,
draft.kolif AS PriorSupplier,
draft.lifab AS AvailableFromDate,
draft.lifbi AS AvailableToDate,
draft.vabme AS vabme,
draft.relif AS relif,
draft.loekz_e AS isMarkedForDeletion,
draft.ekgrp AS PurchasingGroup,
draft.waers AS Currency,
draft.minbm AS MinimumPurchaseOrderQuantity,
draft.norbm AS StandardPurchaseOrderQuantity,
draft.aplfz AS MaterialPlannedDeliveryDurn,
draft.uebto AS OverdelivTolrtdLmtRatioInPct,
draft.untto AS UnderdelivTolrtdLmtRatioInPct,
draft.uebtk AS uebtk,
draft.ebeln AS ebeln,
draft.ebelp AS ebelp,
draft.netpr AS NetPriceAmount,
draft.peinh AS MaterialPriceUnitQty,
draft.bprme AS PurchaseOrderPriceUnit,
draft.prdat AS PriceValidityEndDate,
draft.bpumz AS bpumz,
draft.bpumn AS bpumn,
draft.webre AS InvoiceIsGoodsReceiptBased,
draft.mwskz AS TaxCode,
draft.inco1 AS IncotermsClassification,
draft.inco2 AS IncotermsTransferLocation,
draft.bstma AS MaximumOrderQuantity,
draft.aut_source AS IsRelevantForAutomSrcg,
draft.crea_uname AS Creator,
_User.techdesc AS CreatorName,
draft.crea_date_time AS DraftCreationDate,
draft.lchg_date_time AS DraftChangeDate
FROM eina_eine_d AS draft
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN usr21 AS _User ON draft.crea_uname = _User.bname -- 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