I_CAReturnReason

DDL: I_CARETURNREASON Type: view_entity BASIC

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

CategoryCDS 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.

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
tfk045a tfk045a from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;