I_JOURNALENTRY

CDS View

Journal Entry

I_JOURNALENTRY is a CDS View in S/4HANA. Journal Entry. It contains 94 fields. 185 CDS views read from this table.

CDS Views using this table (185)

ViewTypeJoinVDMDescription
C_AccountingDocument view from CONSUMPTION Accounting Document
C_AR_StRpCashJournalItemCube view_entity inner CONSUMPTION Argentina Cash Journal Item - Cube
C_BSOrdProcFlwJournalEntry view from CONSUMPTION Journal Entry Attrib for BSOrd Prgrs
C_BudgetaryDocumentForObjP view from CONSUMPTION Auxiliary Budgetary Doc Cosumption view for FM Obejct Pages
C_CN_TaxInvcJrnlEntrRef view from CONSUMPTION VAT Invoice Journal Entry Reference
C_CZ_StRpTaxItemWithEUTaxClfnC view left_outer CONSUMPTION EU Sales Tax Item View for Czech Rep.
C_CZ_StRpTxItmWithEUTxClCrrtnC view left_outer CONSUMPTION EU Sales Tax Item View - Correction Run
C_EG_StRpStampTaxItemCube view inner CONSUMPTION Stamp Tax Item Cube for Egypt
C_GB_StRpAuditFinFileC view_entity from CONSUMPTION GB HRMC Audit File for FI - Cube
C_JP_MachineLearningOpenItem view from CONSUMPTION Machine Learning Open Receivable Items
C_JP_MachineLrngClearedARItem view from CONSUMPTION Machine Learning Cleared Receivable Item
C_JrnlEntryCorrespnc view from CONSUMPTION Correspondence SAP09 - Ledger View - Journal Entry
C_MngJrnlEntrReltdJournalEntry view_entity from CONSUMPTION Journal Entry Associated Journal Entry
C_NO_SAFTJournalEntryCube view inner CONSUMPTION SAF-T Norway Journal Entry Cube
C_OplAcctgDocCorrespnc view from CONSUMPTION Correspondence SAP09 - Operational document
C_PaymentBatchPaymentDocument view_entity inner CONSUMPTION Payment Batch Payment Documents
C_PE_StRpJournalEntryWithTax view from CONSUMPTION Peru journal entries with tax
C_PE_StRpNotRptdJournalEntry view_entity from CONSUMPTION Not Reported Journal Entries for Statutory Reporting
C_PT_SAFTGenLedgerHeaderC view_entity from CONSUMPTION General Ledger Document Header - Cube
C_PT_SAFTPaymentDocumentC view_entity from CONSUMPTION Payment Document Header - Cube
C_PT_SAFTPaymentLineC view_entity from CONSUMPTION Payment Lines for SAFT PT - Cube
C_PT_SAFTPaymentOrderRefer view_entity from CONSUMPTION Originating Document of the Payment
C_RO_SAFTPaymentItemC view inner CONSUMPTION Payment Data for RO SAFT - Cube
C_StRpDocLineItemWthRefDoc view left_outer CONSUMPTION Tax Items with Reference Accounting Documents
C_StRpNotRptdJournalEntry view from CONSUMPTION Not Reported Journal Entries
FARMLVD_APAR_ACCDOC view from Cleared Receivable Item Information
FISTRPGSTR1ITEM view inner
FISTRPGSTR1ITEM view left_outer
H_HU_StRpInvoiceChainNode view from Hungary VAT: Definition Of Parent-Child Relationship
I_CFinAAPurchasingItemPosting view_entity inner TRANSACTIONAL CFinAA Purchasing Item Posting
I_CFinAAPurchasingPosting view_entity inner COMPOSITE CFinAA Purchasing Posting
I_EDCJournalEntryRecords view_entity inner BASIC EDC Relevant Journal Entry Records
I_ES_ElectronicDocAccountDoc view_entity inner COMPOSITE Spain SII Header eDocument Consistency
I_GLJrnlEntryToBeVerified view from COMPOSITE Interface View of GL JE to be verified
I_ID_StRpVATReturnOutCube view from COMPOSITE Indonesia VAT Return Out - Cube
I_ID_StRpVATReturnOutCube view union_all COMPOSITE Indonesia VAT Return Out - Cube
I_IL_IncomingPaymentDocument view_entity from COMPOSITE Incoming Payment Document
I_JournalEntryStdVH view from COMPOSITE Journal Entry
I_JournalEntryVH view from COMPOSITE Journal Entry
I_LU_SAFTJournalEntry view from COMPOSITE SAFT LU General Ledger Documents
I_PT_PaytRcptSersDocNumber view_entity from COMPOSITE PT Payment Receipts ATCUD
I_RU_ReverseDocuments view from COMPOSITE Reverse Documents
I_SAFTJournalEntry view from COMPOSITE SAF-T Journal Ledger Entry
I_SAFTJournalHeader view from COMPOSITE SAF-T Journal Header
I_StRpBillingWithRefAcctgDoc view left_outer COMPOSITE Billing Documents With Reference Accounting Document
I_TaxItemProcessFlow view_entity inner COMPOSITE Tax Item Process Flow
I_TxRegIndirectTaxJournalEntry view_entity inner BASIC Indirect Tax with Journal Entry
P_AddlLedgerAcctDocItemHistory view left_outer COMPOSITE
P_AddlLedgerDocHeaderHistory view from COMPOSITE
P_APProcFlowJournalEntry view from CONSUMPTION AP Process Flow Journal Entry
P_AR_DailyVATTaxBaseAmount view inner CONSUMPTION
P_AR_JournalEntry view from CONSUMPTION
P_AR_JournalEntryTaxDetail view from CONSUMPTION Argentina: Journal Entry Tax Detail
P_AR_JournalEntryTaxDetail view left_outer CONSUMPTION Argentina: Journal Entry Tax Detail
P_AR_SuplrPaytSupplierLineItem view_entity from CONSUMPTION
P_AU_StRpPaytTmesRptgPaidInvc0 view from COMPOSITE
P_AU_StRpTPARFullyPaidInvcDoc view from COMPOSITE
P_AU_StRpTPARPrtlyPaidInvcDoc view from COMPOSITE
P_AUDIT_AT_BKPF view inner COMPOSITE
P_AUDIT_AT_BSET view_entity inner COMPOSITE Austrian Audit Journal Tax Data
P_BusSolnOrdEntProjectFlwLvl5 view inner CONSUMPTION Solution Order Enterprise Project Flow: Level5
P_BusSolnOrdSlsOrdFlwLvl41 view inner CONSUMPTION Solution Order Sales Order Flow: Level 41
P_BusSolnOrdSlsOrdFlwLvl51 view inner CONSUMPTION Solution Order Sales Order Flow: Level 51
P_BusSolnOrdSlsOrdFlwLvl61 view inner CONSUMPTION Solution Order Sales Order Flow: Level 61
P_BusSolnOrdSlsOrdFlwLvl7 view inner CONSUMPTION Solution Order Sales Order Flow: Level 7
P_BusSolnOrdSlsOrdFlwLvl8 view inner CONSUMPTION Solution Order Sales Order Flow: Level 8
P_BusSolnOrdSrvcContrFlwLvl51 view inner CONSUMPTION Solution Order Service Contract Level51
P_BusSolnOrdSrvcContrFlwLvl7 view inner CONSUMPTION Solution Order Service Contract Level7
P_BusSolnOrdSrvcContrFlwLvl72 view inner CONSUMPTION Solution Order Service Contract Level 72
P_BusSolnOrdSrvcOrdFlwLvl51 view inner CONSUMPTION Solution Order Service Order Flow: Level 51
P_BUSSOLNORDSUBSCRPNFLWVL4 view inner CONSUMPTION Solution Order Subscription Flow: Level4
P_CL_JournalEntryItemDocAmount view from CONSUMPTION
P_ClearedAccount4 view from CONSUMPTION
P_ClearedItem2 view from CONSUMPTION
P_ClearingDocument view from CONSUMPTION
P_CustomerVendorLineItem view from COMPOSITE
P_CZ_StRpEUTaxClassification view left_outer CONSUMPTION Rptd and NonRptd items for ECSL - Corr.
P_CZ_StRpReportingGroupsSelCr view left_outer CONSUMPTION Rpg. Groups for Doc. Selection - Corr.
P_DaysBeyondTerms1 view inner COMPOSITE
P_DeftaxInvoice view from COMPOSITE
P_DefTaxTransfer1 view from COMPOSITE
P_DefTaxTransfer10 view from COMPOSITE
P_DwnPaytReqDocument view_entity from COMPOSITE DPRS Document Header
P_FR_AuditFECPaymentDocsInCA view inner CONSUMPTION France Audit FEC CA payment documents
P_Hu_FiInvoice view from COMPOSITE
P_JournalEntryHeaderHistory view from COMPOSITE
P_JournalEntryItemHistory view left_outer COMPOSITE
P_JrnlEntrWithRprstvLdgr view from COMPOSITE
P_KZ_DSVATRetDeduct view from COMPOSITE
P_KZ_DSVATRetDoc view from COMPOSITE
P_KZ_DSVATRetForiegnDoc view from COMPOSITE
P_KZ_DSVATRetForiegnDocRenew view from COMPOSITE
P_KZ_DSVATRetInDoc1 view from COMPOSITE
P_KZ_DSVATRetOutDoc1 view from COMPOSITE
P_LU_SAFTJournal view from COMPOSITE
P_ManageJournalEntry view_entity from COMPOSITE Journal Entry
P_MJEJrnlEntrWthRprstvLdgr view_entity from COMPOSITE
P_NO_SAFTCUSTOMERCLOSEITEM view from COMPOSITE
P_NO_SAFTCustomerOpenItem view from COMPOSITE
P_NO_SAFTSUPPLIERCLOSEITEM view from COMPOSITE
P_NO_SAFTSUPPLIEROPENITEM view from COMPOSITE
P_NonMngdPurchasingSpend1 view inner CONSUMPTION Non Managed Spend
P_PayReqnAmount view inner COMPOSITE
P_PE_JrnlEntryWthOfclDocClass view from CONSUMPTION Journal Entries With Document Class
P_PE_OriginalJournalEntry view from CONSUMPTION
P_PE_PurchaseOriginalJrnlEntry view from CONSUMPTION
P_PE_PurDmstcSuplrEntryAggrgd view from CONSUMPTION
P_PE_PurFrgnSuplrTaxItemAggrgd view_entity from CONSUMPTION
P_PE_SalesEntrAggrgd view from CONSUMPTION
P_PE_SalesOriginalJrnlEntry view from CONSUMPTION Original Documents for Sales Ledger Peru
P_PL_SAFTAcctgDocInvoiceBasic view from COMPOSITE
P_PL_SAFTInvoiceHeaderBasic view from COMPOSITE
P_PL_SAFTMapTaxCode view from COMPOSITE
P_PostedParkedJournalEntry view from COMPOSITE
P_PT_SAFTPAYMENTLINE view_entity from COMPOSITE Payment Lines for SAF-T PT
P_RelatedAccountingDocument view_entity from COMPOSITE Related Accounting Documents
P_RO_SAFTDocumentType view inner CONSUMPTION GL Entry Document Type for RO SAFT
P_RO_SAFTPurInvItemAmount view_entity inner CONSUMPTION
P_RO_SAFTSalesInvoiceItem view inner CONSUMPTION
P_RO_SAFTSlsInvoiceItemAmount view_entity inner CONSUMPTION
P_RU_AcctgDocReferenceID view from CONSUMPTION
P_RU_BusPartnerClearingNotRvsd view inner CONSUMPTION
P_RU_CFinPseudoReversedDoc1 view inner CONSUMPTION
P_RU_CFinVATAccDocClassfctn view left_outer CONSUMPTION
P_RU_CFinVATCorrectionDocument view inner CONSUMPTION
P_RU_CFinVatCorrectionRevision view inner CONSUMPTION
P_RU_CFinVatCorRev view inner CONSUMPTION
P_RU_CFinVatCorRev view left_outer CONSUMPTION
P_RU_CFinVatDocExtras view inner CONSUMPTION
P_RU_CFinVatDocExtrasCm view inner COMPOSITE
P_RU_CFinVATRevisionDocument view inner CONSUMPTION
P_RU_CheckLinkToImpNotNum view from CONSUMPTION Check link to ImportNotificationNumber
P_RU_CommissionTradeInvoice10 view_entity from CONSUMPTION
P_RU_CommissionTradeInvoice14 view_entity inner CONSUMPTION
P_RU_DPClearingTotalAmount1 view inner CONSUMPTION
P_RU_DSVATReporting0 view from CONSUMPTION
P_RU_GTDBase1 view from COMPOSITE
P_RU_GTDBase2 view from COMPOSITE
P_RU_GtdFromBillingDoc view inner COMPOSITE
P_RU_GtdFromPOMM7N view from COMPOSITE
P_RU_GtdFromPOMM7N view union_all COMPOSITE
P_RU_GtdFromPOMM8N view from COMPOSITE
P_RU_GtdFromPOMM8N view union_all COMPOSITE
P_RU_JournalEntry view from CONSUMPTION
P_RU_JrnlEntrRvsdNeg view from CONSUMPTION
P_RU_LinkedCommsnTradeInvoice0 view inner CONSUMPTION
P_RU_MaterialRcptDateMMMvtAccD view inner CONSUMPTION
P_RU_MaterialReceiptDate1 view from CONSUMPTION
P_RU_MaterialReceiptDateMM0 view from COMPOSITE
P_RU_MaterialReceiptDateMM8 view from COMPOSITE
P_RU_MaterialReceiptMM view inner COMPOSITE
P_RU_PseudoReversedDocument view inner CONSUMPTION
P_RU_PseudoReversedDocument1 view from CONSUMPTION
P_RU_RealReversedDocument view from CONSUMPTION
P_RU_ReverseDocuments1 view from COMPOSITE
P_RU_SuplrInvcAcctgItem1 view from CONSUMPTION
P_RU_TaxTransferAcctgDoc view from CONSUMPTION
P_RU_VATDocumentExtraInfo1 view from COMPOSITE
P_RU_VATDocumentExtraInfo1 view union_all COMPOSITE
P_RU_VATDocumentExtraInfo1C view from CONSUMPTION
P_RU_VATExtraInfo view from CONSUMPTION
P_RU_VATExtraInfo view left_outer CONSUMPTION
P_RU_VATInvcJrnlLinkIncgInvc view inner CONSUMPTION
P_RU_VATInvcJrnlLinkOutgInvc view from CONSUMPTION
P_RU_VATInvoiceClearingDP view inner CONSUMPTION
P_RU_VATInvoiceClearingPR view inner CONSUMPTION
P_RU_VATOriginalDocument1 view from CONSUMPTION
P_RU_VATOriginalDocument1 view inner CONSUMPTION
P_RU_VATOriginalDocument1Jrnl view from CONSUMPTION
P_RU_VATReportingRNPT1 view inner CONSUMPTION
P_RU_VATReturnGeneralSection3 view inner CONSUMPTION
P_RU_VATTrdClassfctnNmbr1 view inner CONSUMPTION
P_SK_CustRefDocNumVH view inner COMPOSITE
P_SK_StRpVATCSClearingInfo view inner COMPOSITE
P_SK_VATLedgerClearingInfo view_entity inner COMPOSITE
P_SK_VendRefDocNumVH view inner COMPOSITE
P_StRpBillingDocumentItem view inner COMPOSITE
P_StRpSalesInvoiceItem view inner CONSUMPTION Private View for Sales Invoice List
P_StRpSupplierInvoiceItem view inner COMPOSITE
P_TxDocStRpActy0 view from COMPOSITE
P_VE_StRpBPTaxItem view_entity inner COMPOSITE
P_VE_StRpReverseSDDocument view_entity inner COMPOSITE Venezuela StRp Reverse SD Document
R_ES_EDCSalesInvoiceSIITaxItem view_entity inner COMPOSITE Spain SII Customer Inv TaxLines
R_ES_EDCSuplrInvcSIITaxLine view_entity inner COMPOSITE Spain Supplier Invoice Tax lines
R_JournalEntryTP view_entity from TRANSACTIONAL Journal Entry Transaction Processing

