P_PE_JrnlEntryWthOfclDocClass

DDL: P_PE_JRNLENTRYWTHOFCLDOCCLASS SQL: PJRNLWDOCCLN Type: view CONSUMPTION Package: GLO_FIN_IS_PE

Journal Entries With Document Class

P_PE_JrnlEntryWthOfclDocClass is a Consumption CDS View that provides data about "Journal Entries With Document Class" in SAP S/4HANA. It reads from 3 data sources (I_CompanyCode, I_DocTypeOfclDocClassAssgmt, I_JournalEntry) and exposes 73 fields with key fields CompanyCode, FiscalYear, AccountingDocument. Part of development package GLO_FIN_IS_PE.

Data Sources (3)

SourceAliasJoin Type
I_CompanyCode CompanyCode inner
I_DocTypeOfclDocClassAssgmt DocTypeOfclDocClassAssgmt left_outer
I_JournalEntry I_JournalEntry from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PJRNLWDOCCLN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Journal Entries With Document Class view

Fields (73)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntry CompanyCode
KEY FiscalYear FiscalYear
KEY AccountingDocument AccountingDocument
ODNDocumentClass ODNDocumentClass
AccountingDocumentType I_JournalEntry AccountingDocumentType
DocumentDate DocumentDate
PostingDate PostingDate
FiscalPeriod FiscalPeriod
AccountingDocumentCreationDate AccountingDocumentCreationDate
CreationTime CreationTime
LastChangeDate LastChangeDate
ExchangeRateDate ExchangeRateDate
AccountingDocCreatedByUser AccountingDocCreatedByUser
TransactionCode TransactionCode
IntercompanyTransaction IntercompanyTransaction
DocumentReferenceID DocumentReferenceID
RecurringAccountingDocument RecurringAccountingDocument
ReverseDocument ReverseDocument
ReverseDocumentFiscalYear ReverseDocumentFiscalYear
AccountingDocumentHeaderText AccountingDocumentHeaderText
TransactionCurrency TransactionCurrency
ExchangeRate ExchangeRate
AccountingDocumentCategory AccountingDocumentCategory
BusinessTransactionType BusinessTransactionType
BatchInputSession BatchInputSession
ReferenceDocumentType ReferenceDocumentType
OriginalReferenceDocument OriginalReferenceDocument
FinancialManagementArea I_JournalEntry FinancialManagementArea
CompanyCodeCurrency CompanyCodeCurrency
AdditionalCurrency1 AdditionalCurrency1
AdditionalCurrency2 AdditionalCurrency2
ReversalIsPlanned ReversalIsPlanned
PlannedReversalDate PlannedReversalDate
TaxIsCalculatedAutomatically TaxIsCalculatedAutomatically
TaxBaseAmountIsNetAmount TaxBaseAmountIsNetAmount
SourceCompanyCode SourceCompanyCode
LogicalSystem LogicalSystem
ReferenceDocumentLogicalSystem ReferenceDocumentLogicalSystem
TaxExchangeRate TaxExchangeRate
ReversalReason ReversalReason
Branch Branch
NmbrOfPages NmbrOfPages
IsDiscountDocument IsDiscountDocument
Reference1InDocumentHeader Reference1InDocumentHeader
Reference2InDocumentHeader Reference2InDocumentHeader
InvoiceReceiptDate InvoiceReceiptDate
Ledger Ledger
LedgerGroup LedgerGroup
TaxReportingDate TaxReportingDate
AccountingDocumentClass AccountingDocumentClass
ExchangeRateType ExchangeRateType
SenderLogicalSystem SenderLogicalSystem
SenderCompanyCode SenderCompanyCode
SenderAccountingDocument SenderAccountingDocument
SenderFiscalYear SenderFiscalYear
ReversalReferenceDocumentCntxt ReversalReferenceDocumentCntxt
ReversalReferenceDocument ReversalReferenceDocument
SalesDocumentCondition SalesDocumentCondition
IsReversal IsReversal
IsReversed IsReversed
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_FiscalPeriod _FiscalPeriod
_AccountingDocumentType _AccountingDocumentType
_TransactionCurrency _TransactionCurrency
_AccountingDocumentCategory _AccountingDocumentCategory
_ReferenceDocumentType _ReferenceDocumentType
_FinancialManagementArea _FinancialManagementArea
_CompanyCodeCurrency _CompanyCodeCurrency
_LogicalSystem _LogicalSystem
_RefDocumentLogicalSystem _RefDocumentLogicalSystem
_Ledger _Ledger
_BusinessTransactionType _BusinessTransactionType
@AbapCatalog.sqlViewName: 'PJRNLWDOCCLN'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.private:true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MIXED
@EndUserText.label: 'Journal Entries With Document Class'

define view P_PE_JrnlEntryWthOfclDocClass 
  as select from    I_JournalEntry

    inner join      I_CompanyCode              as CompanyCode             
      on CompanyCode.CompanyCode = I_JournalEntry.CompanyCode

    left outer join I_DocTypeOfclDocClassAssgmt as DocTypeOfclDocClassAssgmt 
      on  DocTypeOfclDocClassAssgmt.Country                = CompanyCode.Country
      and DocTypeOfclDocClassAssgmt.AccountingDocumentType = I_JournalEntry.AccountingDocumentType

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

  case
    when TaxReportingDate = '00000000' then PostingDate
      else TaxReportingDate
  end as ReportingDate,

  ODNDocumentClass,
  I_JournalEntry.AccountingDocumentType,
  DocumentDate,
  PostingDate,
  FiscalPeriod,
  AccountingDocumentCreationDate,
  CreationTime,
  LastChangeDate,
  ExchangeRateDate,
  AccountingDocCreatedByUser,
  TransactionCode,
  IntercompanyTransaction,
  DocumentReferenceID,
  RecurringAccountingDocument,
  ReverseDocument,
  ReverseDocumentFiscalYear,
  AccountingDocumentHeaderText,
  TransactionCurrency,
  ExchangeRate,
  AccountingDocumentCategory,
  BusinessTransactionType,
  BatchInputSession,
  ReferenceDocumentType,
  OriginalReferenceDocument,
  I_JournalEntry.FinancialManagementArea,
  CompanyCodeCurrency,
  AdditionalCurrency1,
  AdditionalCurrency2,
  ReversalIsPlanned,
  PlannedReversalDate,
  TaxIsCalculatedAutomatically,
  TaxBaseAmountIsNetAmount,
  SourceCompanyCode,
  LogicalSystem,
  ReferenceDocumentLogicalSystem,
  TaxExchangeRate,
  ReversalReason,
  Branch,
  NmbrOfPages,
  IsDiscountDocument,
  Reference1InDocumentHeader,
  Reference2InDocumentHeader,
  InvoiceReceiptDate,
  Ledger,
  LedgerGroup,
  TaxReportingDate,
  AccountingDocumentClass,
  ExchangeRateType,
  SenderLogicalSystem,
  SenderCompanyCode,
  SenderAccountingDocument,
  SenderFiscalYear,
  ReversalReferenceDocumentCntxt,
  ReversalReferenceDocument,
  SalesDocumentCondition,
  IsReversal,
  IsReversed,
  
  _CompanyCode,
  _FiscalYear,
   _FiscalPeriod,
  _AccountingDocumentType,
  _TransactionCurrency,
  _AccountingDocumentCategory,
  _ReferenceDocumentType,
  _FinancialManagementArea,
  _CompanyCodeCurrency,
  _LogicalSystem,
  _RefDocumentLogicalSystem,
  _Ledger, 
  _BusinessTransactionType
}