I_CAReturnReason
Return Reason
I_CAReturnReason is a Basic CDS View that provides data about "Return Reason" in SAP S/4HANA. It reads from 1 data source (tfk045a) and exposes 9 fields with key fields CAReturnReason, HouseBank. It has 2 associations to related views.
SAP Help Documentation
| Category | CDS Views for Configuration Data |
|---|
Purpose
This CDS view retrieves return reasons specifying the company-specific reason for a return in Contract Accounting . Example Card Not Valid , Account Not Valid , Check Return , Payment Service Provider Refund This CDS view provides the data to answer the business question: Which return reason values are available in the system? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Configuration You define return reasons in the Configure Returns Reasons Customizing activity.
This CDS view retrieves return reasons specifying the company-specific reason for a return in Contract Accounting . Example Card Not Valid , Account Not Valid , Check Return , Payment Service Provider Refund This CDS view provides the data to answer the business question: Which return reason values are available in the system? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Configuration You define return reasons in the Configure Returns Reasons Customizing activity.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| tfk045a | tfk045a | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_Housebank | _HouseBank | $projection.HouseBank = _HouseBank.HouseBank and _HouseBank.CompanyCode is not initial |
| [0..*] | I_CAReturnReasonText | _Text | $projection.CAReturnReason = _Text.CAReturnReason and $projection.HouseBank = _Text.HouseBank |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Return Reason | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.representativeKey | CAReturnReason | view | |
| ObjectModel.sapObjectNodeType.name | ContrAcctgReturnReason | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| VDM.viewType | #BASIC | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CAReturnReason | tfk045a | rlgrd | Returns Reason |
| KEY | HouseBank | House Bank | ||
| CAReturnType | rltyp | Return type | ||
| CAReturnHistoryDays | histt | History | ||
| CACreditWorthinessRatingValue | bonig | Creditw. no. | ||
| CAClarificationAccount | klaeh | Clarif. Acct | ||
| CAChequeVoidingReason | voidr | Voiding Reason | ||
| _HouseBank | _HouseBank | |||
| _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_CAReturnReason.
-- 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.
CREATE VIEW I_CAReturnReason AS
SELECT
tfk045a.rlgrd AS CAReturnReason,
cast( hbkid as farp_hbkid preserving type ) AS HouseBank,
rltyp AS CAReturnType,
histt AS CAReturnHistoryDays,
bonig AS CACreditWorthinessRatingValue,
klaeh AS CAClarificationAccount,
voidr AS CAChequeVoidingReason
FROM tfk045a
LEFT OUTER JOIN I_Housebank AS _HouseBank ON HouseBank = _HouseBank.HouseBank AND _HouseBank.CompanyCode is not initial -- association [1..*]
LEFT OUTER JOIN I_CAReturnReasonText AS _Text ON CAReturnReason = _Text.CAReturnReason AND HouseBank = _Text.HouseBank -- association [0..*]
;
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