Fields (94)

KeyField CDS FieldsUsed in Views
KEY AccountingDocument AccountingDocument,belnr,ClearingAccountingDocument,Invoice,OriginalAccountingDocument,OriginalDocument,PaymentDocument,ReversalDocument,RevisionInvoice,SrcDocNmbrForOriginalDocument,SubsequentDocument 96
KEY AccountingDocumentType AccountingDocumentType,blart,JournalEntryType,OriginalDocumentType,ReversalDocumentType 44
KEY BusinessTransactionType BusinessTransactionType 8
KEY CompanyCode bukrs,CompanyCode 80
KEY FiscalYear ClearingFiscalYear,FiscalYear,gjahr,InvoiceYear,OriginalDocumentYear,OriginalFiscalYear,ReversalDocumentFiscalYear,RevisionInvoiceYear,SrcDocYearForOriginalDocument 84
KEY Ledger Ledger 9
KEY ReferenceDocumentLogicalSystem ReferenceDocumentLogicalSystem 5
_AccountingDocumentCategory _AccountingDocumentCategory 4
_AccountingDocumentType _AccountingDocumentType 11
_AccountingDocumentTypeText _AccountingDocumentTypeText 2
_CompanyCode _CompanyCode 12
_CompanyCodeCurrency _CompanyCodeCurrency 3
_FiscalPeriod _FiscalPeriod 4
_FiscalYear _FiscalYear 10
_OperationalAcctgDocItem _OperationalAcctgDocItem 1
_RefDocumentLogicalSystem _RefDocumentLogicalSystem 1
_ReferenceDocumentType _ReferenceDocumentType 2
_TransactionCurrency _TransactionCurrency 3
AbsoluteExchangeRate AbsoluteExchangeRate,ExchangeRate,kursf 4
AccountingDocCreatedByUser AccountingDocCreatedByUser,CreatedByUser 11
AccountingDocumentCategory AccountingDocumentCategory,bstat 15
AccountingDocumentClass AccountingDocumentClass 4
AccountingDocumentCreationDate AccountingDocumentCreationDate 9
AccountingDocumentHeaderText AccountingDocumentHeaderText,ltext 17
AdditionalCurrency1 AdditionalCurrency1 5
AdditionalCurrency1Role AdditionalCurrency1Role 1
AdditionalCurrency2 AdditionalCurrency2 5
AdditionalCurrency2Role AdditionalCurrency2Role 1
AlternativeReferenceDocument AlternativeReferenceDocument 4
Branch Branch 4
CompanyCodeCurrency CompanyCodeCurrency 22
CreationTime CreationTime 5
CtryCrcyTxAbsoluteExchangeRate CtryCrcyTxAbsoluteExchangeRate 1
DocumentDate bldat,DefaultExternalInvoiceDate,DocumentDate,InvoiceDocumentDate,TransactionDate 47
DocumentReferenceID DocumentReferenceID,Invoice,invxblnr,ReversalDocumentReferenceID,xblnr 33
ExchangeRate ExchangeRate 7
ExchangeRateDate ExchangeRateDate 3
ExchangeRateType ExchangeRateType 3
FinancialManagementArea FinancialManagementArea 2
FiscalPeriod FiscalPeriod 15
IntercompanyTransaction IntercompanyTransaction 5
InvoiceReceiptDate InvoiceReceiptDate 2
IsDiscountDocument IsDiscountDocument 1
IsReversal IsReversal,OriginalDocumentIsReversal,ReversalDocumentIsReversal 19
IsReversed IsReversed,OriginalDocumentIsReversed,ReversalDocumentIsReversed 19
JournalEntryLastChangeDateTime JournalEntryLastChangeDateTime 1
JrnlEntryCntrySpecificBP1 JrnlEntryCntrySpecificBP1 4
JrnlEntryCntrySpecificBP2 JrnlEntryCntrySpecificBP2 4
JrnlEntryCntrySpecificDate1 JrnlEntryCntrySpecificDate1 4
JrnlEntryCntrySpecificDate2 JrnlEntryCntrySpecificDate2 4
JrnlEntryCntrySpecificDate3 JrnlEntryCntrySpecificDate3 4
JrnlEntryCntrySpecificDate4 InvoiceDate,JrnlEntryCntrySpecificDate4 5
JrnlEntryCntrySpecificDate5 JrnlEntryCntrySpecificDate5 4
JrnlEntryCntrySpecificRef1 JrnlEntryCntrySpecificRef1 6
JrnlEntryCntrySpecificRef2 JrnlEntryCntrySpecificRef2 5
JrnlEntryCntrySpecificRef3 JrnlEntryCntrySpecificRef3 4
JrnlEntryCntrySpecificRef4 JrnlEntryCntrySpecificRef4 4
JrnlEntryCntrySpecificRef5 JrnlEntryCntrySpecificRef5 4
LastAutomaticChangeDate LastAutomaticChangeDate 1
LastChangeDate LastChangeDate 1
LastManualChangeDate LastManualChangeDate 2
LedgerGroup LedgerGroup 9
LogicalSystem LogicalSystem,ReferenceDocumentLogicalSystem 4
MarketDataAbsoluteExchangeRate MarketDataAbsoluteExchangeRate 1
NmbrOfPages NmbrOfPages 1
OriginalReferenceDocument ObjectKey,OriginalReferenceDocument 18
ParkedByUser ParkedByUser 1
ParkingDate ParkingDate 1
ParkingTime ParkingTime 1
PlannedReversalDate PlannedReversalDate 2
PostingDate budat,InvoicePostingDate,PostingDate,ReportingDate,ReversalDocumentPostingDate 55
RecurringAccountingDocument dbblg,RecurringAccountingDocument 2
Reference1InDocumentHeader Reference1InDocumentHeader 3
Reference2InDocumentHeader Reference2InDocumentHeader 3
ReferenceDocumentType ReferenceDocumentType,ReversalDocumentRefDocType 25
ReversalReason ReversalReason 6
ReversalReferenceDocument ReversalReferenceDocument 5
ReversalReferenceDocumentCntxt ReversalReferenceDocumentCntxt 2
ReverseDocument ReversedDocumentBKPF,ReverseDocument 17
ReverseDocumentFiscalYear ReversedDocumentFiscalYearBKPF,ReverseDocumentFiscalYear 13
SenderAccountingDocument SenderAccountingDocument,SenderCorrectionInvoice,SenderInvoice,SenderRevisionInvoice 13
SenderCompanyCode SenderCompanyCode 13
SenderFiscalYear SenderCorrectionInvoiceYear,SenderFiscalYear,SenderInvoiceYear,SenderRevisionInvoiceYear 13
SenderLogicalSystem SenderLogicalSystem 14
TaxAbsoluteExchangeRate TaxAbsoluteExchangeRate 1
TaxBaseAmountIsNetAmount TaxBaseAmountIsNetAmount 4
TaxCountry TaxCountry 2
TaxExchangeRate TaxExchangeRate 1
TaxFulfillmentDate TaxFulfillmentDate 4
TaxIsCalculatedAutomatically TaxIsCalculatedAutomatically,xmwst 3
TaxReportingDate ReversalDocumentTaxRepDate,TaxReportingDate,vatdate 28
TransactionCode TransactionCode 5
TransactionCurrency Currency,TransactionCurrency,waers 18
WithholdingTaxReportingDate WithholdingTaxReportingDate 1
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog: {
  sqlViewName: 'IFIJOURNALENT',
  preserveKey:true 
  }
