P_CustRetProcFlow30
P_CustRetProcFlow30 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_SDDocumentProcessFlow) and exposes 11 fields with key fields Level3Document, Level3DocumentItem, Level2Document, Level2DocumentItem, CustomerReturn.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SDDocumentProcessFlow | Level3 | inner |
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 | PCUSTRETPROCF30 | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Level3Document | I_SDDocumentProcessFlow | SubsequentDocument | |
| KEY | Level3DocumentItem | I_SDDocumentProcessFlow | SubsequentDocumentItem | |
| KEY | Level2Document | Level2 | Level2Document | |
| KEY | Level2DocumentItem | Level2 | Level2DocumentItem | |
| KEY | CustomerReturn | Level2 | CustomerReturn | |
| CustomerReturnType | Level2 | CustomerReturnType | ||
| Level3DocumentCategory | I_SDDocumentProcessFlow | SubsequentDocumentCategory | ||
| Level2DocumentCategory | Level2 | Level2DocumentCategory | ||
| SalesOrganization | Level2 | SalesOrganization | ||
| DistributionChannel | Level2 | DistributionChannel | ||
| OrganizationDivision | Level2 | OrganizationDivision |
@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: 'PCUSTRETPROCF30'
define view P_CustRetProcFlow30
as select distinct from P_CustRetProcFlow20 as Level2
inner join I_SDDocumentProcessFlow as Level3
on Level2.Level2Document = Level3.PrecedingDocument
and Level2.Level2DocumentCategory = Level3.PrecedingDocumentCategory
and Level2.Level2DocumentItem = Level3.PrecedingDocumentItem
and ( Level3.SubsequentDocumentCategory = 'M' --> Customer Invoice
or Level3.SubsequentDocumentCategory = 'U' ) --> Pro Forma Invoice
{
//Key
key Level3.SubsequentDocument as Level3Document,
key Level3.SubsequentDocumentItem as Level3DocumentItem,
key Level2.Level2Document,
key Level2.Level2DocumentItem,
//Customer Return
key Level2.CustomerReturn,
//Category
Level2.CustomerReturnType,
Level3.SubsequentDocumentCategory as Level3DocumentCategory,
Level2.Level2DocumentCategory,
//Organization
Level2.SalesOrganization,
Level2.DistributionChannel,
Level2.OrganizationDivision
}
where Level2.Level2DocumentCategory = 'J' --> Outbound Delivery
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