C_BSOrdItmProcFlwCustRet

DDL: C_BSORDITMPROCFLWCUSTRET Type: view CONSUMPTION

CustRet Item Attrib for BSOrd Prgrs

C_BSOrdItmProcFlwCustRet is a Consumption CDS View that provides data about "CustRet Item Attrib for BSOrd Prgrs" in SAP S/4HANA. It reads from 1 data source (I_CustomerReturnItem) and exposes 11 fields with key fields UI5NetworkGraphAttributeValue, CustomerReturnItem. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CustomerReturnItem CustReturnItem from

Associations (2)

CardinalityTargetAliasCondition
[0..1] P_BusSolnOrdSubsqntDocTypeText _DocumentType _DocumentType.UI5NetworkGraphDescription = 'HI'
[0..1] E_SalesDocumentItemBasic _Extension _Extension.SalesDocument = CustReturnItem.CustomerReturn and _Extension.SalesDocumentItem = CustReturnItem.CustomerReturnItem

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CCUSRETITMATTRIB view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view
EndUserText.label CustRet Item Attrib for BSOrd Prgrs view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY UI5NetworkGraphAttributeValue CustomerReturn
KEY CustomerReturnItem CustomerReturnItem
Product Product Product Sold
ProductName CustomerReturnItemText Item Descr.
OrderQuantity OrderQuantity Quantity
OrderQuantityUnit OrderQuantityUnit Sales Unit
ReturnsRefundTypeName
ReturnReasonName
UI5NetworkGraphStatusName
UI5NetworkGraphStatus
UI5NetworkGraphDescription

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_BSOrdItmProcFlwCustRet.
-- 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 C_BSOrdItmProcFlwCustRet AS
SELECT
  CustomerReturn AS UI5NetworkGraphAttributeValue,
  CustomerReturnItem,
  Product,
  CustomerReturnItemText AS ProductName,
  OrderQuantity,
  OrderQuantityUnit,
  AdvncdRetsMgmtProcessStep._ReturnsRefundType._Text[1: Language = $session.system_language].ReturnsRefundTypeName AS ReturnsRefundTypeName,
  _ReturnReason._Text[1: Language = $session.system_language].ReturnReasonName AS ReturnReasonName,
  _SDProcessStatus._Text[1: Language = $session.system_language].SDProcessStatusDesc AS UI5NetworkGraphStatusName,
  cast(SDProcessStatus as fac_network_graph_status) AS UI5NetworkGraphStatus,
  _DocumentType[1: Language = $session.system_language].UI5NetworkGraphDescriptionName AS UI5NetworkGraphDescription
FROM I_CustomerReturnItem AS CustReturnItem
LEFT OUTER JOIN P_BusSolnOrdSubsqntDocTypeText AS _DocumentType ON _DocumentType.UI5NetworkGraphDescription = 'HI'  -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _Extension ON _Extension.SalesDocument = CustReturnItem.CustomerReturn AND _Extension.SalesDocumentItem = CustReturnItem.CustomerReturnItem  -- association [0..1]
;