@EndUserText.label: 'Journal Entry'
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.representativeKey: 'AccountingDocument'
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass:  #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #A
@Analytics: { 
      dataCategory: #DIMENSION, 
      dataExtraction: {
        enabled: true,
        delta.changeDataCapture: {
          mapping: 
            [
              { 
                table: 'BKPF',
                role: #MAIN,
                viewElement: ['CompanyCode', 'FiscalYear', 'AccountingDocument'],
                tableElement: ['bukrs', 'gjahr', 'belnr']
              }
            ] 
         }
      }
    }
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.buffering.status: #NOT_ALLOWED
@Metadata.ignorePropagatedAnnotations: true 
@Metadata.allowExtensions:true
//--[ GENERATED:012:29JlHNUf7jY4ip7HtmZN9m

@AccessControl.privilegedAssociations: ['_AccountingDocumentTypeText','_BusinessTransactionTypeText','_FinancialManagementAreaText','_LedgerText']
// ]--GENERATED


@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, 
                                     #CDS_MODELING_ASSOCIATION_TARGET, 
                                     #CDS_MODELING_DATA_SOURCE,
                                     #EXTRACTION_DATA_SOURCE,
                                     #SQL_DATA_SOURCE]
@ObjectModel.sapObjectNodeType.name: 'JournalEntry'                                     
                                     
