A_CustomerReturnItem
Returns Order Item
A_CustomerReturnItem is a Composite CDS View that provides data about "Returns Order Item" in SAP S/4HANA. It reads from 1 data source (I_CustomerReturnItemEnhanced) and exposes 110 fields with key fields CustomerReturn, CustomerReturnItem. It has 11 associations to related views. Part of development package ODATA_SD_RETURN_V2.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CustomerReturnItemEnhanced | Item | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SalesDocumentBasic | SalesDocumentBasic | SalesDocumentBasic.SalesDocument = $projection.CustomerReturn |
| [1..1] | A_CustomerReturn | _CustomerReturn | _CustomerReturn.CustomerReturn = $projection.CustomerReturn |
| [0..*] | A_CustomerReturnScheduleLine | _ScheduleLine | _ScheduleLine.CustomerReturn = $projection.CustomerReturn and _ScheduleLine.CustomerReturnItem = $projection.CustomerReturnItem |
| [0..*] | A_CustomerReturnSerialNumber | _SerialNumber | _SerialNumber.CustomerReturn = $projection.CustomerReturn and _SerialNumber.CustomerReturnItem = $projection.CustomerReturnItem |
| [0..*] | A_CustomerReturnItemPartner | _Partner | _Partner.CustomerReturn = $projection.CustomerReturn and _Partner.CustomerReturnItem = $projection.CustomerReturnItem |
| [0..*] | A_CustomerReturnItemText | _Text | _Text.CustomerReturn = $projection.CustomerReturn and _Text.CustomerReturnItem = $projection.CustomerReturnItem |
| [0..*] | A_CustomerReturnItemRelatedObj | _RelatedObject | _RelatedObject.CustomerReturn = $projection.CustomerReturn and _RelatedObject.CustomerReturnItem = $projection.CustomerReturnItem |
| [0..*] | A_CustomerReturnItemPrcgElmnt | _PricingElement | _PricingElement.CustomerReturn = $projection.CustomerReturn and _PricingElement.CustomerReturnItem = $projection.CustomerReturnItem |
| [0..*] | A_CustomerReturnProcessStep | _ProcessStep | _ProcessStep.RetsMgmtProcess = $projection.RetsMgmtProcess and _ProcessStep.RetsMgmtProcessItem = $projection.CustomerReturnItem |
| [0..*] | A_CustomerReturnValAddedSrvc | _ValueAddedService | _ValueAddedService.CustomerReturn = $projection.CustomerReturn and _ValueAddedService.CustomerReturnItem = $projection.CustomerReturnItem |
| [0..1] | E_SalesDocumentItemBasic | _Extension | $projection.CustomerReturn = _Extension.SalesDocument and $projection.CustomerReturnItem = _Extension.SalesDocumentItem |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Returns Order Item | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AbapCatalog.sqlViewName | ACRITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (110)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomerReturn | CustomerReturn | ||
| KEY | CustomerReturnItem | CustomerReturnItem | ||
| HigherLevelItem | HigherLevelItem | Higher-Lev.Item | ||
| CustomerReturnItemCategory | CustomerReturnItemCategory | |||
| CustomerReturnItemText | CustomerReturnItemText | |||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| PurchaseOrderByShipToParty | PurchaseOrderByShipToParty | |||
| CorrespncExternalReference | CorrespncExternalReference | Your Reference | ||
| CorrespncExtRefByShipToParty | CorrespncExtRefByShipToParty | |||
| UnderlyingPurchaseOrderItem | UnderlyingPurchaseOrderItem | PO Item | ||
| UndrlgPurOrdItmByShipToParty | UndrlgPurOrdItmByShipToParty | |||
| CustomerPurchaseOrderType | CustomerPurchaseOrderType | |||
| CustPurOrdTypeByShipToParty | CustPurOrdTypeByShipToParty | |||
| Material | Material | Vehicle Model | ||
| MaterialByCustomer | MaterialByCustomer | Customer Mat. | ||
| RequestedQuantity | RequestedQuantity | Requested Quantity | ||
| RequestedQuantityUnit | RequestedQuantityUnit | Requested Quantity Unit | ||
| ItemGrossWeight | ItemGrossWeight | Gross Weight | ||
| ItemNetWeight | ItemNetWeight | Net Weight | ||
| ItemWeightUnit | ItemWeightUnit | Unit of Weight | ||
| ItemVolume | ItemVolume | Volume | ||
| ItemVolumeUnit | ItemVolumeUnit | Volume Unit | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| NetAmount | NetAmount | Stated Amount | ||
| PricingDate | PricingDate | Pricing Date | ||
| Subtotal1Amount | Subtotal1Amount | Subtotal 1 Amount | ||
| Subtotal2Amount | Subtotal2Amount | Subtotal 2 Amount | ||
| Subtotal3Amount | Subtotal3Amount | Subtotal 3 Amount | ||
| Subtotal4Amount | Subtotal4Amount | Subtotal 4 Amount | ||
| Subtotal5Amount | Subtotal5Amount | Subtotal 5 Amount | ||
| Subtotal6Amount | Subtotal6Amount | Subtotal 6 Amount | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Batch | Batch | Lot No. | ||
| ProductionPlant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| ShippingPoint | ShippingPoint | Shipping Point | ||
| ShippingType | ShippingType | Shipping Type | ||
| DeliveryPriority | DeliveryPriority | Delivery Prior. | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| CustomerPaymentTerms | CustomerPaymentTerms | Pyt Terms | ||
| ProductTaxClassification1 | ProductTaxClassification1 | |||
| ProductTaxClassification2 | ProductTaxClassification2 | |||
| ProductTaxClassification3 | ProductTaxClassification3 | |||
| ProductTaxClassification4 | ProductTaxClassification4 | |||
| ProductTaxClassification5 | ProductTaxClassification5 | |||
| ProductTaxClassification6 | ProductTaxClassification6 | |||
| ProductTaxClassification7 | ProductTaxClassification7 | |||
| ProductTaxClassification8 | ProductTaxClassification8 | |||
| ProductTaxClassification9 | ProductTaxClassification9 | |||
| SalesDocumentRjcnReason | SalesDocumentRjcnReason | RejectionReason | ||
| ItemBillingBlockReason | ItemBillingBlockReason | Billing Block | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| WBSElementExternalID | _WBSElementBasicData_2 | WBSElementExternalID | WBS Element External ID | |
| RetsMgmtProcess | RetsMgmtProcess | |||
| RetsMgmtProcessItem | RetsMgmtProcessItem | |||
| ReturnReason | ReturnReason | Return Reason | ||
| RetsMgmtProcessingBlock | RetsMgmtProcessingBlock | |||
| CustRetItmFollowUpActivity | CustRetItmFollowUpActivity | Follow-Up Act. | ||
| ReturnsMaterialHasBeenReceived | ReturnsMaterialHasBeenReceived | |||
| ReturnsRefundType | ReturnsRefundType | |||
| ReturnsRefundProcgMode | ReturnsRefundProcgMode | |||
| RetsProdValnIsSuspended | ||||
| ReturnsRefundExtent | ReturnsRefundExtent | |||
| PrelimRefundIsDetermined | ||||
| ReturnsRefundRjcnReason | ReturnsRefundRjcnReason | |||
| ReplacementMaterial | ReplacementMaterial | |||
| ReplacementMaterialQuantity | ReplacementMaterialQuantity | |||
| ReplacementMaterialQtyUnit | ReplacementMaterialQtyUnit | |||
| ReplacementMaterialIsRequested | ||||
| ReplacementMatlSupplyingPlant | ReplacementMatlSupplyingPlant | |||
| NextPlantForFollowUpActivity | NextPlantForFollowUpActivity | |||
| ReturnsTransshipmentPlant | ReturnsTransshipmentPlant | |||
| Supplier | Supplier | Supplier | ||
| SupplierRetMatlAuthzn | SupplierRetMatlAuthzn | |||
| SuplrRetMatlAuthznIsRequired | ||||
| CustomerRetMatlInspResultCode | CustomerRetMatlInspResultCode | |||
| NextFllwUpActivityForMatlInsp | NextFllwUpActivityForMatlInsp | |||
| RetMatlInspResultCode | RetMatlInspResultCode | |||
| ProductIsInspectedAtCustSite | ||||
| CustRetMatlAuthzn | CustRetMatlAuthzn | |||
| CRMLogicalSystem | CRMLogicalSystem | |||
| CRMObjectUUID | CRMObjectUUID | |||
| CRMObjectID | CRMObjectID | |||
| CRMObjectType | CRMObjectType | |||
| RetsMgmtItmLogProcgStatus | RetsMgmtItmLogProcgStatus | |||
| RetsMgmtItmCompnProcgStatus | RetsMgmtItmCompnProcgStatus | |||
| RetsMgmtItmProcgStatus | RetsMgmtItmProcgStatus | |||
| ReturnsDocumentStatus | ReturnsDocumentStatus | |||
| ReturnsDocumentApprovalStatus | ReturnsDocumentApprovalStatus | |||
| SDProcessStatus | SDProcessStatus | |||
| ReferenceSDDocument | ReferenceSDDocument | Reference Doc. | ||
| ReferenceSDDocumentItem | ReferenceSDDocumentItem | Reference Item | ||
| ReferenceSDDocumentCategory | ReferenceSDDocumentCategory | Prec.Doc.Categ. | ||
| SDDocumentRejectionStatus | SDDocumentRejectionStatus | |||
| CustomerReturnType | SalesDocumentBasic | SalesDocumentType | Sales Doc. Type | |
| OrganizationDivision | SalesDocumentBasic | OrganizationDivision | Org. Division | |
| SalesOrganization | SalesDocumentBasic | SalesOrganization | Sales Organization | |
| DistributionChannel | SalesDocumentBasic | DistributionChannel | RefDistCh-Cust/Mat. | |
| _CustomerReturn | _CustomerReturn | |||
| _ScheduleLine | _ScheduleLine | |||
| _SerialNumber | _SerialNumber | |||
| _Partner | _Partner | |||
| _Text | _Text | |||
| _RelatedObject | _RelatedObject | |||
| _PricingElement | _PricingElement | |||
| _ProcessStep | _ProcessStep | |||
| _ValueAddedService | _ValueAddedService |
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 A_CustomerReturnItem.
-- 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 A_CustomerReturnItem AS
SELECT
CustomerReturn,
CustomerReturnItem,
HigherLevelItem,
CustomerReturnItemCategory,
CustomerReturnItemText,
PurchaseOrderByCustomer,
PurchaseOrderByShipToParty,
CorrespncExternalReference,
CorrespncExtRefByShipToParty,
UnderlyingPurchaseOrderItem,
UndrlgPurOrdItmByShipToParty,
CustomerPurchaseOrderType,
CustPurOrdTypeByShipToParty,
Material,
MaterialByCustomer,
RequestedQuantity,
RequestedQuantityUnit,
ItemGrossWeight,
ItemNetWeight,
ItemWeightUnit,
ItemVolume,
ItemVolumeUnit,
TransactionCurrency,
NetAmount,
PricingDate,
Subtotal1Amount,
Subtotal2Amount,
Subtotal3Amount,
Subtotal4Amount,
Subtotal5Amount,
Subtotal6Amount,
MaterialGroup,
Batch,
Plant AS ProductionPlant,
StorageLocation,
ShippingPoint,
ShippingType,
DeliveryPriority,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsLocation1,
IncotermsLocation2,
CustomerPaymentTerms,
ProductTaxClassification1,
ProductTaxClassification2,
ProductTaxClassification3,
ProductTaxClassification4,
ProductTaxClassification5,
ProductTaxClassification6,
ProductTaxClassification7,
ProductTaxClassification8,
ProductTaxClassification9,
SalesDocumentRjcnReason,
ItemBillingBlockReason,
ProfitCenter,
_WBSElementBasicData_2.WBSElementExternalID AS WBSElementExternalID,
RetsMgmtProcess,
RetsMgmtProcessItem,
ReturnReason,
RetsMgmtProcessingBlock,
CustRetItmFollowUpActivity,
ReturnsMaterialHasBeenReceived,
ReturnsRefundType,
ReturnsRefundProcgMode,
cast (RetsProdValnIsSuspended as abap.char(1)) AS RetsProdValnIsSuspended,
ReturnsRefundExtent,
cast (PrelimRefundIsDetermined as abap.char(1)) AS PrelimRefundIsDetermined,
ReturnsRefundRjcnReason,
ReplacementMaterial,
ReplacementMaterialQuantity,
ReplacementMaterialQtyUnit,
cast (ReplacementMaterialIsRequested as abap.char(1)) AS ReplacementMaterialIsRequested,
ReplacementMatlSupplyingPlant,
NextPlantForFollowUpActivity,
ReturnsTransshipmentPlant,
Supplier,
SupplierRetMatlAuthzn,
cast (SuplrRetMatlAuthznIsRequired as abap.char(1)) AS SuplrRetMatlAuthznIsRequired,
CustomerRetMatlInspResultCode,
NextFllwUpActivityForMatlInsp,
RetMatlInspResultCode,
cast (ProductIsInspectedAtCustSite as abap.char(1)) AS ProductIsInspectedAtCustSite,
CustRetMatlAuthzn,
CRMLogicalSystem,
CRMObjectUUID,
CRMObjectID,
CRMObjectType,
RetsMgmtItmLogProcgStatus,
RetsMgmtItmCompnProcgStatus,
RetsMgmtItmProcgStatus,
ReturnsDocumentStatus,
ReturnsDocumentApprovalStatus,
SDProcessStatus,
ReferenceSDDocument,
ReferenceSDDocumentItem,
ReferenceSDDocumentCategory,
SDDocumentRejectionStatus,
SalesDocumentBasic.SalesDocumentType AS CustomerReturnType,
SalesDocumentBasic.OrganizationDivision AS OrganizationDivision,
SalesDocumentBasic.SalesOrganization AS SalesOrganization,
SalesDocumentBasic.DistributionChannel AS DistributionChannel
FROM I_CustomerReturnItemEnhanced AS Item
LEFT OUTER JOIN I_SalesDocumentBasic AS SalesDocumentBasic ON SalesDocumentBasic.SalesDocument = CustomerReturn -- association [1..1]
LEFT OUTER JOIN A_CustomerReturn AS _CustomerReturn ON _CustomerReturn.CustomerReturn = CustomerReturn -- association [1..1]
LEFT OUTER JOIN A_CustomerReturnScheduleLine AS _ScheduleLine ON _ScheduleLine.CustomerReturn = CustomerReturn AND _ScheduleLine.CustomerReturnItem = CustomerReturnItem -- association [0..*]
LEFT OUTER JOIN A_CustomerReturnSerialNumber AS _SerialNumber ON _SerialNumber.CustomerReturn = CustomerReturn AND _SerialNumber.CustomerReturnItem = CustomerReturnItem -- association [0..*]
LEFT OUTER JOIN A_CustomerReturnItemPartner AS _Partner ON _Partner.CustomerReturn = CustomerReturn AND _Partner.CustomerReturnItem = CustomerReturnItem -- association [0..*]
LEFT OUTER JOIN A_CustomerReturnItemText AS _Text ON _Text.CustomerReturn = CustomerReturn AND _Text.CustomerReturnItem = CustomerReturnItem -- association [0..*]
LEFT OUTER JOIN A_CustomerReturnItemRelatedObj AS _RelatedObject ON _RelatedObject.CustomerReturn = CustomerReturn AND _RelatedObject.CustomerReturnItem = CustomerReturnItem -- association [0..*]
LEFT OUTER JOIN A_CustomerReturnItemPrcgElmnt AS _PricingElement ON _PricingElement.CustomerReturn = CustomerReturn AND _PricingElement.CustomerReturnItem = CustomerReturnItem -- association [0..*]
LEFT OUTER JOIN A_CustomerReturnProcessStep AS _ProcessStep ON _ProcessStep.RetsMgmtProcess = RetsMgmtProcess AND _ProcessStep.RetsMgmtProcessItem = CustomerReturnItem -- association [0..*]
LEFT OUTER JOIN A_CustomerReturnValAddedSrvc AS _ValueAddedService ON _ValueAddedService.CustomerReturn = CustomerReturn AND _ValueAddedService.CustomerReturnItem = CustomerReturnItem -- association [0..*]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _Extension ON CustomerReturn = _Extension.SalesDocument AND CustomerReturnItem = _Extension.SalesDocumentItem -- association [0..1]
;
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