P_CustRetProcFlow22
Customer Return Process Flow: Level +2 Inspection
P_CustRetProcFlow22 is a Consumption CDS View that provides data about "Customer Return Process Flow: Level +2 Inspection" in SAP S/4HANA. It reads from 2 data sources (P_CustRetProcFlow05, P_CustRetProcFlow10) and exposes 12 fields with key fields Level2Document, Level2DocumentItem, Level1Document, Level1DocumentItem. Part of development package ODATA_SD_CRET_PROCESSFLOW.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_CustRetProcFlow05 | InspectionDoc | inner |
| P_CustRetProcFlow10 | Level1 | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PCUSTRETPROCF22 | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Level2Document | |||
| KEY | Level2DocumentItem | P_CustRetProcFlow05 | Level1DocumentItem | |
| KEY | Level1Document | P_CustRetProcFlow10 | Level1Document | |
| KEY | Level1DocumentItem | P_CustRetProcFlow10 | Level1DocumentItem | |
| CustomerReturn | P_CustRetProcFlow10 | CustomerReturn | ||
| CustomerReturnType | P_CustRetProcFlow10 | CustomerReturnType | ||
| Level2DocumentCategory | P_CustRetProcFlow05 | Level1DocumentCategory | ||
| Level1DocumentCategory | P_CustRetProcFlow10 | Level1DocumentCategory | ||
| SalesOrganization | P_CustRetProcFlow10 | SalesOrganization | ||
| DistributionChannel | P_CustRetProcFlow10 | DistributionChannel | ||
| OrganizationDivision | P_CustRetProcFlow10 | OrganizationDivision | ||
| BillingDocumentIsRequired |
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.sqlViewName: 'PCUSTRETPROCF22'
define view P_CustRetProcFlow22
as select from P_CustRetProcFlow10 as Level1
inner join P_CustRetProcFlow05 as InspectionDoc on InspectionDoc.CustomerReturn = Level1.CustomerReturn
and InspectionDoc.Level1DocumentItem = Level1.PrecedingDocumentItem
{
//Key
key cast(InspectionDoc.Level1Document as preced_doc) as Level2Document,
key InspectionDoc.Level1DocumentItem as Level2DocumentItem,
key Level1.Level1Document,
key Level1.Level1DocumentItem,
//Customer Return
Level1.CustomerReturn,
//Category
Level1.CustomerReturnType,
InspectionDoc.Level1DocumentCategory as Level2DocumentCategory,
Level1.Level1DocumentCategory,
//Organization
Level1.SalesOrganization,
Level1.DistributionChannel,
Level1.OrganizationDivision,
//Relevance for planned subsequent processing
'' as BillingDocumentIsRequired
}
where
Level1.Level1DocumentCategory = 'T'
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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