I_ReturnReason

DDL: I_RETURNREASON SQL: IRMRETREASON Type: view BASIC

Return Reason

I_ReturnReason (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

ReturnReason · Manufacturing

I_ReturnReason is a Basic CDS View (Dimension) that provides data about "Return Reason" in SAP S/4HANA. It reads from 1 data source (msr_c_ret_reason) and exposes 2 fields with key field ReturnReason. It has 1 association to related views. It is exposed through 1 OData service (UI_CUSTOMERRETURNMANAGE).

SAP Help Documentation

CategoryCDS Views for Customer Returns Delivery Documents
StatusReleased
Purpose
This CDS view is the basic interface view for classification of Returns Reason. You can use this CDS view to build your own consumption view on top.

Prerequisites
This CDS view does not require any authorization.

Structure
Main input parameters This view does not have any input parameters. Attributes This view contains the following attributes: Returns reason

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentLO-ARM
CapabilitiesData Source for Data Extraction, Data Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Analytical Dimension
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view is the basic interface view for classification of Returns Reason. You can use this CDS view to build your own consumption view on top.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
msr_c_ret_reason msr_c_ret_reason from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_ReturnReasonText _Text $projection.ReturnReason = _Text.ReturnReason

Annotations (15)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey ReturnReason view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.sapObjectNodeType.name ReturnReason view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
VDM.viewType #BASIC view
EndUserText.label Return Reason view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName IRMRETREASON view
AbapCatalog.buffering.status #ACTIVE view
AbapCatalog.buffering.type #FULL view
Metadata.ignorePropagatedAnnotations true view

OData Services (1)

ServiceBindingVersionContractRelease
UI_CUSTOMERRETURNMANAGE UI_CUSTOMERRETURNMANAGE V4 C1 NOT_RELEASED

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY ReturnReason ret_reason Return Reason
_Text _Text

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_ReturnReason.
-- 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: IRMRETREASON

CREATE VIEW I_ReturnReason AS
SELECT
  ret_reason AS ReturnReason
FROM msr_c_ret_reason
LEFT OUTER JOIN I_ReturnReasonText AS _Text ON ReturnReason = _Text.ReturnReason  -- association [0..*]
;