I_CustRetItmFllwUpActivity

DDL: I_CUSTRETITMFLLWUPACTIVITY SQL: ICUSRETFLWUP Type: view BASIC Package: ODATA_SD_RETURN_V2

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)

SourceAliasJoin Type
msr_d_executed msr_d_executed from

Associations (4)

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

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

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