C_MRPSalesOrder
MRP Sales Order
C_MRPSalesOrder is a Consumption CDS View that provides data about "MRP Sales Order" in SAP S/4HANA. It reads from 1 data source (I_MRPSalesOrder) and exposes 43 fields with key fields SalesOrder, SalesOrderItem, SalesOrderScheduleLine. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MRPSalesOrder | I_MRPSalesOrder | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_Salesorderfs | _SalesOrder | $projection.SalesOrder = _SalesOrder.SalesOrder |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMRPSALESORDER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | MRP Sales Order | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | I_MRPSalesOrder | SalesOrder | SD Document |
| KEY | SalesOrderItem | I_MRPSalesOrder | SalesOrderItem | Sales Order Item |
| KEY | SalesOrderScheduleLine | I_MRPSalesOrder | ScheduleLine | Schedule Line |
| SDDocument | I_MRPSalesOrder | SalesOrder | SD Document | |
| MRPPlant | I_MRPSalesOrder | MRPPlant | Plant | |
| Material | I_MRPSalesOrder | Material | Vehicle Model | |
| MaterialName | I_MRPSalesOrder | MaterialName | Material Description | |
| DeliveryIsBlocked | I_MRPSalesOrder | DeliveryIsBlocked | Delivery block | |
| BaseUnit | I_MRPSalesOrder | BaseUnit | Unit of Measure | |
| SalesUnit | I_MRPSalesOrder | SalesUnit | Unit | |
| DeliveredQtyInOrderQtyUnit | I_MRPSalesOrder | DeliveredQtyInOrderQtyUnit | ||
| quan133endasDeliveredQuantityInBaseUnit | ||||
| OpenConfdDelivQtyInBaseUnit | I_MRPSalesOrder | OpenConfdDelivQtyInBaseUnit | ||
| OpenConfdDelivQtyInOrdQtyUnit | I_MRPSalesOrder | OpenConfdDelivQtyInOrdQtyUnit | ||
| ConfirmationTotalQuantity | I_MRPSalesOrder | ConfirmationTotalQuantity | ||
| ConfirmedQuantity | I_MRPSalesOrder | ConfirmedQuantity | Quantity in UnE | |
| OrderQuantity | I_MRPSalesOrder | CorrectedQtyInBaseUnit | ||
| OpenQuantity | I_MRPSalesOrder | OpenQuantity | PBE Entry Open Qty | |
| Customer | I_MRPSalesOrder | Customer | Sold-to Party | |
| CustomerName | I_MRPSalesOrder | CustomerName | Name of Customer | |
| ContactPersonName | ||||
| ContactPersonPhoneNumber | ||||
| InternalContactEmailAddress | ||||
| SalesOrderDate | I_MRPSalesOrder | SalesOrderDate | Document Date | |
| ProductAvailabilityDate | I_MRPSalesOrder | ProductAvailabilityDate | Mat.Avail.Date | |
| RequestedDeliveryDate | I_MRPSalesOrder | RequestedDeliveryDate | Requested Delivery Date | |
| LoadingDate | I_MRPSalesOrder | LoadingDate | Loading Date | |
| DeliveryPriority | I_MRPSalesOrder | DeliveryPriority | Delivery Prior. | |
| DeliveryPriorityDesc | I_MRPSalesOrder | DeliveryPriorityDesc | ||
| DeliveryBlockReason | I_MRPSalesOrder | DeliveryBlockReason | Delivery Block | |
| DeliveryBlockReasonText | ||||
| MaterialByCustomer | I_MRPSalesOrder | MaterialByCustomer | Customer Mat. | |
| WBSElement | ||||
| WBSDescription | ||||
| ResponsiblePerson | ||||
| ResponsiblePersonName | ||||
| Project | ||||
| ProjectInternalID | ||||
| ProjectDescription | ||||
| TopLevelOrder | ||||
| TopLevelOrderMaterial | ||||
| TopLevelOrderMaterialName | ||||
| _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_MRPSalesOrder.
-- 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: CMRPSALESORDER
CREATE VIEW C_MRPSalesOrder AS
SELECT
I_MRPSalesOrder.SalesOrder AS SalesOrder,
I_MRPSalesOrder.SalesOrderItem AS SalesOrderItem,
I_MRPSalesOrder.ScheduleLine AS SalesOrderScheduleLine,
I_MRPSalesOrder.SalesOrder AS SDDocument,
I_MRPSalesOrder.MRPPlant AS MRPPlant,
I_MRPSalesOrder.Material AS Material,
I_MRPSalesOrder.MaterialName AS MaterialName,
I_MRPSalesOrder.DeliveryIsBlocked AS DeliveryIsBlocked,
I_MRPSalesOrder.BaseUnit AS BaseUnit,
I_MRPSalesOrder.SalesUnit AS SalesUnit,
I_MRPSalesOrder.DeliveredQtyInOrderQtyUnit AS DeliveredQtyInOrderQtyUnit,
case when I_MRPSalesOrder.OpenReqdDelivQtyInBaseUnit > 0 then I_MRPSalesOrder.CorrectedQtyInBaseUnit - I_MRPSalesOrder.OpenReqdDelivQtyInBaseUnit else cast(0 as abap.quan( 13, 3 )) end as DeliveredQuantityInBaseUnit AS quan133endasDeliveredQuantityInBaseUnit,
I_MRPSalesOrder.OpenConfdDelivQtyInBaseUnit AS OpenConfdDelivQtyInBaseUnit,
I_MRPSalesOrder.OpenConfdDelivQtyInOrdQtyUnit AS OpenConfdDelivQtyInOrdQtyUnit,
I_MRPSalesOrder.ConfirmationTotalQuantity AS ConfirmationTotalQuantity,
I_MRPSalesOrder.ConfirmedQuantity AS ConfirmedQuantity,
I_MRPSalesOrder.CorrectedQtyInBaseUnit AS OrderQuantity,
I_MRPSalesOrder.OpenQuantity AS OpenQuantity,
I_MRPSalesOrder.Customer AS Customer,
I_MRPSalesOrder.CustomerName AS CustomerName,
cast('' as ad_namtext) AS ContactPersonName,
cast('' as ad_tlnmbr1) AS ContactPersonPhoneNumber,
cast('' as ad_smtpadr) AS InternalContactEmailAddress,
I_MRPSalesOrder.SalesOrderDate AS SalesOrderDate,
I_MRPSalesOrder.ProductAvailabilityDate AS ProductAvailabilityDate,
I_MRPSalesOrder.RequestedDeliveryDate AS RequestedDeliveryDate,
I_MRPSalesOrder.LoadingDate AS LoadingDate,
I_MRPSalesOrder.DeliveryPriority AS DeliveryPriority,
I_MRPSalesOrder.DeliveryPriorityDesc AS DeliveryPriorityDesc,
I_MRPSalesOrder.DeliveryBlockReason AS DeliveryBlockReason,
_DeliveryBlockReason._Text[1: Language = $session.system_language ].DeliveryBlockReasonText AS DeliveryBlockReasonText,
I_MRPSalesOrder.MaterialByCustomer AS MaterialByCustomer,
I_MRPSalesOrder._WBSElementBasicData.WBSElementExternalID AS WBSElement,
I_MRPSalesOrder._WBSElementBasicData.WBSDescription AS WBSDescription,
cast( I_MRPSalesOrder._ProjectRespPersn.PersonWorkAgreement as ps_s4_vernr preserving type ) AS ResponsiblePerson,
I_MRPSalesOrder._ProjectRespPersn._WorkforcePerson.PersonFullName AS ResponsiblePersonName,
I_MRPSalesOrder._WBSElementBasicData._Project.ProjectExternalID AS Project,
cast( I_MRPSalesOrder._WBSElementBasicData.ProjectInternalID as ps_s4_proj_pspnr preserving type ) AS ProjectInternalID,
I_MRPSalesOrder._WBSElementBasicData._Project.ProjectDescription AS ProjectDescription,
'' AS TopLevelOrder,
'' AS TopLevelOrderMaterial,
'' AS TopLevelOrderMaterialName
FROM I_MRPSalesOrder
LEFT OUTER JOIN C_Salesorderfs AS _SalesOrder ON SalesOrder = _SalesOrder.SalesOrder -- 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