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
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
SalesOrganization P_CustRetProcFlow0 SalesOrganization
DistributionChannel P_CustRetProcFlow0 DistributionChannel
OrganizationDivision P_CustRetProcFlow0 OrganizationDivision
CustRetItmFollowUpActivity ARMProcessChain CustRetItmFollowUpActivity
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'PCSTRETPRCF13'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #CONSUMPTION

define view P_CustRetProcFlow13
  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,

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

      ARMProcessChain.CustRetItmFollowUpActivity
}
where ARMProcessExcuted.ReturnsDocumentType = '02'                         ---  RPO
  and ARMProcessExcuted.RetsMgmtProcessStep = '0013'                       ---  RPO for direct shipment
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ADVNCDRETSMGMTPROCEXECUTED",
"I_ADVNCDRETURNSMGMTPROCCHAIN",
"P_CUSTRETPROCFLOW0"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/