I_RFM_PrvsnlSlsContrVarItems
Provisional Sales Contract Variant Items
I_RFM_PrvsnlSlsContrVarItems is a Composite CDS View that provides data about "Provisional Sales Contract Variant Items" in SAP S/4HANA. It reads from 2 data sources (I_RFM_PrvsnlSlsContrGnrcItm, I_Material) and exposes 27 fields with key fields SalesContract, SalesContractItem, Material. It has 4 associations to related views. Part of development package RFM_PROV_SALES_CONTRACTS.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_RFM_PrvsnlSlsContrGnrcItm | gnrc | from |
| I_Material | Mara | inner |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_RetailCharacteristicValueT | _CharValTexts1 | $projection.ProductCharacteristic1 = _CharValTexts1.RetailCharacteristicValue and $projection.ProdCharc1InternalNumber = _CharValTexts1.CharacteristicInternalID and _CharValTexts1.Language = $session.system_language |
| [0..1] | I_RetailCharacteristicValueT | _CharValTexts2 | $projection.ProductCharacteristic2 = _CharValTexts2.RetailCharacteristicValue and $projection.ProdCharc2InternalNumber = _CharValTexts2.CharacteristicInternalID and _CharValTexts2.Language = $session.system_language |
| [0..1] | I_RetailCharacteristicValueT | _CharValTexts3 | $projection.ProductCharacteristic3 = _CharValTexts3.RetailCharacteristicValue and $projection.ProdCharc3InternalNumber = _CharValTexts3.CharacteristicInternalID and _CharValTexts3.Language = $session.system_language |
| [1..1] | I_MaterialText | _MaterialText | Mara.Material = _MaterialText.Material and _MaterialText.Language = $session.system_language |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IRFMPRVSNLVRITMS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Provisional Sales Contract Variant Items | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesContract | I_RFM_PrvsnlSlsContrGnrcItm | SalesContract | Sales Document |
| KEY | SalesContractItem | I_RFM_PrvsnlSlsContrGnrcItm | SalesContractItem | Item |
| KEY | Material | I_Material | Material | Vehicle Model |
| MaterialName | _MaterialText | MaterialName | Material Description | |
| RFMVariantExstc | ||||
| OrderQuantity | Variant | OrderQuantity | Quantity | |
| ProposedQuantity | ||||
| OrderQuantityUnit | Variant | OrderQuantityUnit | Sales Unit | |
| SalesDocumentItem | Variant | SalesDocumentItem | Sales Document Item | |
| ProductCharacteristic1 | I_Material | ProductCharacteristic1 | Characteristic 1 | |
| ProductCharacteristic2 | I_Material | ProductCharacteristic2 | Characteristic 2 | |
| ProductCharacteristic3 | I_Material | ProductCharacteristic3 | Characteristic 3 | |
| ProductCharacteristic1Desc | _CharValTexts1 | RetailCharacteristicValueDesc | ||
| ProductCharacteristic2Desc | _CharValTexts2 | RetailCharacteristicValueDesc | ||
| ProductCharacteristic3Desc | _CharValTexts3 | RetailCharacteristicValueDesc | ||
| SalesDocumentType | Variant | SalesDocumentType | Sales Doc. Type | |
| OrganizationDivision | Variant | OrganizationDivision | Org. Division | |
| SalesOrganization | Variant | SalesOrganization | Sales Organization | |
| DistributionChannel | Variant | DistributionChannel | RefDistCh-Cust/Mat. | |
| ProdCharc1InternalNumber | ||||
| ProdCharc2InternalNumber | ||||
| ProdCharc3InternalNumber | ||||
| _MaterialText | _MaterialText | |||
| _CharValTexts1 | _CharValTexts1 | |||
| _CharValTexts2 | _CharValTexts2 | |||
| _CharValTexts3 | _CharValTexts3 | |||
| _OrderQuantityUnit | Variant | _OrderQuantityUnit |
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_RFM_PrvsnlSlsContrVarItems.
-- 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: IRFMPRVSNLVRITMS
CREATE VIEW I_RFM_PrvsnlSlsContrVarItems AS
SELECT
gnrc.SalesContract AS SalesContract,
gnrc.SalesContractItem AS SalesContractItem,
Mara.Material AS Material,
_MaterialText.MaterialName AS MaterialName,
case when Variant.OrderQuantity > 0 then 'E' else 'O' end AS RFMVariantExstc,
Variant.OrderQuantity AS OrderQuantity,
cast (0 as abap.quan(15,3)) AS ProposedQuantity,
Variant.OrderQuantityUnit AS OrderQuantityUnit,
Variant.SalesDocumentItem AS SalesDocumentItem,
Mara.ProductCharacteristic1 AS ProductCharacteristic1,
Mara.ProductCharacteristic2 AS ProductCharacteristic2,
Mara.ProductCharacteristic3 AS ProductCharacteristic3,
_CharValTexts1.RetailCharacteristicValueDesc AS ProductCharacteristic1Desc,
_CharValTexts2.RetailCharacteristicValueDesc AS ProductCharacteristic2Desc,
_CharValTexts3.RetailCharacteristicValueDesc AS ProductCharacteristic3Desc,
Variant.SalesDocumentType AS SalesDocumentType,
Variant.OrganizationDivision AS OrganizationDivision,
Variant.SalesOrganization AS SalesOrganization,
Variant.DistributionChannel AS DistributionChannel,
cast(Mara.ProdCharc1InternalNumber as atinn_no_conv preserving type ) AS ProdCharc1InternalNumber,
cast(Mara.ProdCharc2InternalNumber as atinn_no_conv preserving type ) AS ProdCharc2InternalNumber,
cast(Mara.ProdCharc3InternalNumber as atinn_no_conv preserving type ) AS ProdCharc3InternalNumber,
Variant._OrderQuantityUnit AS _OrderQuantityUnit
FROM I_RFM_PrvsnlSlsContrGnrcItm AS gnrc
INNER JOIN I_Material AS Mara ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_RetailCharacteristicValueT AS _CharValTexts1 ON ProductCharacteristic1 = _CharValTexts1.RetailCharacteristicValue AND ProdCharc1InternalNumber = _CharValTexts1.CharacteristicInternalID AND _CharValTexts1.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_RetailCharacteristicValueT AS _CharValTexts2 ON ProductCharacteristic2 = _CharValTexts2.RetailCharacteristicValue AND ProdCharc2InternalNumber = _CharValTexts2.CharacteristicInternalID AND _CharValTexts2.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_RetailCharacteristicValueT AS _CharValTexts3 ON ProductCharacteristic3 = _CharValTexts3.RetailCharacteristicValue AND ProdCharc3InternalNumber = _CharValTexts3.CharacteristicInternalID AND _CharValTexts3.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Mara.Material = _MaterialText.Material AND _MaterialText.Language = $session.system_language -- 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