Deprecated
This CDS view is deprecated in S/4HANA. Use I_CustomerReturnItemCube_2 instead. View all deprecated CDS views →

I_CustomerReturnItemCube

DDL: I_CUSTOMERRETURNITEMCUBE Type: view COMPOSITE

Customer Return Item - Cube

I_CustomerReturnItemCube is a Composite CDS View (Cube) that provides data about "Customer Return Item - Cube" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentItemAnalytics) and exposes 122 fields with key fields CustomerReturn, CustomerReturnItem. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentItemAnalytics SDIA from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_CustomerReturn _CustomerReturn $projection.CustomerReturn = _CustomerReturn.CustomerReturn
[0..1] I_CustomerReturnType _CustomerReturnType $projection.CustomerReturnType = _CustomerReturnType.CustomerReturnType
[0..1] I_Product _Product $projection.Product = _Product.Product
[0..1] E_SalesDocumentItemBasic _Extension SDIA.SalesDocument = _Extension.SalesDocument and SDIA.SalesDocumentItem = _Extension.SalesDocumentItem

Annotations (15)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Customer Return Item - Cube view
VDM.viewType #COMPOSITE view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_CustomerReturnItemCube_2 view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName ISDCUSTRETITMC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
Analytics.dataCategory #CUBE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view

Fields (122)

