P_PurOrdSingleScheduleLineHlp3
P_PurOrdSingleScheduleLineHlp3 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_PurgDocScheduleLine, P_PurOrdSingleScheduleLineHlp2) and exposes 2 fields with key fields PurchasingDocument, PurchasingDocumentItem.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PurgDocScheduleLine | I_PurgDocScheduleLine | inner |
| P_PurOrdSingleScheduleLineHlp2 | P_PurOrdSingleScheduleLineHlp2 | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AbapCatalog.sqlViewName | PMMPURORDSSHLP3 | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view |
Fields (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | I_PurgDocScheduleLine | PurchasingDocument | |
| KEY | PurchasingDocumentItem | I_PurgDocScheduleLine | PurchasingDocumentItem |
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #COMPOSITE
@VDM.private: true
@AbapCatalog.sqlViewName: 'PMMPURORDSSHLP3'
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
// Helper view to get only one Schedule line, if there are Schedule lines with the same Delivery Date and Delivery Time
define view P_PurOrdSingleScheduleLineHlp3
as select from P_PurOrdSingleScheduleLineHlp2 as P_PurOrdSingleScheduleLineHlp2
inner join I_PurgDocScheduleLine as I_PurgDocScheduleLine on P_PurOrdSingleScheduleLineHlp2.PurchasingDocument = I_PurgDocScheduleLine.PurchasingDocument
and P_PurOrdSingleScheduleLineHlp2.PurchasingDocumentItem = I_PurgDocScheduleLine.PurchasingDocumentItem
and P_PurOrdSingleScheduleLineHlp2.ScheduleLineDeliveryDate = I_PurgDocScheduleLine.ScheduleLineDeliveryDate
and P_PurOrdSingleScheduleLineHlp2.ScheduleLineDeliveryTime = I_PurgDocScheduleLine.ScheduleLineDeliveryTime
{
key I_PurgDocScheduleLine.PurchasingDocument as PurchasingDocument,
key I_PurgDocScheduleLine.PurchasingDocumentItem,
min( I_PurgDocScheduleLine.ScheduleLine ) as minscheduleline
}
group by
I_PurgDocScheduleLine.PurchasingDocument,
I_PurgDocScheduleLine.PurchasingDocumentItem
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURGDOCSCHEDULELINE",
"P_PURORDSINGLESCHEDULELINEHLP2"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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