P_CustRetProcFlow31
P_CustRetProcFlow31 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_AccountingDocument) and exposes 10 fields with key fields Level2Document, AccountingDocument, CustomerReturn.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_AccountingDocument | AccountingDoc | 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 | PCUSTRETPROCF31 | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Level2Document | Level2 | Level2Document | |
| KEY | AccountingDocument | I_AccountingDocument | AccountingDocument | |
| KEY | CustomerReturn | Level2 | CustomerReturn | |
| CompanyCode | I_AccountingDocument | CompanyCode | ||
| FiscalYear | I_AccountingDocument | FiscalYear | ||
| CustomerReturnType | Level2 | CustomerReturnType | ||
| 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: 'PCUSTRETPROCF31'
define view P_CustRetProcFlow31
as select distinct from P_CustRetProcFlow20 as Level2
inner join I_AccountingDocument as AccountingDoc
on Level2.Level2Document = AccountingDoc.OriginalReferenceDocument
and AccountingDoc.ReferenceDocumentType = 'VBRK'
and AccountingDoc.LedgerGroup = ''
{
//Key
key Level2.Level2Document,
key AccountingDoc.AccountingDocument,
//Customer Return
key Level2.CustomerReturn,
//Accounting additional keys
AccountingDoc.CompanyCode,
AccountingDoc.FiscalYear,
//Category
Level2.CustomerReturnType,
Level2.Level2DocumentCategory,
//Organization
Level2.SalesOrganization,
Level2.DistributionChannel,
Level2.OrganizationDivision
}
where Level2.Level2DocumentCategory = 'M' --> Customer Invoice
or Level2.Level2DocumentCategory = 'O' --> Credit Memo
or Level2.Level2DocumentCategory = 'P' --> Debit Memo
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