define view I_JournalEntry as select from P_BKPF_COM

/* *************************************************************
 *  association zur ID
 * *************************************************************
*/ 
 

  //--[ GENERATED:012:29JlHNUf7jY4ip7HtmZN9m

  association [0..*] to I_AccountingDocumentTypeText      as _AccountingDocumentTypeText on   $projection.AccountingDocumentType = _AccountingDocumentTypeText.AccountingDocumentType
  association [0..*] to I_BusTransactionTypeText      as _BusinessTransactionTypeText on   $projection.BusinessTransactionType = _BusinessTransactionTypeText.BusinessTransactionType
  association [0..*] to I_FinancialManagementAreaText      as _FinancialManagementAreaText on   $projection.FinancialManagementArea = _FinancialManagementAreaText.FinancialManagementArea
  association [0..*] to I_LedgerText      as _LedgerText on   $projection.Ledger = _LedgerText.Ledger
  // ]--GENERATED

  association [0..1] to I_CompanyCode                  as _CompanyCode                  on $projection.CompanyCode                     = _CompanyCode.CompanyCode
association [0..1] to I_FiscalYearForCompanyCode     as _FiscalYear                   on $projection.FiscalYear                      = _FiscalYear.FiscalYear
                                                                                     and $projection.CompanyCode                     = _FiscalYear.CompanyCode  
