P_PostedParkedJournalEntry

DDL: P_POSTEDPARKEDJOURNALENTRY SQL: PFIPOSTPARKJE Type: view COMPOSITE

P_PostedParkedJournalEntry is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_JournalEntry, I_ParkedAccountingDocument) and exposes 85 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocument, FiscalYear.

Data Sources (2)

SourceAliasJoin Type
I_JournalEntry I_JournalEntry from
I_ParkedAccountingDocument I_ParkedAccountingDocument union_all

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PFIPOSTPARKJE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.representativeKey AccountingDocument view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view

Fields (85)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntry CompanyCode
KEY AccountingDocument I_JournalEntry AccountingDocument
KEY FiscalYear I_JournalEntry FiscalYear
AccountingDocCreatedByUser I_JournalEntry AccountingDocCreatedByUser
AccountingDocumentCategory I_JournalEntry AccountingDocumentCategory
AccountingDocumentClass I_JournalEntry AccountingDocumentClass
AccountingDocumentCreationDate I_JournalEntry AccountingDocumentCreationDate
AccountingDocumentHeaderText I_JournalEntry AccountingDocumentHeaderText
AccountingDocumentType I_JournalEntry AccountingDocumentType
AdditionalCurrency1 I_JournalEntry AdditionalCurrency1
AdditionalCurrency2 I_JournalEntry AdditionalCurrency2
AlternativeReferenceDocument I_JournalEntry AlternativeReferenceDocument
Branch I_JournalEntry Branch
BusinessTransactionType I_JournalEntry BusinessTransactionType
CompanyCodeCurrency I_JournalEntry CompanyCodeCurrency
CreationTime I_JournalEntry CreationTime
DocumentDate I_JournalEntry DocumentDate
DocumentReferenceID I_JournalEntry DocumentReferenceID
ExchangeRate I_JournalEntry ExchangeRate
ExchangeRateDate I_JournalEntry ExchangeRateDate
ExchangeRateType I_JournalEntry ExchangeRateType
FinancialManagementArea I_JournalEntry FinancialManagementArea
FiscalPeriod I_JournalEntry FiscalPeriod
IntercompanyTransaction I_JournalEntry IntercompanyTransaction
InvoiceReceiptDate I_JournalEntry InvoiceReceiptDate
IsReversal I_JournalEntry IsReversal
IsReversed I_JournalEntry IsReversed
LastChangeDate I_JournalEntry LastChangeDate
LedgerGroup I_JournalEntry LedgerGroup
OriginalReferenceDocument I_JournalEntry OriginalReferenceDocument
PostingDate I_JournalEntry PostingDate
Reference1InDocumentHeader I_JournalEntry Reference1InDocumentHeader
Reference2InDocumentHeader I_JournalEntry Reference2InDocumentHeader
ReferenceDocumentLogicalSystem I_JournalEntry LogicalSystem
ReferenceDocumentType I_JournalEntry ReferenceDocumentType
ReversalReason I_JournalEntry ReversalReason
ReverseDocument I_JournalEntry ReverseDocument
ReverseDocumentFiscalYear I_JournalEntry ReverseDocumentFiscalYear
TaxExchangeRate I_JournalEntry TaxExchangeRate
TaxIsCalculatedAutomatically I_JournalEntry TaxIsCalculatedAutomatically
TaxReportingDate I_JournalEntry TaxReportingDate
TransactionCode I_JournalEntry TransactionCode
CompanyCode
KEY AccountingDocument I_ParkedAccountingDocument AccountingDocument
KEY FiscalYear I_ParkedAccountingDocument FiscalYear
AccountingDocCreatedByUser I_ParkedAccountingDocument AccountingDocCreatedByUser
AccountingDocumentCategory I_ParkedAccountingDocument AccountingDocumentCategory
AccountingDocumentClass
AccountingDocumentCreationDate I_ParkedAccountingDocument AccountingDocumentCreationDate
AccountingDocumentHeaderText I_ParkedAccountingDocument AccountingDocumentHeaderText
AccountingDocumentType I_ParkedAccountingDocument AccountingDocumentType
AdditionalCurrency1 I_ParkedAccountingDocument AdditionalCurrency1
AdditionalCurrency2 I_ParkedAccountingDocument AdditionalCurrency2
AlternativeReferenceDocument
Branch I_ParkedAccountingDocument Branch
BusinessTransactionType
CompanyCodeCurrency I_ParkedAccountingDocument CompanyCodeCurrency
CreationTime I_ParkedAccountingDocument CreationTime
DocumentDate I_ParkedAccountingDocument DocumentDate
DocumentReferenceID I_ParkedAccountingDocument DocumentReferenceID
ExchangeRate I_ParkedAccountingDocument ExchangeRate
ExchangeRateDate I_ParkedAccountingDocument ExchangeRateDate
ExchangeRateType
FinancialManagementArea I_ParkedAccountingDocument FinancialManagementArea
FiscalPeriod I_ParkedAccountingDocument FiscalPeriod
IntercompanyTransaction I_ParkedAccountingDocument IntercompanyTransaction
InvoiceReceiptDate I_ParkedAccountingDocument InvoiceReceiptDate
IsReversal
IsReversed
LastChangeDate I_ParkedAccountingDocument LastChangeDate
LedgerGroup I_ParkedAccountingDocument LedgerGroup
OriginalReferenceDocument I_ParkedAccountingDocument OriginalReferenceDocument
PostingDate I_ParkedAccountingDocument PostingDate
Reference1InDocumentHeader
Reference2InDocumentHeader
ReferenceDocumentLogicalSystem I_ParkedAccountingDocument ReferenceDocumentLogicalSystem
ReferenceDocumentType I_ParkedAccountingDocument ReferenceDocumentType
ReversalReason
ReverseDocument
ReverseDocumentFiscalYear
TaxExchangeRate I_ParkedAccountingDocument TaxExchangeRate
TaxIsCalculatedAutomatically I_ParkedAccountingDocument TaxIsCalculatedAutomatically
TaxReportingDate I_ParkedAccountingDocument TaxReportingDate
TransactionCode I_ParkedAccountingDocument TransactionCode
TransactionCurrency I_ParkedAccountingDocument Currency
@AbapCatalog.sqlViewName: 'PFIPOSTPARKJE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@ObjectModel.representativeKey: 'AccountingDocument'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.buffering.status: #NOT_ALLOWED
@Metadata.ignorePropagatedAnnotations: true 
@VDM.private:true

