P_DGR_Qrep_FillLDCData
P_DGR_Qrep_FillLDCData is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_LoadDataCaptureEventData, P_DGR_Qrep_FillEODTimestamp) and exposes 16 fields with key fields QuantityRepositoryUUID, QuantityRepositoryVersion, SourceDocType.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_LoadDataCaptureEventData | LDCData | left_outer |
| P_DGR_Qrep_FillEODTimestamp | P_DGR_Qrep_FillEODTimestamp | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_DailyGrainReportDate | cds_dgr_date |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PDGRQREPLDCDATA | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | QuantityRepositoryUUID | QuantityRepositoryUUID | ||
| KEY | QuantityRepositoryVersion | QuantityRepositoryVersion | ||
| KEY | SourceDocType | SourceDocType | ||
| GovAnalysisCertCategory | GovAnalysisCertCategory | |||
| LoadDataCaptureEventKey | QRep | LoadDataCaptureEventKey | ||
| QuantityRepositoryCreatedOn | QuantityRepositoryCreatedOn | |||
| QuantityRepositoryChangedOn | QuantityRepositoryChangedOn | |||
| LoadDataCaptureObjectID | LoadDataCaptureObjectID | |||
| ApplicationDocument | ApplicationDocument | |||
| SourceDocument | SourceDocument | |||
| SourceDocumentItem | SourceDocumentItem | |||
| QuantitySign | QuantitySign | |||
| TransactionEventType | TransactionEventType | |||
| EndOfDayTimestamp | EndOfDayTimestamp | |||
| LoadDataCaptureType | I_LoadDataCaptureEventData | LoadDataCaptureType | ||
| LoadDataCaptureEventType |
@AbapCatalog.sqlViewName: 'PDGRQREPLDCDATA'
@AbapCatalog.preserveKey: true
//@EndUserText.label: 'QRep LDC Data'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #D -- View will be consumed for Analytical Reporting
@ObjectModel.usageType.sizeCategory: #XXL -- No. of Records > 100,000
define view P_DGR_Qrep_FillLDCData
with parameters
P_DailyGrainReportDate : cds_dgr_date
as select from P_DGR_Qrep_FillEODTimestamp
(P_DailyGrainReportDate : :P_DailyGrainReportDate) as QRep
left outer join I_LoadDataCaptureEventData as LDCData on QRep.LoadDataCaptureEventKey = LDCData.LDCEventKey
{
key QuantityRepositoryUUID,
key QuantityRepositoryVersion,
key SourceDocType,
GovAnalysisCertCategory,
QRep.LoadDataCaptureEventKey,
QuantityRepositoryCreatedOn,
QuantityRepositoryChangedOn,
LoadDataCaptureObjectID,
ApplicationDocument,
SourceDocument,
SourceDocumentItem,
QuantitySign,
TransactionEventType,
EndOfDayTimestamp,
// LDCData.uis_id as LoadDataCaptureObjectID,
LDCData.LoadDataCaptureType, -- Outgoing(Sales)/Incoming(Purchase)
LDCData.LoadDataCaptureEventType, -- Load/Unload
LDCData.LDCApplInstructionValue -- Application Instruction
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LOADDATACAPTUREEVENTDATA",
"P_DGR_QREP_FILLEODTIMESTAMP"
],
"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