I_CustRetItmFllwUpActivity
Returns Order Item Follow-up Activity
I_CustRetItmFllwUpActivity is a Basic CDS View that provides data about "Returns Order Item Follow-up Activity" in SAP S/4HANA. It reads from 1 data source (msr_d_executed) and exposes 14 fields with key fields RetsMgmtProcess, ReturnsDocumentItem, ReturnsDocument, RetsMgmtProcessItem. It has 4 associations to related views. Part of development package ODATA_SD_RETURN_V2.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| msr_d_executed | msr_d_executed | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | msr_i_chain | _FollowUp | _FollowUp.chain_id = $projection.CustRetItmChainID |
| [0..1] | /spe/inspecresh | _Inspection | _Inspection.msr_id = $projection.RetsMgmtProcess and _Inspection.ref_doc_item = $projection.ReturnsDocumentItem and _Inspection.ref_doc = $projection.ReturnsDocument |
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_CustomerReturn | _CustomerReturn | $projection.ReturnsDocument = _CustomerReturn.CustomerReturn |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | ICUSRETFLWUP | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Returns Order Item Follow-up Activity | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RetsMgmtProcess | msr_id | Process ID No. | |
| KEY | ReturnsDocumentItem | doc_item | Item Number | |
| KEY | ReturnsDocument | doc_nr | Document Number | |
| KEY | RetsMgmtProcessItem | item | Task ID | |
| CustomerReturnItem | ||||
| InspectionCode | inspection_code | Inspection Code | ||
| Supplier | lifnr | Vendor no. | ||
| AddressID | addrnumber | Address Number | ||
| CustRetItmChainID | chain_id | Process Chain | ||
| CustRetItmFollowUpActivity | _FollowUp | fu_code | Follow-up Code SPM | |
| ProductIsInspectedAtCustSite | _Inspection | at_customer_site | Insp. at Cust. | |
| ProductInspectionID | _Inspection | inspec_no | Inspection Number | |
| _Supplier | _Supplier | |||
| _CustomerReturn | _CustomerReturn |
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_CustRetItmFllwUpActivity.
-- 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.
-- SQL view name: ICUSRETFLWUP
CREATE VIEW I_CustRetItmFllwUpActivity AS
SELECT
msr_id AS RetsMgmtProcess,
doc_item AS ReturnsDocumentItem,
doc_nr AS ReturnsDocument,
item AS RetsMgmtProcessItem,
cast( right(doc_item, 6) as vdm_customer_return_item ) AS CustomerReturnItem,
inspection_code AS InspectionCode,
lifnr AS Supplier,
addrnumber AS AddressID,
chain_id AS CustRetItmChainID,
_FollowUp.fu_code AS CustRetItmFollowUpActivity,
_Inspection.at_customer_site AS ProductIsInspectedAtCustSite,
_Inspection.inspec_no AS ProductInspectionID
FROM msr_d_executed
LEFT OUTER JOIN msr_i_chain AS _FollowUp ON _FollowUp.chain_id = CustRetItmChainID -- association [0..1]
LEFT OUTER JOIN /spe/inspecresh AS _Inspection ON _Inspection.msr_id = RetsMgmtProcess AND _Inspection.ref_doc_item = ReturnsDocumentItem AND _Inspection.ref_doc = ReturnsDocument -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [1..1]
LEFT OUTER JOIN I_CustomerReturn AS _CustomerReturn ON ReturnsDocument = _CustomerReturn.CustomerReturn -- 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