association [0..1] to I_AccountingDocumentType       as _AccountingDocumentType       on $projection.AccountingDocumentType          = _AccountingDocumentType.AccountingDocumentType
association [1..1] to I_Currency                     as _CompanyCodeCurrency          on $projection.CompanyCodeCurrency             = _CompanyCodeCurrency.Currency 
association [0..1] to I_Currency                     as _TransactionCurrency          on  $projection.TransactionCurrency            = _TransactionCurrency.Currency
association [0..1] to I_Currency                 as _AdditionalCurrency1      on $projection.AdditionalCurrency1      = _AdditionalCurrency1.Currency 
association [0..1] to I_Currency                 as _AdditionalCurrency2      on $projection.AdditionalCurrency2      = _AdditionalCurrency2.Currency
association [0..1] to I_FiscalYearPeriodForCmpnyCode as _FiscalPeriod                 on $projection.FiscalYear                      = _FiscalPeriod.FiscalYear
                                                                                     and $projection.FiscalPeriod                    = _FiscalPeriod.FiscalPeriod
                                                                                     and $projection.CompanyCode                     = _FiscalPeriod.CompanyCode  
association [0..1] to I_AccountingDocumentCategory   as _AccountingDocumentCategory   on $projection.AccountingDocumentCategory      = _AccountingDocumentCategory.AccountingDocumentCategory
association [0..1] to I_BusinessTransactionType      as _BusinessTransactionType      on $projection.BusinessTransactionType         = _BusinessTransactionType.BusinessTransactionType
association [0..1] to I_FinancialManagementArea      as _FinancialManagementArea      on $projection.FinancialManagementArea         = _FinancialManagementArea.FinancialManagementArea                                                                                                                                                                                                                                                            
association [0..1] to I_ReferenceDocumentType        as _ReferenceDocumentType        on $projection.ReferenceDocumentType           = _ReferenceDocumentType.ReferenceDocumentType
association [0..1] to I_LogicalSystem                as _LogicalSystem                on $projection.LogicalSystem                   = _LogicalSystem.LogicalSystem  
association [0..1] to I_LogicalSystem                as _RefDocumentLogicalSystem     on $projection.ReferenceDocumentLogicalSystem  = _RefDocumentLogicalSystem.LogicalSystem
association [0..1] to I_User                         as _User                         on  $projection.AccountingDocCreatedByUser     = _User.UserID                                                                                                                                                                                                                                                          
association [1..1] to I_Ledger                       as _Ledger                       on $projection.Ledger                          = _Ledger.Ledger
association [0..1] to I_LedgerGroup                  as _LedgerGroup                  on  $projection.LedgerGroup                    = _LedgerGroup.LedgerGroup
association [0..1] to I_CurrencyRole                 as _AdditionalCurrency1Role      on  $projection.AdditionalCurrency1Role        = _AdditionalCurrency1Role.CurrencyRole
association [0..1] to I_CurrencyRole                 as _AdditionalCurrency2Role      on  $projection.AdditionalCurrency2Role        = _AdditionalCurrency2Role.CurrencyRole
  