define view P_PostedParkedJournalEntry as select from I_JournalEntry {

key I_JournalEntry.CompanyCode, 
key I_JournalEntry.AccountingDocument, 
key I_JournalEntry.FiscalYear, 

    I_JournalEntry.AccountingDocCreatedByUser, 
    I_JournalEntry.AccountingDocumentCategory, 
    I_JournalEntry.AccountingDocumentClass, 
    I_JournalEntry.AccountingDocumentCreationDate, 
    I_JournalEntry.AccountingDocumentHeaderText, 
    I_JournalEntry.AccountingDocumentType, 
    I_JournalEntry.AdditionalCurrency1, 
    I_JournalEntry.AdditionalCurrency2, 
    I_JournalEntry.AlternativeReferenceDocument, 
//    I_JournalEntry.BatchInputSession, 

    I_JournalEntry.Branch, 
    I_JournalEntry.BusinessTransactionType, 
    I_JournalEntry.CompanyCodeCurrency, 
    I_JournalEntry.CreationTime, 
    I_JournalEntry.DocumentDate, 
    I_JournalEntry.DocumentReferenceID, 
    I_JournalEntry.ExchangeRate, 
    I_JournalEntry.ExchangeRateDate, 
    I_JournalEntry.ExchangeRateType, 
    I_JournalEntry.FinancialManagementArea, 
    I_JournalEntry.FiscalPeriod, 
    I_JournalEntry.IntercompanyTransaction, 
    I_JournalEntry.InvoiceReceiptDate, 
//    I_JournalEntry.IsDiscountDocument, 

    I_JournalEntry.IsReversal, 
    I_JournalEntry.IsReversed, 
    I_JournalEntry.LastChangeDate, 
//    I_JournalEntry.LatePaymentReason, 

//    I_JournalEntry.Ledger, 

    I_JournalEntry.LedgerGroup, 

//    I_JournalEntry.NmbrOfPages, 

    I_JournalEntry.OriginalReferenceDocument, 
//    I_JournalEntry.PlannedReversalDate, 

    I_JournalEntry.PostingDate, 
//    I_JournalEntry.RecurringAccountingDocument, 

    I_JournalEntry.Reference1InDocumentHeader, 
    I_JournalEntry.Reference2InDocumentHeader, 
    I_JournalEntry.LogicalSystem as ReferenceDocumentLogicalSystem, 
    I_JournalEntry.ReferenceDocumentType, 
//    I_JournalEntry.ReversalIsPlanned, 

    I_JournalEntry.ReversalReason, 
    I_JournalEntry.ReverseDocument, 
    I_JournalEntry.ReverseDocumentFiscalYear, 
//    I_JournalEntry.SalesDocumentCondition, 

//    I_JournalEntry.SenderAccountingDocument, 

//    I_JournalEntry.SenderCompanyCode, 

//    I_JournalEntry.SenderFiscalYear, 

//    I_JournalEntry.SenderLogicalSystem, 

//    I_JournalEntry.SourceCompanyCode, 

//    I_JournalEntry.TaxBaseAmountIsNetAmount, 

    I_JournalEntry.TaxExchangeRate, 
    I_JournalEntry.TaxIsCalculatedAutomatically, 
    I_JournalEntry.TaxReportingDate, 
    I_JournalEntry.TransactionCode, 
    I_JournalEntry.TransactionCurrency  
    
}

