P_JP_ARDocumentHeaderList
P_JP_ARDocumentHeaderList is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_AccountingDocument) and exposes 7 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, Ledger.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_AccountingDocument | Header | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PJPARDOCHD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | SourceLedger | ||
| KEY | CompanyCode | I_GLAccountLineItem | CompanyCode | |
| KEY | FiscalYear | I_GLAccountLineItem | FiscalYear | |
| KEY | AccountingDocument | I_GLAccountLineItem | AccountingDocument | |
| KEY | Ledger | I_GLAccountLineItem | Ledger | |
| Customer | I_GLAccountLineItem | Customer | ||
| AccountingDocumentHeaderText | I_AccountingDocument | AccountingDocumentHeaderText |
@AbapCatalog.sqlViewName: 'PJPARDOCHD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_JP_ARDocumentHeaderList
as select distinct from I_GLAccountLineItem as I_GLAccountLineItem
inner join I_AccountingDocument as Header on I_GLAccountLineItem.CompanyCode = Header.CompanyCode
and I_GLAccountLineItem.FiscalYear = Header.FiscalYear
and I_GLAccountLineItem.AccountingDocument = Header.AccountingDocument
{
key SourceLedger,
key I_GLAccountLineItem.CompanyCode,
key I_GLAccountLineItem.FiscalYear,
key I_GLAccountLineItem.AccountingDocument,
key I_GLAccountLineItem.Ledger,
I_GLAccountLineItem.Customer,
Header.AccountingDocumentHeaderText
}
where
FinancialAccountType = 'D'
and SpecialGLCode = ''
and I_GLAccountLineItem.AccountingDocument <> I_GLAccountLineItem.ClearingAccountingDocument
and ( I_GLAccountLineItem.IsReversed = '' and I_GLAccountLineItem.IsReversal = '' )
and FollowOnDocumentType is initial
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