association [1..*] to I_JournalEntryItem             as _JournalEntryItem             on $projection.CompanyCode                = _JournalEntryItem.CompanyCode
                                                                                     and $projection.FiscalYear                 = _JournalEntryItem.FiscalYear
                                                                                     and $projection.AccountingDocument         = _JournalEntryItem.AccountingDocument
                                                                                     
association [0..*] to I_OperationalAcctgDocItem      as _OperationalAcctgDocItem      on $projection.CompanyCode                = _OperationalAcctgDocItem.CompanyCode
                                                                                     and $projection.FiscalYear                 = _OperationalAcctgDocItem.FiscalYear
                                                                                     and $projection.AccountingDocument         = _OperationalAcctgDocItem.AccountingDocument
                                                                                     
association [0..*] to I_AddlLedgerOplAcctgDocItem    as _AddlLedgerOplAcctgDocItem    on $projection.CompanyCode                = _AddlLedgerOplAcctgDocItem.CompanyCode
                                                                                     and $projection.FiscalYear                 = _AddlLedgerOplAcctgDocItem.FiscalYear
                                                                                     and $projection.AccountingDocument         = _AddlLedgerOplAcctgDocItem.AccountingDocument                                                                                                                                                                          
                                                                                         
{
    
      //--[ GENERATED:012:29JlHNUf7jY4ip7HtmZN9m

      @Consumption.valueHelpDefinition: [ 
        { entity:  { name:    'I_CompanyCodeStdVH',
                     element: 'CompanyCode' }
        }]
      // ]--GENERATED

@ObjectModel.foreignKey.association: '_CompanyCode'
key bukrs as CompanyCode,
@ObjectModel.foreignKey.association: '_FiscalYear'
key gjahr as FiscalYear,
key belnr as AccountingDocument,

      //--[ GENERATED:012:29JlHNUf7jY4ip7HtmZN9m

      @Consumption.valueHelpDefinition: [ 
        { entity:  { name:    'I_AccountingDocumentTypeStdVH',
                     element: 'AccountingDocumentType' }
        }]
      @ObjectModel.text.association: '_AccountingDocumentTypeText'
      // ]--GENERATED

@ObjectModel.foreignKey.association: '_AccountingDocumentType'
blart as AccountingDocumentType, 
bldat as DocumentDate,
budat as PostingDate,
@ObjectModel.foreignKey.association: '_FiscalPeriod'
cast( monat as fins_fiscalperiod ) as FiscalPeriod,
cpudt as AccountingDocumentCreationDate,
cputm as CreationTime,
cast ( aedat as fis_lastmanualchangedate preserving type )    as LastManualChangeDate,
cast ( upddt as fis_lastautomaticchangedate preserving type ) as LastAutomaticChangeDate,
case 
  when ( upddt is not initial  and upddt > aedat ) then upddt  
  when aedat is not initial then cast ( aedat as ttet_dt_chg_date preserving type )
  else cast ( cpudt as ttet_dt_chg_date preserving type )
end as LastChangeDate,
wwert as ExchangeRateDate,
usnam as AccountingDocCreatedByUser,
tcode as TransactionCode,
bvorg as IntercompanyTransaction,
xblnr as DocumentReferenceID,
dbblg as RecurringAccountingDocument,
stblg as ReverseDocument,
stjah as ReverseDocumentFiscalYear,
bktxt as AccountingDocumentHeaderText,

@ObjectModel.foreignKey.association: '_TransactionCurrency'
@Semantics.currencyCode:true
waers as TransactionCurrency,
//@Aggregation.default: #NOP


cast(abs(kursf) as fis_absolute_exchangerate preserving type) as AbsoluteExchangeRate,
@API.element.releaseState: #DEPRECATED
@API.element.successor:    'AbsoluteExchangeRate'
@VDM.lifecycle.status:    #DEPRECATED
@VDM.lifecycle.successor: 'AbsoluteExchangeRate'
kursf as ExchangeRate,
@Semantics.booleanIndicator:true
cast(case when kursf < 0 then 'X' 
          when kursf > 0 then ' ' end as fis_indirect_quotation preserving type) as ExchRateIsIndirectQuotation,
cast(case when kursf < 0 then division(1,abs(kursf),5) 
          when kursf > 0 then kursf end as fis_effective_exchangerate) as EffectiveExchangeRate,

//@Semantics.currencyCode:true

//kzwrs as GroupCurrency,

//kzkrs as GroupCurrencyExchangeRate,


@ObjectModel.foreignKey.association: '_AccountingDocumentCategory'
bstat as AccountingDocumentCategory,
xnetb as NetAmountIsPosted,
//frath,

xrueb as JrnlEntryIsPostedToPrevPeriod,
      //--[ GENERATED:012:29JlHNUf7jY4ip7HtmZN9m

      @Consumption.valueHelpDefinition: [ 
        { entity:  { name:    'I_BusTransTypeStdVH',
                     element: 'BusinessTransactionType' }
        }]
      @ObjectModel.text.association: '_BusinessTransactionTypeText'
      // ]--GENERATED

@ObjectModel.foreignKey.association: '_BusinessTransactionType'
glvor as BusinessTransactionType,
grpid as BatchInputSession,
//dokid,

//arcid,

//iblar,

@ObjectModel.foreignKey.association: '_ReferenceDocumentType'
awtyp as ReferenceDocumentType,
awkey as OriginalReferenceDocument,
      //--[ GENERATED:012:29JlHNUf7jY4ip7HtmZN9m

      @Consumption.valueHelpDefinition: [ 
        { entity:  { name:    'I_FinMgmtAreaStdVH',
                     element: 'FinancialManagementArea' }
        }]
      @ObjectModel.text.association: '_FinancialManagementAreaText'
      // ]--GENERATED

@ObjectModel.foreignKey.association: '_FinancialManagementArea'
fikrs as FinancialManagementArea,

@ObjectModel.foreignKey.association: '_CompanyCodeCurrency'
@Semantics.currencyCode:true
hwaer as CompanyCodeCurrency,
@Semantics.currencyCode:true
hwae2 as AdditionalCurrency1,
@Semantics.currencyCode:true
hwae3 as AdditionalCurrency2,

//kurs2 as AdditionalCrcy1ExchangeRate,

//kurs3 as AdditionalCrcy2ExchangeRate,


//basw2,

//basw3,

//umrd2,

//umrd3,

//@Semantics.booleanIndicator 

xstov as ReversalIsPlanned,
stodt as PlannedReversalDate,
//@Semantics.booleanIndicator 

xmwst as TaxIsCalculatedAutomatically,

@Analytics.internalName: #LOCAL
curt2 as AdditionalCurrency1Role,
@Analytics.internalName: #LOCAL
curt3 as AdditionalCurrency2Role,
//kuty2 as AddtionalCrcy1ExchangeRateType,

//kuty3 as AddtionalCrcy2ExchangeRateType,

//@Semantics.booleanIndicator 

xsnet as TaxBaseAmountIsNetAmount,
ausbk as SourceCompanyCode,
//xusvr,

//duefl,

@ObjectModel.foreignKey.association: '_LogicalSystem'
@VDM.lifecycle.status:    #DEPRECATED
@VDM.lifecycle.successor: 'ReferenceDocumentLogicalSystem'
awsys as LogicalSystem,
@ObjectModel.foreignKey.association: '_RefDocumentLogicalSystem'
@Analytics.internalName: #LOCAL
cast(awsys as fis_awsys preserving type) as ReferenceDocumentLogicalSystem,
//@Aggregation.default: #NOP


cast(abs(txkrs) as fis_absolute_txkrs_bkpf preserving type) as TaxAbsoluteExchangeRate,
@API.element.releaseState: #DEPRECATED
@API.element.successor:    'TaxAbsoluteExchangeRate'
@VDM.lifecycle.status:    #DEPRECATED
@VDM.lifecycle.successor: 'TaxAbsoluteExchangeRate'
txkrs as TaxExchangeRate,
@Semantics.booleanIndicator:true
cast(case when txkrs < 0 then 'X' 
          when txkrs > 0 then ' ' end as fis_tax_indirect_quotation preserving type) as TaxExchRateIsIndirectQuotation,
cast(case when txkrs < 0 then division(1,abs(txkrs),5) 
          when txkrs > 0 then txkrs end as fis_tax_effective_exchangerate) as TaxEffectiveExchangeRate,
          
cast(abs(ctxkrs) as ctrycrcytxabsoluteexchangerate preserving type) as CtryCrcyTxAbsoluteExchangeRate,

cast(case when ctxkrs < 0 then division(1,abs(ctxkrs),5) 
          when ctxkrs > 0 then ctxkrs end as ctrycrcytaxeffctvexchangerate) as CtryCrcyTaxEffctvExchangeRate,          

//lotkz,

//xwvof,

stgrd as ReversalReason,
cast(ppnam as fis_ppnam preserving type ) as ParkedByUser,
ppdat as ParkingDate,
pptme as ParkingTime,
brnch as Branch,
numpg as NmbrOfPages,
//@Semantics.booleanIndicator 

adisc as IsDiscountDocument,
xref1_hd as Reference1InDocumentHeader,
xref2_hd as Reference2InDocumentHeader,
reindat as InvoiceReceiptDate,
      //--[ GENERATED:012:29JlHNUf7jY4ip7HtmZN9m

      @Consumption.valueHelpDefinition: [ 
        { entity:  { name:    'I_LedgerStdVH',
                     element: 'Ledger' }
        }]
      @ObjectModel.text.association: '_LedgerText'
      // ]--GENERATED

@ObjectModel.foreignKey.association: '_Ledger'      
rldnr as Ledger,
ldgrp as LedgerGroup,
//propmano,

cast(xblnr_alt as fis_xblnr_alt_alpha preserving type ) as AlternativeReferenceDocument,
vatdate as TaxReportingDate,
fulfilldate as TaxFulfillmentDate,
doccat as AccountingDocumentClass,
//xsplit,

//cash_alloc,

//follow_on,

//xreorg,

//subset,

kurst as ExchangeRateType,
cast(abs(kursx) as marketdataabsoluteexchangerate preserving type) as MarketDataAbsoluteExchangeRate,

cast(case when kursx < 0 then division(1,abs(kursx),5) 
          when kursx > 0 then kursx end as mktdataeffectiveexchangerate) as MktDataEffectiveExchangeRate,
//kur2x,

//kur3x,

//xmca,

//resubmission,

logsystem_sender as SenderLogicalSystem,
bukrs_sender as SenderCompanyCode,
belnr_sender as SenderAccountingDocument,
gjahr_sender as SenderFiscalYear,
aworg_rev as ReversalReferenceDocumentCntxt,
awref_rev as ReversalReferenceDocument,
//ccins,

//ccnum,

penrc as LatePaymentReason,
knumv as SalesDocumentCondition,
//@Semantics.booleanIndicator 

xreversing as IsReversal,
//@Semantics.booleanIndicator 

xreversed as IsReversed,
glbtgrp as GLBusinessTransactionGroup,
@Analytics.internalName: #LOCAL
co_valdt as CostAccountingValuationDate, 

TAX_COUNTRY_HD as TaxCountry,
last_change_datetime as JournalEntryLastChangeDateTime,

P_BKPF_COM.reprocessing_status_code as JournalEntryReprocessingStatus,

// .INCLUDE FAC_BKPF_EXT_GLO  STRU  0 0 Document Header: Extension include for globalisation

glo_ref1_hd as JrnlEntryCntrySpecificRef1,
glo_dat1_hd as JrnlEntryCntrySpecificDate1,
glo_ref2_hd as JrnlEntryCntrySpecificRef2,
glo_dat2_hd as JrnlEntryCntrySpecificDate2,
glo_ref3_hd as JrnlEntryCntrySpecificRef3,
glo_dat3_hd as JrnlEntryCntrySpecificDate3,
glo_ref4_hd as JrnlEntryCntrySpecificRef4,
glo_dat4_hd as JrnlEntryCntrySpecificDate4,
glo_ref5_hd as JrnlEntryCntrySpecificRef5,
glo_dat5_hd as JrnlEntryCntrySpecificDate5,
glo_bp1_hd as JrnlEntryCntrySpecificBP1,
glo_bp2_hd as JrnlEntryCntrySpecificBP2,

whtdate as WithholdingTaxReportingDate,

_CompanyCode,
_FiscalYear,
_AccountingDocumentType,
_CompanyCodeCurrency,
_TransactionCurrency,
_AdditionalCurrency1,
_AdditionalCurrency2,
_FiscalPeriod,
_AccountingDocumentCategory,
_BusinessTransactionType,
_FinancialManagementArea,
_ReferenceDocumentType,
_User,
@VDM.lifecycle.status:    #DEPRECATED
@VDM.lifecycle.successor: '_RefDocumentLogicalSystem'
_LogicalSystem,
_RefDocumentLogicalSystem,
_Ledger,
_LedgerGroup,
_AdditionalCurrency1Role,
_AdditionalCurrency2Role,

_JournalEntryItem,
_OperationalAcctgDocItem,
_AddlLedgerOplAcctgDocItem,

                                                                                   
      //--[ GENERATED:012:29JlHNUf7jY4ip7HtmZN9m

      @Consumption.hidden: true
      _AccountingDocumentTypeText,
      @Consumption.hidden: true
      _BusinessTransactionTypeText,
      @Consumption.hidden: true
      _FinancialManagementAreaText,
      @Consumption.hidden: true
      _LedgerText
      // ]--GENERATED


}