union all
select from I_ParkedAccountingDocument

{
key I_ParkedAccountingDocument.CompanyCode, 
key I_ParkedAccountingDocument.AccountingDocument, 
key I_ParkedAccountingDocument.FiscalYear, 

I_ParkedAccountingDocument.AccountingDocCreatedByUser, 
I_ParkedAccountingDocument.AccountingDocumentCategory, 
cast( '' as fis_accdoc_class ) as AccountingDocumentClass,
I_ParkedAccountingDocument.AccountingDocumentCreationDate,
I_ParkedAccountingDocument.AccountingDocumentHeaderText,
I_ParkedAccountingDocument.AccountingDocumentType,
I_ParkedAccountingDocument.AdditionalCurrency1, 
I_ParkedAccountingDocument.AdditionalCurrency2, 
cast ( '' as fis_xblnr_alt ) as AlternativeReferenceDocument,
I_ParkedAccountingDocument.Branch, 
cast( '' as fins_bttype ) as BusinessTransactionType,
I_ParkedAccountingDocument.CompanyCodeCurrency, 
I_ParkedAccountingDocument.CreationTime, 
 
I_ParkedAccountingDocument.DocumentDate, 
I_ParkedAccountingDocument.DocumentReferenceID, 
I_ParkedAccountingDocument.ExchangeRate, 
I_ParkedAccountingDocument.ExchangeRateDate,
cast( '' as kurst ) as ExchangeRateType, 
I_ParkedAccountingDocument.FinancialManagementArea, 
I_ParkedAccountingDocument.FiscalPeriod, 
I_ParkedAccountingDocument.IntercompanyTransaction, 
I_ParkedAccountingDocument.InvoiceReceiptDate, 
cast( '' as fins_xreversing ) as IsReversal,
cast( '' as fins_xreversed ) as IsReversed,
I_ParkedAccountingDocument.LastChangeDate, 
I_ParkedAccountingDocument.LedgerGroup, 
I_ParkedAccountingDocument.OriginalReferenceDocument, 
//I_ParkedAccountingDocument.PartnerCompany, 

I_ParkedAccountingDocument.PostingDate, 
cast( '' as fins_xref1_hd ) as Reference1InDocumentHeader, 
cast( '' as fins_xref1_hd ) as Reference2InDocumentHeader,
I_ParkedAccountingDocument.ReferenceDocumentLogicalSystem, 
I_ParkedAccountingDocument.ReferenceDocumentType, 
cast( '' as stgrd ) as ReversalReason,
cast( '' as fis_stblg ) as ReverseDocument, 
cast( '' as fis_stjah_no_conv ) as ReverseDocumentFiscalYear,
//I_ParkedAccountingDocument.SourceCompanyCode, 

I_ParkedAccountingDocument.TaxExchangeRate, 
I_ParkedAccountingDocument.TaxIsCalculatedAutomatically, 
I_ParkedAccountingDocument.TaxReportingDate, 
I_ParkedAccountingDocument.TransactionCode,
I_ParkedAccountingDocument.Currency as TransactionCurrency

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRY",
"I_PARKEDACCOUNTINGDOCUMENT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/