I_ExcessRqmtQtySlsDocMainItm
Sales Document Main(Non Value Added Service) Items
I_ExcessRqmtQtySlsDocMainItm is a Basic CDS View that provides data about "Sales Document Main(Non Value Added Service) Items" in SAP S/4HANA. It reads from 2 data sources (I_RFM_SalesDocumentItem, tvak) and exposes 14 fields with key fields SalesDocument, SalesDocumentItem. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_RFM_SalesDocumentItem | item | from |
| tvak | tvak | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ARunSalesDocItmAssgdQty | _AssignedSalesItem | $projection.SalesDocument = _AssignedSalesItem.RequirementDocumentNumber and $projection.SalesDocumentItem = _AssignedSalesItem.RequirementDocumentItem |
| [0..1] | I_ExcessRqmtAcctAssgdAggrgdQty | _AcctAssgdQty | $projection.SalesDocument = _AcctAssgdQty.SalesDocument and $projection.SalesDocumentItem = _AcctAssgdQty.SalesDocumentItem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | IEXRQMTSDMITM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Sales Document Main(Non Value Added Service) Items | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.viewType | #BASIC | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesDocument | I_RFM_SalesDocumentItem | SalesDocument | SD Document |
| KEY | SalesDocumentItem | I_RFM_SalesDocumentItem | SalesDocumentItem | Sales Document Item |
| quan153asRequestedQuantityInBaseUnit | ||||
| quan153asConfirmedRqmtQtyInBaseUnit | ||||
| DeliveredQuantityInBaseUnit | _AggregatedScheduleLine | DeliveredQuantityInBaseUnit | ||
| AssignedQuantityInBaseUnit | ||||
| AlignedPurOrdItmQtyInBaseUoM | ||||
| OpenContrRefQtyInBsUnt | RequestedRqmtQtyInBaseUnit | |||
| OpenForConfQtyInBaseUnit | ||||
| PurchaseRequisition | PurchaseRequisition | Requisition | ||
| ShipToParty | I_RFM_SalesDocumentItem | ShipToParty | Ship-To Party (obsolete) | |
| MultiShipToOrdType | tvak | fsh_msoind | MSO | |
| _AssignedSalesItem | _AssignedSalesItem | |||
| _AcctAssgdQty | _AcctAssgdQty |
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_ExcessRqmtQtySlsDocMainItm.
-- 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: IEXRQMTSDMITM
CREATE VIEW I_ExcessRqmtQtySlsDocMainItm AS
SELECT
item.SalesDocument AS SalesDocument,
item.SalesDocumentItem AS SalesDocumentItem,
cast ( case when OrderToBaseQuantityDnmntr > 0 then _AggregatedScheduleLine.RequestedQuantity * division(OrderToBaseQuantityNmrtr,OrderToBaseQuantityDnmntr,2) else _AggregatedScheduleLine.RequestedQuantity end as abap.quan(15,3)) as RequestedQuantityInBaseUnit AS quan153asRequestedQuantityInBaseUnit,
cast ( case when OrderToBaseQuantityDnmntr > 0 then _AggregatedScheduleLine.ConfdOrderQtyByMatlAvailCheck * division(OrderToBaseQuantityNmrtr,OrderToBaseQuantityDnmntr,2) else _AggregatedScheduleLine.ConfdOrderQtyByMatlAvailCheck end as abap.quan(15,3)) as ConfirmedRqmtQtyInBaseUnit AS quan153asConfirmedRqmtQtyInBaseUnit,
_AggregatedScheduleLine.DeliveredQuantityInBaseUnit AS DeliveredQuantityInBaseUnit,
coalesce(_AssignedSalesItem.AssignedQuantityInBaseUnit,0) AS AssignedQuantityInBaseUnit,
coalesce(_AcctAssgdQty.AlignedPurOrdItmQtyInBaseUoM,0) AS AlignedPurOrdItmQtyInBaseUoM,
RequestedRqmtQtyInBaseUnit AS OpenContrRefQtyInBsUnt,
(RequestedRqmtQtyInBaseUnit - _AggregatedScheduleLine.ConfirmedRqmtQtyInBaseUnit) AS OpenForConfQtyInBaseUnit,
PurchaseRequisition,
item.ShipToParty AS ShipToParty,
tvak.fsh_msoind AS MultiShipToOrdType
FROM I_RFM_SalesDocumentItem AS item
INNER JOIN tvak ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ARunSalesDocItmAssgdQty AS _AssignedSalesItem ON SalesDocument = _AssignedSalesItem.RequirementDocumentNumber AND SalesDocumentItem = _AssignedSalesItem.RequirementDocumentItem -- association [0..1]
LEFT OUTER JOIN I_ExcessRqmtAcctAssgdAggrgdQty AS _AcctAssgdQty ON SalesDocument = _AcctAssgdQty.SalesDocument AND SalesDocumentItem = _AcctAssgdQty.SalesDocumentItem -- 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