P_CustRetProcFlow13

DDL: P_CUSTRETPROCFLOW13 SQL: PCSTRETPRCF13 Type: view CONSUMPTION

P_CustRetProcFlow13 is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_AdvncdRetsMgmtProcExecuted, P_CustRetProcFlow0) and exposes 12 fields with key fields Level1Document, Level1DocumentItem.

Data Sources (2)

SourceAliasJoin Type
I_AdvncdRetsMgmtProcExecuted ARMProcessExcuted inner
P_CustRetProcFlow0 Level0 from

Annotations (7)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PCSTRETPRCF13 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY Level1Document I_AdvncdRetsMgmtProcExecuted ReturnsDocument Document Number
KEY Level1DocumentItem
Level1DocumentCategory I_AdvncdRetsMgmtProcExecuted ReturnsDocumentType VAT Document Type
CustomerReturn P_CustRetProcFlow0 CustomerReturn SD Document
CustomerReturnItem I_AdvncdRetsMgmtProcExecuted RetsMgmtProcessItem Task ID
SDDocumentCategory P_CustRetProcFlow0 SDDocumentCategory Document Cat.
CustomerReturnType P_CustRetProcFlow0 CustomerReturnType Sales Doc. Type
RetsMgmtProcessStep I_AdvncdRetsMgmtProcExecuted RetsMgmtProcessStep Step ID
SalesOrganization P_CustRetProcFlow0 SalesOrganization Sales Organization
DistributionChannel P_CustRetProcFlow0 DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision P_CustRetProcFlow0 OrganizationDivision Org. Division
CustRetItmFollowUpActivity ARMProcessChain CustRetItmFollowUpActivity Follow-Up Act.

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 P_CustRetProcFlow13.
-- 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: PCSTRETPRCF13

CREATE VIEW P_CustRetProcFlow13 AS
SELECT
  ARMProcessExcuted.ReturnsDocument AS Level1Document,
  cast( right(ARMProcessExcuted.ReturnsDocumentItem, 6) as posnr_von ) AS Level1DocumentItem,
  ARMProcessExcuted.ReturnsDocumentType AS Level1DocumentCategory,
  Level0.CustomerReturn AS CustomerReturn,
  ARMProcessExcuted.RetsMgmtProcessItem AS CustomerReturnItem,
  Level0.SDDocumentCategory AS SDDocumentCategory,
  Level0.CustomerReturnType AS CustomerReturnType,
  ARMProcessExcuted.RetsMgmtProcessStep AS RetsMgmtProcessStep,
  Level0.SalesOrganization AS SalesOrganization,
  Level0.DistributionChannel AS DistributionChannel,
  Level0.OrganizationDivision AS OrganizationDivision,
  ARMProcessChain.CustRetItmFollowUpActivity AS CustRetItmFollowUpActivity
FROM P_CustRetProcFlow0 AS Level0
INNER JOIN I_AdvncdRetsMgmtProcExecuted AS ARMProcessExcuted ON /* join condition not captured in parsed metadata */
;