C_ReturnRefDocItem_F1708
Return Reference Document Item
C_ReturnRefDocItem_F1708 is a Consumption CDS View that provides data about "Return Reference Document Item" in SAP S/4HANA. It reads from 6 data sources and exposes 54 fields with key fields ReturnsReferenceDocument, ReturnsReferenceDocumentItem, ReturnsReferenceDocumentItem. It has 6 associations to related views. It is used in 1 Fiori application: Manage Customer Returns.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocument | BillingDocument | inner |
| I_BillingDocumentItem | BillingDocumentItem | union |
| I_SalesDocument | SalesDocument | inner |
| I_SalesDocumentCopyControl | SalesDocumentCopyControl | left_outer |
| I_SalesDocumentCopyControl | SalesDocumentCopyControl | left_outer |
| I_SalesDocumentItem | SalesDocumentItem | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_AllwdPlantsPerSlsOrgVH | _Plant_VH_F1708 | $projection.ProductionPlant = _Plant_VH_F1708.Plant and $projection.salesorganization = _Plant_VH_F1708.SalesOrganization and $projection.distributionchannel = _Plant_VH_F1708.DistributionChannel |
| [0..1] | I_UnitOfMeasure | _QuantityUnitValueHelp | $projection.OrderQuantityUnit = _QuantityUnitValueHelp.UnitOfMeasure |
| [0..*] | I_SDDocumentCategoryText | _SDDocumentCategoryText | $projection.SDDocumentCategory = _SDDocumentCategoryText.SDDocumentCategory |
| [0..*] | I_ShippingPointText | _ShippingPointText | $projection.ShippingPoint = _ShippingPointText.ShippingPoint |
| [0..*] | I_MaterialText | _MaterialText | $projection.Material = _MaterialText.Material |
| [0..*] | I_MaterialGroupText | _MaterialGroupText | $projection.MaterialGroup = _MaterialGroupText.MaterialGroup |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CRTNRDOCITMF1708 | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Return Reference Document Item | view | |
| Search.searchable | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view |
Fiori Apps (1)
| App ID | App Name | Type | Description |
|---|---|---|---|
| F1708 | Manage Customer Returns | Transactional | Manage Customer Returns enables you to create and edit advanced returns. It also allows you to determine refund. |
Manage Customer Returns
Business Role: Returns and Refund Clerk
In the Manage Customer Returns app, you can filter returns orders by returns order reason. You can view the returns order reasons in the returns order list.
Fields (54)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ReturnsReferenceDocument | I_SalesDocumentItem | SalesDocument | SD Document |
| KEY | ReturnsReferenceDocumentItem | SalesDocumentItem | Item | |
| SalesDocument | I_SalesDocumentItem | SalesDocument | SD Document | |
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| OrderQuantity | ||||
| Material | I_SalesDocumentItem | Material | Vehicle Model | |
| MaterialGroup | I_SalesDocumentItem | MaterialGroup | Product Group | |
| NetAmount | I_SalesDocumentItem | NetAmount | Stated Amount | |
| Currency | I_SalesDocumentItem | TransactionCurrency | Transaction Currency | |
| OrderQuantityUnit | I_SalesDocumentItem | OrderQuantityUnit | Sales Unit | |
| SDDocumentCategory | I_SalesDocumentItem | SDDocumentCategory | Document Cat. | |
| ProductionPlant | I_SalesDocumentItem | Plant | Valuation Area | |
| PlantName | ||||
| Batch | I_SalesDocumentItem | Batch | Lot No. | |
| DeliveryDate | ||||
| MaterialByCustomer | I_SalesDocumentItem | MaterialByCustomer | Customer Mat. | |
| ReturnQuantityUnit | I_SalesDocumentItem | OrderQuantityUnit | Sales Unit | |
| ReturnQuantity | ||||
| ShippingPoint | I_SalesDocumentItem | ShippingPoint | Shipping Point | |
| OrganizationDivision | ||||
| SalesOrganization | ||||
| DistributionChannel | ||||
| _QuantityUnitValueHelp | _QuantityUnitValueHelp | |||
| _MaterialText | _MaterialText | |||
| _MaterialGroupText | _MaterialGroupText | |||
| _ShippingPointText | _ShippingPointText | |||
| _SDDocumentCategoryText | _SDDocumentCategoryText | |||
| KEY | ReturnsReferenceDocumentItem | BillingDocumentItem | Item | |
| SalesDocument | I_BillingDocumentItem | SalesDocument | SD Document | |
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| OrderQuantity | ||||
| Material | I_BillingDocumentItem | Material | Vehicle Model | |
| MaterialGroup | I_BillingDocumentItem | MaterialGroup | Product Group | |
| NetAmount | I_BillingDocumentItem | NetAmount | Stated Amount | |
| Currency | I_BillingDocumentItem | TransactionCurrency | Transaction Currency | |
| OrderQuantityUnit | Sales Unit | |||
| SDDocumentCategory | Document Cat. | |||
| ProductionPlant | Valuation Area | |||
| PlantName | ||||
| Batch | I_BillingDocumentItem | Batch | Lot No. | |
| DeliveryDate | ||||
| MaterialByCustomer | Customer Mat. | |||
| ReturnQuantityUnit | Sales Unit | |||
| ReturnQuantity | ||||
| ShippingPoint | I_BillingDocumentItem | ShippingPoint | Shipping Point | |
| OrganizationDivision | ||||
| SalesOrganization | ||||
| DistributionChannel | ||||
| _QuantityUnitValueHelp | _QuantityUnitValueHelp | |||
| _MaterialText | _MaterialText | |||
| _MaterialGroupText | _MaterialGroupText | |||
| _ShippingPointText | _ShippingPointText | |||
| _SDDocumentCategoryText | _SDDocumentCategoryText | |||
| _Plant_VH_F1708 | _Plant_VH_F1708 |
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_ReturnRefDocItem_F1708.
-- 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: CRTNRDOCITMF1708
CREATE VIEW C_ReturnRefDocItem_F1708 AS
SELECT
SalesDocumentItem.SalesDocument AS ReturnsReferenceDocument,
SalesDocumentItem AS ReturnsReferenceDocumentItem,
SalesDocumentItem.SalesDocument AS SalesDocument,
SalesDocumentItem,
cast(SalesDocumentItem.OrderQuantity as original_quantity) AS OrderQuantity,
SalesDocumentItem.Material AS Material,
SalesDocumentItem.MaterialGroup AS MaterialGroup,
SalesDocumentItem.NetAmount AS NetAmount,
SalesDocumentItem.TransactionCurrency AS Currency,
SalesDocumentItem.OrderQuantityUnit AS OrderQuantityUnit,
SalesDocumentItem.SDDocumentCategory AS SDDocumentCategory,
SalesDocumentItem.Plant AS ProductionPlant,
SalesDocumentItem._Plant.PlantName AS PlantName,
SalesDocumentItem.Batch AS Batch,
SalesDocumentItem._SalesDocument.RequestedDeliveryDate AS DeliveryDate,
SalesDocumentItem.MaterialByCustomer AS MaterialByCustomer,
SalesDocumentItem.OrderQuantityUnit AS ReturnQuantityUnit,
cast(0 as kwmeng) AS ReturnQuantity,
SalesDocumentItem.ShippingPoint AS ShippingPoint,
SalesDocumentItem._SalesDocument.OrganizationDivision AS OrganizationDivision,
SalesDocumentItem._SalesDocument.SalesOrganization AS SalesOrganization,
SalesDocumentItem._SalesDocument.DistributionChannel AS DistributionChannel
FROM I_SalesDocumentItem AS SalesDocumentItem
INNER JOIN I_SalesDocument AS SalesDocument ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SalesDocumentCopyControl AS SalesDocumentCopyControl ON /* join condition not captured in parsed metadata */
INNER JOIN I_BillingDocument AS BillingDocument ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_AllwdPlantsPerSlsOrgVH AS _Plant_VH_F1708 ON ProductionPlant = _Plant_VH_F1708.Plant AND salesorganization = _Plant_VH_F1708.SalesOrganization AND distributionchannel = _Plant_VH_F1708.DistributionChannel -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _QuantityUnitValueHelp ON OrderQuantityUnit = _QuantityUnitValueHelp.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_SDDocumentCategoryText AS _SDDocumentCategoryText ON SDDocumentCategory = _SDDocumentCategoryText.SDDocumentCategory -- association [0..*]
LEFT OUTER JOIN I_ShippingPointText AS _ShippingPointText ON ShippingPoint = _ShippingPointText.ShippingPoint -- association [0..*]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material -- association [0..*]
LEFT OUTER JOIN I_MaterialGroupText AS _MaterialGroupText ON MaterialGroup = _MaterialGroupText.MaterialGroup -- association [0..*]
-- UNION with additional select branch(es): I_BillingDocumentItem
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Fiori Apps Architecture — How Fiori Apps Connect to Data
- 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