C_CustomerReturnItem_F1708
Returns Order Item
C_CustomerReturnItem_F1708 is a Consumption CDS View that provides data about "Returns Order Item" in SAP S/4HANA. It reads from 1 data source (I_CustomerReturnItem) and exposes 57 fields with key fields CustomerReturn, CustomerReturnItem. It has 18 associations to related views. It is used in 1 Fiori application: Manage Customer Returns.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CustomerReturnItem | ReturnItem | from |
Associations (18)
| 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..1] | I_ShippingPoint | _ShippingPoint | $projection.ShippingPoint = _ShippingPoint.ShippingPoint |
| [0..1] | I_SalesDocumentRjcnReason | _ReturnsRefundRjcnReason | $projection.returnsrefundrjcnreason = _ReturnsRefundRjcnReason.SalesDocumentRjcnReason |
| [0..1] | I_ReturnsRefundExtent | _ReturnsRefundExtent | $projection.returnsrefundextent = _ReturnsRefundExtent.ReturnsRefundExtent |
| [0..1] | I_ReturnReason | _ReturnReason | $projection.ReturnReason = _ReturnReason.ReturnReason |
| [0..1] | I_ReturnsRefundType | _ReturnsRefundType | $projection.returnsrefundtype = _ReturnsRefundType.ReturnsRefundType |
| [0..*] | I_MaterialText | _MaterialText | $projection.Material = _MaterialText.Material |
| [0..*] | I_MaterialGroupText | _MaterialGroupText | $projection.MaterialGroup = _MaterialGroupText.MaterialGroup |
| [0..*] | I_ShippingPointText | _ShippingPointText | $projection.ShippingPoint = _ShippingPointText.ShippingPoint |
| [0..*] | I_SDDocumentCategoryText | _SDDocumentCategoryText | $projection.ReferenceSDDocumentCategory = _SDDocumentCategoryText.SDDocumentCategory |
| [0..*] | I_ReturnReasonText | _ReturnReasonText | $projection.ReturnReason = _ReturnReasonText.ReturnReason |
| [0..*] | I_ReturnsRefundTypeText | _ReturnsRefundTypeText | $projection.returnsrefundtype = _ReturnsRefundTypeText .ReturnsRefundType |
| [0..*] | I_ReturnsRefundExtentText | _ReturnsRefundExtentText | $projection.returnsrefundextent = _ReturnsRefundExtentText.ReturnsRefundExtent |
| [0..*] | I_RetMatlInspResultCodeText | _RetMatlInspResultCodeText | $projection.retmatlinspresultcode = _RetMatlInspResultCodeText.RetMatlInspResultCode |
| [0..*] | I_SDDocumentRejectionStatusT | _SDDocumentRejectionStatusT | $projection.SDDocumentRejectionStatus = _SDDocumentRejectionStatusT.SDDocumentRejectionStatus |
| [0..*] | I_SalesDocumentRjcnReasonText | _SalesDocumentRjcnReasonText | $projection.SalesDocumentRjcnReason= _SalesDocumentRjcnReasonText.SalesDocumentRjcnReason |
| [0..1] | E_SalesDocumentItemBasic | _Extension | $projection.CustomerReturnItem = _Extension.SalesDocumentItem and $projection.CustomerReturn = _Extension.SalesDocument |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCUSTRTNITMF1708 | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Returns Order Item | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Search.searchable | true | 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 (57)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomerReturn | CustomerReturn | ||
| KEY | CustomerReturnItem | CustomerReturnItem | Item | |
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| ReturnReason | ReturnReason | Return Reason | ||
| Batch | Batch | Lot No. | ||
| RetsMgmtItmLogProcgStatus | ||||
| RetsMgmtItmLogProcgStatusDesc | ||||
| RetsMgmtItmCompnProcgStatus | ||||
| RetsMgmtCompnProcgStatusDesc | ||||
| RetsMgmtItmProcgStatus | ||||
| RetsMgmtProcessingStatusDesc | ||||
| OrderQuantity | ||||
| OrderQuantityUnit | I_CustomerReturnItem | OrderQuantityUnit | Sales Unit | |
| UnitOfMeasureDimension | ||||
| NetAmount | I_CustomerReturnItem | NetAmount | Stated Amount | |
| Currency | I_CustomerReturnItem | TransactionCurrency | Transaction Currency | |
| DeliveryDate | ||||
| ProductionPlant | ||||
| PlantName | _Plant | PlantName | Plant Name | |
| MaterialByCustomer | I_CustomerReturnItem | MaterialByCustomer | Customer Mat. | |
| ReferenceSDDocumentCategory | I_CustomerReturnItem | ReferenceSDDocumentCategory | Prec.Doc.Categ. | |
| ReferenceSDDocument | I_CustomerReturnItem | ReferenceSDDocument | Reference Doc. | |
| ReferenceSDDocumentItem | I_CustomerReturnItem | ReferenceSDDocumentItem | Reference Item | |
| ShippingPoint | ||||
| ReturnsRefundType | ||||
| ReturnsRefundProcgMode | ||||
| ReturnsRefundProcgModeDesc | ||||
| ReturnsRefundExtent | ||||
| RetMatlInspResultCode | ||||
| SalesDocumentRjcnReason | SalesDocumentRjcnReason | RejectionReason | ||
| ReturnsRefundRjcnReason | ||||
| SDDocumentRejectionStatus | SDDocumentRejectionStatus | |||
| RetsMgmtProcessingBlock | RetsMgmtProcessingBlock | |||
| CustRetMatlAuthzn | ||||
| SalesOrganization | ||||
| DistributionChannel | ||||
| LinkedSAPObjectKey | ||||
| CustomerReturnItemUUID | ||||
| _CustomerReturn | _CustomerReturn | |||
| _QuantityUnitValueHelp | _QuantityUnitValueHelp | |||
| _MaterialGroupText | _MaterialGroupText | |||
| _MaterialText | _MaterialText | |||
| _ShippingPoint | _ShippingPoint | |||
| _ShippingPointText | _ShippingPointText | |||
| _SDDocumentCategoryText | _SDDocumentCategoryText | |||
| _Plant_VH_F1708 | _Plant_VH_F1708 | |||
| _ReturnReasonText | _ReturnReasonText | |||
| _ReturnReason | _ReturnReason | |||
| _ReturnsRefundType | _ReturnsRefundType | |||
| _ReturnsRefundExtent | _ReturnsRefundExtent | |||
| _ReturnsRefundRjcnReason | _ReturnsRefundRjcnReason | |||
| _ReturnsRefundTypeText | _ReturnsRefundTypeText | |||
| _ReturnsRefundExtentText | _ReturnsRefundExtentText | |||
| _RetMatlInspResultCodeText | _RetMatlInspResultCodeText | |||
| _SDDocumentRejectionStatusT | _SDDocumentRejectionStatusT | |||
| _SalesDocumentRjcnReasonText | _SalesDocumentRjcnReasonText |
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_CustomerReturnItem_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: CCUSTRTNITMF1708
CREATE VIEW C_CustomerReturnItem_F1708 AS
SELECT
CustomerReturn,
CustomerReturnItem,
Material,
MaterialGroup,
ReturnReason,
Batch,
ReturnItem._RetsMgmtProcessItem._RetsMgmtProcItmWthProcgSts.RetsMgmtItmLogProcgStatus AS RetsMgmtItmLogProcgStatus,
cast (ReturnItem._RetsMgmtProcessItem._RetsMgmtProcItmWthProcgSts._RetsMgmtItmLogProcgStatus._Text[1: Language=$session.system_language].RetsMgmtProcessingStatusDesc as return_log_procg_status_desc) AS RetsMgmtItmLogProcgStatusDesc,
ReturnItem._RetsMgmtProcessItem._RetsMgmtProcItmWthProcgSts.RetsMgmtItmCompnProcgStatus AS RetsMgmtItmCompnProcgStatus,
ReturnItem._RetsMgmtProcessItem._RetsMgmtProcItmWthProcgSts._RetsMgmtItmCompnProcgStatus._Text[1: Language=$session.system_language].RetsMgmtCompnProcgStatusDesc AS RetsMgmtCompnProcgStatusDesc,
ReturnItem._RetsMgmtProcessItem._RetsMgmtProcItmWthProcgSts.RetsMgmtItmProcgStatus AS RetsMgmtItmProcgStatus,
ReturnItem._RetsMgmtProcessItem._RetsMgmtProcItmWthProcgSts._RetsMgmtItmProcgStatus._Text[1: Language=$session.system_language].RetsMgmtProcessingStatusDesc AS RetsMgmtProcessingStatusDesc,
cast(ReturnItem.OrderQuantity as menge_pos) AS OrderQuantity,
ReturnItem.OrderQuantityUnit AS OrderQuantityUnit,
ReturnItem._OrderQuantityUnit.UnitOfMeasureDimension AS UnitOfMeasureDimension,
ReturnItem.NetAmount AS NetAmount,
ReturnItem.TransactionCurrency AS Currency,
ReturnItem._CustomerReturn.RequestedDeliveryDate AS DeliveryDate,
cast(ReturnItem.Plant as wsubst_rec_plant) AS ProductionPlant,
_Plant.PlantName AS PlantName,
ReturnItem.MaterialByCustomer AS MaterialByCustomer,
ReturnItem.ReferenceSDDocumentCategory AS ReferenceSDDocumentCategory,
ReturnItem.ReferenceSDDocument AS ReferenceSDDocument,
ReturnItem.ReferenceSDDocumentItem AS ReferenceSDDocumentItem,
cast( ReturnItem.ShippingPoint as borgr_wanst) AS ShippingPoint,
ReturnItem._RetsMgmtProcessItem._RetsMgmtProcItmRetOrdExec.ReturnsRefundType AS ReturnsRefundType,
ReturnItem._RetsMgmtProcessItem._RetsMgmtProcItmRetOrdExec.ReturnsRefundProcgMode AS ReturnsRefundProcgMode,
ReturnItem._RetsMgmtProcessItem._RetsMgmtProcItmRetOrdExec._ReturnsRefundProcgMode.ReturnsRefundProcgModeDesc AS ReturnsRefundProcgModeDesc,
ReturnItem._RetsMgmtProcessItem._RetsMgmtProcItmRetOrdExec.ReturnsRefundExtent AS ReturnsRefundExtent,
ReturnItem._RetsMgmtProcessItem._RetsMgmtProcItmInspExec.RetMatlInspResultCode AS RetMatlInspResultCode,
SalesDocumentRjcnReason,
ReturnItem._RetsMgmtProcessItem.ReturnsRefundRjcnReason AS ReturnsRefundRjcnReason,
SDDocumentRejectionStatus,
RetsMgmtProcessingBlock,
ReturnItem._RetsMgmtProcessItem.CustRetMatlAuthzn AS CustRetMatlAuthzn,
ReturnItem._CustomerReturn.SalesOrganization AS SalesOrganization,
ReturnItem._CustomerReturn.DistributionChannel AS DistributionChannel,
cast('' as objky) AS LinkedSAPObjectKey,
cast( ReturnItem.CustomerReturnItemUUID as abap.char( 32 )) AS CustomerReturnItemUUID
FROM I_CustomerReturnItem AS ReturnItem
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_ShippingPoint AS _ShippingPoint ON ShippingPoint = _ShippingPoint.ShippingPoint -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentRjcnReason AS _ReturnsRefundRjcnReason ON returnsrefundrjcnreason = _ReturnsRefundRjcnReason.SalesDocumentRjcnReason -- association [0..1]
LEFT OUTER JOIN I_ReturnsRefundExtent AS _ReturnsRefundExtent ON returnsrefundextent = _ReturnsRefundExtent.ReturnsRefundExtent -- association [0..1]
LEFT OUTER JOIN I_ReturnReason AS _ReturnReason ON ReturnReason = _ReturnReason.ReturnReason -- association [0..1]
LEFT OUTER JOIN I_ReturnsRefundType AS _ReturnsRefundType ON returnsrefundtype = _ReturnsRefundType.ReturnsRefundType -- association [0..1]
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..*]
LEFT OUTER JOIN I_ShippingPointText AS _ShippingPointText ON ShippingPoint = _ShippingPointText.ShippingPoint -- association [0..*]
LEFT OUTER JOIN I_SDDocumentCategoryText AS _SDDocumentCategoryText ON ReferenceSDDocumentCategory = _SDDocumentCategoryText.SDDocumentCategory -- association [0..*]
LEFT OUTER JOIN I_ReturnReasonText AS _ReturnReasonText ON ReturnReason = _ReturnReasonText.ReturnReason -- association [0..*]
LEFT OUTER JOIN I_ReturnsRefundTypeText AS _ReturnsRefundTypeText ON returnsrefundtype = _ReturnsRefundTypeText .ReturnsRefundType -- association [0..*]
LEFT OUTER JOIN I_ReturnsRefundExtentText AS _ReturnsRefundExtentText ON returnsrefundextent = _ReturnsRefundExtentText.ReturnsRefundExtent -- association [0..*]
LEFT OUTER JOIN I_RetMatlInspResultCodeText AS _RetMatlInspResultCodeText ON retmatlinspresultcode = _RetMatlInspResultCodeText.RetMatlInspResultCode -- association [0..*]
LEFT OUTER JOIN I_SDDocumentRejectionStatusT AS _SDDocumentRejectionStatusT ON SDDocumentRejectionStatus = _SDDocumentRejectionStatusT.SDDocumentRejectionStatus -- association [0..*]
LEFT OUTER JOIN I_SalesDocumentRjcnReasonText AS _SalesDocumentRjcnReasonText ON SalesDocumentRjcnReason= _SalesDocumentRjcnReasonText.SalesDocumentRjcnReason -- association [0..*]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _Extension ON CustomerReturnItem = _Extension.SalesDocumentItem AND CustomerReturn = _Extension.SalesDocument -- association [0..1]
;
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