P_JournalItemCFinDocHist
SAFT Journal Item CFin Doc History
P_JournalItemCFinDocHist is a Composite CDS View that provides data about "SAFT Journal Item CFin Doc History" in SAP S/4HANA. It reads from 1 data source (I_SAFTJournalLineItem) and exposes 7 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem, Ledger. Part of development package ID-FI-SAFT_DEPREC.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SAFTJournalLineItem | JournalLineItem | from |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PJICFINDOCHIST | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | NoSuccessor | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_SAFTJournalLineItem | CompanyCode | |
| KEY | FiscalYear | I_SAFTJournalLineItem | FiscalYear | |
| KEY | AccountingDocument | I_SAFTJournalLineItem | AccountingDocument | |
| KEY | LedgerGLLineItem | I_SAFTJournalLineItem | LedgerGLLineItem | |
| KEY | Ledger | I_SAFTJournalLineItem | Ledger | |
| PostingDate | I_SAFTJournalLineItem | PostingDate | ||
| CFinPurchasingDocumentItem |
@AbapCatalog.sqlViewName: 'PJICFINDOCHIST'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #P
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking : #NOT_REQUIRED
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'NoSuccessor'
define view P_JournalItemCFinDocHist
as select from I_SAFTJournalLineItem as JournalLineItem
left outer to many join I_CFinPurchasingDocHistory as CFinPurchasingDocHistory on JournalLineItem.ReferenceDocument = CFinPurchasingDocHistory.CFinMaterialDocument
and JournalLineItem.LogicalSystem = CFinPurchasingDocHistory.SenderLogicalSystem
{
key JournalLineItem.CompanyCode as CompanyCode,
key JournalLineItem.FiscalYear as FiscalYear,
key JournalLineItem.AccountingDocument as AccountingDocument,
key JournalLineItem.LedgerGLLineItem as LedgerGLLineItem,
key JournalLineItem.Ledger as Ledger,
JournalLineItem.PostingDate,
max(CFinPurchasingDocHistory.CFinPurchasingDocumentItem) as CFinPurchasingDocumentItem,
case
when JournalLineItem.CentralFinanceSalesDocument is not initial
then JournalLineItem.CentralFinanceSalesDocument
when CFinPurchasingDocHistory.CFinPurchasingDocument is not null
and CFinPurchasingDocHistory.CFinPurchasingDocument is not initial
then CFinPurchasingDocHistory.CFinPurchasingDocument
else ''
end as OrderDocument //orderRef
}
where
JournalLineItem.ReferenceDocumentType = 'RMRP'
or JournalLineItem.ReferenceDocumentType = 'CF3PM'
group by
JournalLineItem.CompanyCode,
JournalLineItem.FiscalYear,
JournalLineItem.AccountingDocument,
JournalLineItem.LedgerGLLineItem,
JournalLineItem.Ledger,
JournalLineItem.PostingDate,
CFinPurchasingDocHistory.CFinPurchasingDocument,
JournalLineItem.CentralFinanceSalesDocument
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