P_SlsQtanProcFlowM1
Sales Quotation Process Flow: Level -1 Sales & Distribution
P_SlsQtanProcFlowM1 is a Consumption CDS View that provides data about "Sales Quotation Process Flow: Level -1 Sales & Distribution" in SAP S/4HANA. It reads from 2 data sources (P_SlsQtanProcFlow0, I_SDDocumentProcessFlow) and exposes 7 fields with key fields LevelM1Document, SalesQuotation. Part of development package ODATA_SD_QUT_PROCESSFLOW.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_SlsQtanProcFlow0 | Level0 | from |
| I_SDDocumentProcessFlow | LevelM1 | 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 | PSLSQTANPROCFM1 | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LevelM1Document | PrecedingDocument | ||
| KEY | SalesQuotation | P_SlsQtanProcFlow0 | SalesQuotation | |
| SalesQuotationType | P_SlsQtanProcFlow0 | SalesQuotationType | ||
| SalesQuotationCategory | P_SlsQtanProcFlow0 | SalesQuotationCategory | ||
| SalesOrganization | P_SlsQtanProcFlow0 | SalesOrganization | ||
| DistributionChannel | P_SlsQtanProcFlow0 | DistributionChannel | ||
| OrganizationDivision | P_SlsQtanProcFlow0 | 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: 'PSLSQTANPROCFM1'
define view P_SlsQtanProcFlowM1
as select from P_SlsQtanProcFlow0 as Level0
inner join I_SDDocumentProcessFlow as LevelM1
on Level0.SalesQuotation = LevelM1.SubsequentDocument
and( LevelM1.PrecedingDocumentCategory = 'A' --> Inquiry
or LevelM1.PrecedingDocumentCategory = 'B' --> Quotation
or LevelM1.PrecedingDocumentCategory = 'C' --> Order
or LevelM1.PrecedingDocumentCategory = 'I' --> Order w/o Charge
)
{
//Key
key PrecedingDocument as LevelM1Document,
key case
when PrecedingDocumentCategory = 'C'
then 'CREF' --> allow assignmet to 'Reference' lane
when PrecedingDocumentCategory = 'B'
then 'BREF' --> allow assignmet to 'Reference' lane
when PrecedingDocumentCategory = 'I'
then 'IREF' --> allow assignmet to 'Reference' lane
else
PrecedingDocumentCategory
end as LevelM1DocumentCategory,
//SalesQuotation
key Level0.SalesQuotation,
Level0.SalesQuotationType,
Level0.SalesQuotationCategory,
//Organization
Level0.SalesOrganization,
Level0.DistributionChannel,
Level0.OrganizationDivision
}
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