KeyFieldSource TableSource FieldDescription
KEY CustomerReturn
_CustomerReturn _CustomerReturn
KEY CustomerReturnItem
CustomerReturnType
_CustomerReturnType _CustomerReturnType
CustomerReturnItemType I_SalesDocumentItemAnalytics SalesDocumentItemType
CustomerReturnItemCategory I_SalesDocumentItemAnalytics SalesDocumentItemCategory Item Category
_ItemCategory I_SalesDocumentItemAnalytics _ItemCategory
CreatedByUser I_SalesDocumentItemAnalytics CreatedByUser User Name
_CreatedByUser I_SalesDocumentItemAnalytics _CreatedByUser
CreationDate I_SalesDocumentItemAnalytics CreationDate Time Stamp
CreationTime I_SalesDocumentItemAnalytics CreationTime Time of Change
LastChangeDate I_SalesDocumentItemAnalytics LastChangeDate Time Stamp
CreationDateYear
CreationDateYearQuarter
CreationDateYearMonth
SalesOrganization I_SalesDocumentItemAnalytics SalesOrganization Sales Organization
_SalesOrganization I_SalesDocumentItemAnalytics _SalesOrganization
DistributionChannel I_SalesDocumentItemAnalytics DistributionChannel RefDistCh-Cust/Mat.
_DistributionChannel I_SalesDocumentItemAnalytics _DistributionChannel
OrganizationDivision
_OrganizationDivision I_SalesDocumentItemAnalytics _OrganizationDivision
Division I_SalesDocumentItemAnalytics Division Internal Division ID
_Division I_SalesDocumentItemAnalytics _Division
SalesGroup I_SalesDocumentItemAnalytics SalesGroup Sales Group
_SalesGroup I_SalesDocumentItemAnalytics _SalesGroup
SalesOffice I_SalesDocumentItemAnalytics SalesOffice Sales Office
_SalesOffice I_SalesDocumentItemAnalytics _SalesOffice
SoldToParty I_SalesDocumentItemAnalytics SoldToParty Sold-to Party
_SoldToParty I_SalesDocumentItemAnalytics _SoldToParty
ShipToParty I_SalesDocumentItemAnalytics ShipToParty Ship-To Party (obsolete)
_ShipToParty I_SalesDocumentItemAnalytics _ShipToParty
PayerParty I_SalesDocumentItemAnalytics PayerParty Payer
_PayerParty I_SalesDocumentItemAnalytics _PayerParty
BillToParty I_SalesDocumentItemAnalytics BillToParty Inv. Recipient
_BillToParty I_SalesDocumentItemAnalytics _BillToParty
SDDocumentReason I_SalesDocumentItemAnalytics SDDocumentReason Order Reason
_SDDocumentReason I_SalesDocumentItemAnalytics _SDDocumentReason
CustomerReturnItemText I_SalesDocumentItemAnalytics SalesDocumentItemText Item Descr.
CustomerPurchaseOrderType I_SalesDocumentItemAnalytics CustomerPurchaseOrderType
_CustomerPurchaseOrderType I_SalesDocumentItemAnalytics _CustomerPurchaseOrderType
PurchaseOrderByCustomer I_SalesDocumentItemAnalytics PurchaseOrderByCustomer Purchase Order Number
CustomerPurchaseOrderDate I_SalesDocumentItemAnalytics CustomerPurchaseOrderDate Purchase Order Date
CustomerGroup I_SalesDocumentItemAnalytics CustomerGroup Customer Group
_CustomerGroup I_SalesDocumentItemAnalytics _CustomerGroup
SalesDocumentRjcnReason I_SalesDocumentItemAnalytics SalesDocumentRjcnReason RejectionReason
_SalesDocumentRjcnReason I_SalesDocumentItemAnalytics _SalesDocumentRjcnReason
ReturnReason I_SalesDocumentItemAnalytics ReturnReason Return Reason
_ReturnReason I_SalesDocumentItemAnalytics _ReturnReason
ReturnsRefundExtent I_SalesDocumentItemAnalytics ReturnsRefundExtent
_ReturnsRefundExtent I_SalesDocumentItemAnalytics _ReturnsRefundExtent
RetsMgmtProcessingBlock I_SalesDocumentItemAnalytics RetsMgmtProcessingBlock
Material
_Material I_SalesDocumentItemAnalytics _Material
Product Product Product Sold
_Product _Product
MaterialGroup I_SalesDocumentItemAnalytics MaterialGroup Product Group
_MaterialGroup I_SalesDocumentItemAnalytics _MaterialGroup
ProductGroup I_SalesDocumentItemAnalytics ProductGroup Product Sold Group
_ProductGroup I_SalesDocumentItemAnalytics _ProductGroup
Plant I_SalesDocumentItemAnalytics Plant Valuation Area
_Plant I_SalesDocumentItemAnalytics _Plant
ItemWeightUnit I_SalesDocumentItemAnalytics ItemWeightUnit Unit of Weight
_ItemWeightUnit I_SalesDocumentItemAnalytics _ItemWeightUnit
ItemGrossWeight I_SalesDocumentItemAnalytics ItemGrossWeight Gross Weight
ItemNetWeight I_SalesDocumentItemAnalytics ItemNetWeight Net Weight
ItemVolumeUnit I_SalesDocumentItemAnalytics ItemVolumeUnit Volume Unit
_ItemVolumeUnit I_SalesDocumentItemAnalytics _ItemVolumeUnit
ItemVolume I_SalesDocumentItemAnalytics ItemVolume Volume
MainItemPricingRefProduct I_SalesDocumentItemAnalytics MainItemPricingRefProduct
HigherLevelItem I_SalesDocumentItemAnalytics HigherLevelItem Higher-Lev.Item
BillOfMaterial I_SalesDocumentItemAnalytics BillOfMaterial BOM
PropagatePrftbltySgmt2BOM I_SalesDocumentItemAnalytics PropagatePrftbltySgmt2BOM
CostDeterminationIsRequired I_SalesDocumentItemAnalytics CostDeterminationIsRequired
BillingCompanyCode I_SalesDocumentItemAnalytics BillingCompanyCode CCodeToBeBilled
_BillingCompanyCode I_SalesDocumentItemAnalytics _BillingCompanyCode
ItemIsBillingRelevant I_SalesDocumentItemAnalytics ItemIsBillingRelevant
_ItemIsBillingRelevant I_SalesDocumentItemAnalytics _ItemIsBillingRelevant
ItemBillingBlockReason
_ItemBillingBlockReason I_SalesDocumentItemAnalytics _ItemBillingBlockReason
ExchangeRateDate I_SalesDocumentItemAnalytics ExchangeRateDate Translatn Date
PriceDetnExchangeRate I_SalesDocumentItemAnalytics PriceDetnExchangeRate Exchange Rate
NetPriceAmount I_SalesDocumentItemAnalytics NetPriceAmount Net Price
NetPriceQuantity I_SalesDocumentItemAnalytics NetPriceQuantity Price Unit
NetPriceQuantityUnit I_SalesDocumentItemAnalytics NetPriceQuantityUnit SettlmtPrcUnit
_NetPriceQuantityUnit I_SalesDocumentItemAnalytics _NetPriceQuantityUnit
StatisticalValueControl I_SalesDocumentItemAnalytics StatisticalValueControl
_StatisticalValueControl I_SalesDocumentItemAnalytics _StatisticalValueControl
TaxAmount I_SalesDocumentItemAnalytics TaxAmount Tax Amt in Rptg Crcy
CostAmount I_SalesDocumentItemAnalytics CostAmount
Subtotal1Amount I_SalesDocumentItemAnalytics Subtotal1Amount Subtotal 1 Amount
Subtotal2Amount I_SalesDocumentItemAnalytics Subtotal2Amount Subtotal 2 Amount
Subtotal3Amount I_SalesDocumentItemAnalytics Subtotal3Amount Subtotal 3 Amount
Subtotal4Amount I_SalesDocumentItemAnalytics Subtotal4Amount Subtotal 4 Amount
Subtotal5Amount I_SalesDocumentItemAnalytics Subtotal5Amount Subtotal 5 Amount
Subtotal6Amount I_SalesDocumentItemAnalytics Subtotal6Amount Subtotal 6 Amount
CustomerPaymentTerms I_SalesDocumentItemAnalytics CustomerPaymentTerms Pyt Terms
_CustomerPaymentTerms I_SalesDocumentItemAnalytics _CustomerPaymentTerms
PaymentMethod I_SalesDocumentItemAnalytics PaymentMethod Pymt Meth.
BusinessArea I_SalesDocumentItemAnalytics BusinessArea Business Area
_BusinessArea I_SalesDocumentItemAnalytics _BusinessArea
ShippingPoint I_SalesDocumentItemAnalytics ShippingPoint Shipping Point
_ShippingPoint I_SalesDocumentItemAnalytics _ShippingPoint
ReferenceSDDocumentCategory I_SalesDocumentItemAnalytics ReferenceSDDocumentCategory Prec.Doc.Categ.
_ReferenceSDDocumentCategory I_SalesDocumentItemAnalytics _ReferenceSDDocumentCategory
ReferenceSDDocument I_SalesDocumentItemAnalytics ReferenceSDDocument Reference Doc.
_ReferenceSDDocument I_SalesDocumentItemAnalytics _ReferenceSDDocument
ReferenceSDDocumentItem I_SalesDocumentItemAnalytics ReferenceSDDocumentItem Reference Item
_ReferenceSDDocumentItem I_SalesDocumentItemAnalytics _ReferenceSDDocumentItem
BaseUnit I_SalesDocumentItemAnalytics BaseUnit Unit of Measure
_BaseUnit I_SalesDocumentItemAnalytics _BaseUnit
TransactionCurrency I_SalesDocumentItemAnalytics TransactionCurrency Transaction Currency
_TransactionCurrency I_SalesDocumentItemAnalytics _TransactionCurrency
NumberOfIncomingCustRetItems I_SalesDocumentItemAnalytics NumberOfIncomingCustRetItems
IncomingCustReturnsNetAmount I_SalesDocumentItemAnalytics IncomingCustReturnsNetAmount
IncomingCustReturnsQuantity I_SalesDocumentItemAnalytics IncomingCustReturnsQuantity
SDProcessStatus
_SDProcessStatus I_SalesDocumentItemAnalytics _SDProcessStatus
OrderRelatedBillingStatus I_SalesDocumentItemAnalytics OrderRelatedBillingStatus
_OrderRelatedBillingStatus I_SalesDocumentItemAnalytics _OrderRelatedBillingStatus
BillingBlockStatus I_SalesDocumentItemAnalytics BillingBlockStatus
_BillingBlockStatus I_SalesDocumentItemAnalytics _BillingBlockStatus

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_CustomerReturnItemCube.
-- 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_CustomerReturnItemCube AS
SELECT
  cast(SDIA.SalesDocument as vdm_customer_return preserving type) AS CustomerReturn,
  cast(SDIA.SalesDocumentItem as vdm_customer_return_item preserving type) AS CustomerReturnItem,
  cast(SDIA.SalesDocumentType as vdm_customer_return_type preserving type) AS CustomerReturnType,
  SDIA.SalesDocumentItemType AS CustomerReturnItemType,
  SDIA.SalesDocumentItemCategory AS CustomerReturnItemCategory,
  SDIA._ItemCategory AS _ItemCategory,
  SDIA.CreatedByUser AS CreatedByUser,
  SDIA._CreatedByUser AS _CreatedByUser,
  SDIA.CreationDate AS CreationDate,
  SDIA.CreationTime AS CreationTime,
  SDIA.LastChangeDate AS LastChangeDate,
  cast(CalendarDate.CalendarYear as creation_date_year) AS CreationDateYear,
  cast(CalendarDate.YearQuarter as creation_date_year_quarter) AS CreationDateYearQuarter,
  cast(CalendarDate.YearMonth as creation_date_year_month) AS CreationDateYearMonth,
  SDIA.SalesOrganization AS SalesOrganization,
  SDIA._SalesOrganization AS _SalesOrganization,
  SDIA.DistributionChannel AS DistributionChannel,
  SDIA._DistributionChannel AS _DistributionChannel,
  cast(SDIA.OrganizationDivision as organization_division preserving type) AS OrganizationDivision,
  SDIA._OrganizationDivision AS _OrganizationDivision,
  SDIA.Division AS Division,
  SDIA._Division AS _Division,
  SDIA.SalesGroup AS SalesGroup,
  SDIA._SalesGroup AS _SalesGroup,
  SDIA.SalesOffice AS SalesOffice,
  SDIA._SalesOffice AS _SalesOffice,
  SDIA.SoldToParty AS SoldToParty,
  SDIA._SoldToParty AS _SoldToParty,
  SDIA.ShipToParty AS ShipToParty,
  SDIA._ShipToParty AS _ShipToParty,
  SDIA.PayerParty AS PayerParty,
  SDIA._PayerParty AS _PayerParty,
  SDIA.BillToParty AS BillToParty,
  SDIA._BillToParty AS _BillToParty,
  SDIA.SDDocumentReason AS SDDocumentReason,
  SDIA._SDDocumentReason AS _SDDocumentReason,
  SDIA.SalesDocumentItemText AS CustomerReturnItemText,
  SDIA.CustomerPurchaseOrderType AS CustomerPurchaseOrderType,
  SDIA._CustomerPurchaseOrderType AS _CustomerPurchaseOrderType,
  SDIA.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
  SDIA.CustomerPurchaseOrderDate AS CustomerPurchaseOrderDate,
  SDIA.CustomerGroup AS CustomerGroup,
  SDIA._CustomerGroup AS _CustomerGroup,
  SDIA.SalesDocumentRjcnReason AS SalesDocumentRjcnReason,
  SDIA._SalesDocumentRjcnReason AS _SalesDocumentRjcnReason,
  SDIA.ReturnReason AS ReturnReason,
  SDIA._ReturnReason AS _ReturnReason,
  SDIA.ReturnsRefundExtent AS ReturnsRefundExtent,
  SDIA._ReturnsRefundExtent AS _ReturnsRefundExtent,
  SDIA.RetsMgmtProcessingBlock AS RetsMgmtProcessingBlock,
  SDIA._Material AS _Material,
  Product,
  SDIA.MaterialGroup AS MaterialGroup,
  SDIA._MaterialGroup AS _MaterialGroup,
  SDIA.ProductGroup AS ProductGroup,
  SDIA._ProductGroup AS _ProductGroup,
  SDIA.Plant AS Plant,
  SDIA._Plant AS _Plant,
  SDIA.ItemWeightUnit AS ItemWeightUnit,
  SDIA._ItemWeightUnit AS _ItemWeightUnit,
  SDIA.ItemGrossWeight AS ItemGrossWeight,
  SDIA.ItemNetWeight AS ItemNetWeight,
  SDIA.ItemVolumeUnit AS ItemVolumeUnit,
  SDIA._ItemVolumeUnit AS _ItemVolumeUnit,
  SDIA.ItemVolume AS ItemVolume,
  SDIA.MainItemPricingRefProduct AS MainItemPricingRefProduct,
  SDIA.HigherLevelItem AS HigherLevelItem,
  SDIA.BillOfMaterial AS BillOfMaterial,
  SDIA.PropagatePrftbltySgmt2BOM AS PropagatePrftbltySgmt2BOM,
  SDIA.CostDeterminationIsRequired AS CostDeterminationIsRequired,
  SDIA.BillingCompanyCode AS BillingCompanyCode,
  SDIA._BillingCompanyCode AS _BillingCompanyCode,
  SDIA.ItemIsBillingRelevant AS ItemIsBillingRelevant,
  SDIA._ItemIsBillingRelevant AS _ItemIsBillingRelevant,
  cast(SDIA.ItemBillingBlockReason as billing_block_reason_item preserving type) AS ItemBillingBlockReason,
  SDIA._ItemBillingBlockReason AS _ItemBillingBlockReason,
  SDIA.ExchangeRateDate AS ExchangeRateDate,
  SDIA.PriceDetnExchangeRate AS PriceDetnExchangeRate,
  SDIA.NetPriceAmount AS NetPriceAmount,
  SDIA.NetPriceQuantity AS NetPriceQuantity,
  SDIA.NetPriceQuantityUnit AS NetPriceQuantityUnit,
  SDIA._NetPriceQuantityUnit AS _NetPriceQuantityUnit,
  SDIA.StatisticalValueControl AS StatisticalValueControl,
  SDIA._StatisticalValueControl AS _StatisticalValueControl,
  SDIA.TaxAmount AS TaxAmount,
  SDIA.CostAmount AS CostAmount,
  SDIA.Subtotal1Amount AS Subtotal1Amount,
  SDIA.Subtotal2Amount AS Subtotal2Amount,
  SDIA.Subtotal3Amount AS Subtotal3Amount,
  SDIA.Subtotal4Amount AS Subtotal4Amount,
  SDIA.Subtotal5Amount AS Subtotal5Amount,
  SDIA.Subtotal6Amount AS Subtotal6Amount,
  SDIA.CustomerPaymentTerms AS CustomerPaymentTerms,
  SDIA._CustomerPaymentTerms AS _CustomerPaymentTerms,
  SDIA.PaymentMethod AS PaymentMethod,
  SDIA.BusinessArea AS BusinessArea,
  SDIA._BusinessArea AS _BusinessArea,
  SDIA.ShippingPoint AS ShippingPoint,
  SDIA._ShippingPoint AS _ShippingPoint,
  SDIA.ReferenceSDDocumentCategory AS ReferenceSDDocumentCategory,
  SDIA._ReferenceSDDocumentCategory AS _ReferenceSDDocumentCategory,
  SDIA.ReferenceSDDocument AS ReferenceSDDocument,
  SDIA._ReferenceSDDocument AS _ReferenceSDDocument,
  SDIA.ReferenceSDDocumentItem AS ReferenceSDDocumentItem,
  SDIA._ReferenceSDDocumentItem AS _ReferenceSDDocumentItem,
  SDIA.BaseUnit AS BaseUnit,
  SDIA._BaseUnit AS _BaseUnit,
  SDIA.TransactionCurrency AS TransactionCurrency,
  SDIA._TransactionCurrency AS _TransactionCurrency,
  SDIA.NumberOfIncomingCustRetItems AS NumberOfIncomingCustRetItems,
  SDIA.IncomingCustReturnsNetAmount AS IncomingCustReturnsNetAmount,
  SDIA.IncomingCustReturnsQuantity AS IncomingCustReturnsQuantity,
  cast(SDIA.SDProcessStatus as sd_doc_process_status preserving type) AS SDProcessStatus,
  SDIA._SDProcessStatus AS _SDProcessStatus,
  SDIA.OrderRelatedBillingStatus AS OrderRelatedBillingStatus,
  SDIA._OrderRelatedBillingStatus AS _OrderRelatedBillingStatus,
  SDIA.BillingBlockStatus AS BillingBlockStatus,
  SDIA._BillingBlockStatus AS _BillingBlockStatus
FROM I_SalesDocumentItemAnalytics AS SDIA
LEFT OUTER JOIN I_CustomerReturn AS _CustomerReturn ON CustomerReturn = _CustomerReturn.CustomerReturn  -- association [1..1]
LEFT OUTER JOIN I_CustomerReturnType AS _CustomerReturnType ON CustomerReturnType = _CustomerReturnType.CustomerReturnType  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _Extension ON SDIA.SalesDocument = _Extension.SalesDocument AND SDIA.SalesDocumentItem = _Extension.SalesDocumentItem  -- association [0..1]
;