P_CustRetProcFlow06

DDL: P_CUSTRETPROCFLOW06 SQL: PCSTRETPRCF06 Type: view CONSUMPTION

P_CustRetProcFlow06 is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_AdvncdRetsMgmtProcExecuted, P_CustRetProcFlow0) and exposes 13 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 PCSTRETPRCF06 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY Level1Document I_AdvncdRetsMgmtProcExecuted ReturnsDocument
KEY Level1DocumentItem
Level1DocumentCategory I_AdvncdRetsMgmtProcExecuted ReturnsDocumentType
CustomerReturn P_CustRetProcFlow0 CustomerReturn
CustomerReturnItem I_AdvncdRetsMgmtProcExecuted RetsMgmtProcessItem
SDDocumentCategory P_CustRetProcFlow0 SDDocumentCategory
CustomerReturnType P_CustRetProcFlow0 CustomerReturnType
RetsMgmtProcessStep I_AdvncdRetsMgmtProcExecuted RetsMgmtProcessStep
RetsMgmtProcItmQtySplit I_AdvncdRetsMgmtProcExecuted RetsMgmtProcItmQtySplit
SalesOrganization P_CustRetProcFlow0 SalesOrganization
DistributionChannel P_CustRetProcFlow0 DistributionChannel
OrganizationDivision P_CustRetProcFlow0 OrganizationDivision
CustRetItmFollowUpActivity ARMProcessChain CustRetItmFollowUpActivity
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'PCSTRETPRCF06'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #CONSUMPTION

define view P_CustRetProcFlow06
  as select from           P_CustRetProcFlow0           as Level0
    inner join             I_AdvncdRetsMgmtProcExecuted as ARMProcessExcuted on Level0.RetsMgmtProcess = ARMProcessExcuted.RetsMgmtProcess
    left outer to one join I_AdvncdReturnsMgmtProcChain as ARMProcessChain   on ARMProcessChain.CustRetItmChainID = ARMProcessExcuted.CustRetItmChainID

{
  key ARMProcessExcuted.ReturnsDocument                                    as Level1Document,
  key cast( right(ARMProcessExcuted.ReturnsDocumentItem, 6) as posnr_von ) as Level1DocumentItem,
      ARMProcessExcuted.ReturnsDocumentType                                as Level1DocumentCategory,

      Level0.CustomerReturn,
      ARMProcessExcuted.RetsMgmtProcessItem                                as CustomerReturnItem,
      Level0.SDDocumentCategory,
      Level0.CustomerReturnType,
      ARMProcessExcuted.RetsMgmtProcessStep,
      ARMProcessExcuted.RetsMgmtProcItmQtySplit,

      Level0.SalesOrganization,
      Level0.DistributionChannel,
      Level0.OrganizationDivision,

      ARMProcessChain.CustRetItmFollowUpActivity
}
where
     ARMProcessExcuted.ReturnsDocumentType = '02' --> RPO
  or ARMProcessExcuted.ReturnsDocumentType = '24' --> IHR