P_MANAGEJOURNALENTRY
Journal Entry
P_MANAGEJOURNALENTRY is a CDS View in S/4HANA. Journal Entry. It contains 81 fields. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| R_ManageJournalEntry | view_entity | from | COMPOSITE | Journal Entry |
Fields (81)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | AccountingDocument | AccountingDocument | 1 |
| KEY | CompanyCode | CompanyCode | 1 |
| KEY | FiscalYear | FiscalYear | 1 |
| AbsoluteExchangeRate | AbsoluteExchangeRate | 1 | |
| AccountingDocCreatedByUser | AccountingDocCreatedByUser | 1 | |
| AccountingDocumentCategory | AccountingDocumentCategory | 1 | |
| AccountingDocumentCreationDate | AccountingDocumentCreationDate | 1 | |
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | 1 | |
| AccountingDocumentType | AccountingDocumentType | 1 | |
| AdditionalCurrency1 | AdditionalCurrency1 | 1 | |
| AdditionalCurrency1Role | AdditionalCurrency1Role | 1 | |
| AdditionalCurrency2 | AdditionalCurrency2 | 1 | |
| AdditionalCurrency2Role | AdditionalCurrency2Role | 1 | |
| AlternativeReferenceDocument | AlternativeReferenceDocument | 1 | |
| Branch | Branch | 1 | |
| BusinessTransactionType | BusinessTransactionType | 1 | |
| CompanyCodeCurrency | CompanyCodeCurrency | 1 | |
| CreationDateTime | CreationDateTime | 1 | |
| CreationTime | CreationTime | 1 | |
| CtryCrcyTxAbsoluteExchangeRate | CtryCrcyTxAbsoluteExchangeRate | 1 | |
| DocumentDate | DocumentDate | 1 | |
| DocumentReferenceID | DocumentReferenceID | 1 | |
| ExchangeRateDate | ExchangeRateDate | 1 | |
| ExchangeRateType | ExchangeRateType | 1 | |
| FiscalPeriod | FiscalPeriod | 1 | |
| IntercompanyTransaction | IntercompanyTransaction | 1 | |
| InvoiceReceiptDate | InvoiceReceiptDate | 1 | |
| IsReversal | IsReversal | 1 | |
| IsReversed | IsReversed | 1 | |
| JournalEntryLastChangeDateTime | JournalEntryLastChangeDateTime | 1 | |
| JrnlEntryCntrySpecificBP1 | JrnlEntryCntrySpecificBP1 | 1 | |
| JrnlEntryCntrySpecificBP2 | JrnlEntryCntrySpecificBP2 | 1 | |
| JrnlEntryCntrySpecificDate1 | JrnlEntryCntrySpecificDate1 | 1 | |
| JrnlEntryCntrySpecificDate2 | JrnlEntryCntrySpecificDate2 | 1 | |
| JrnlEntryCntrySpecificDate3 | JrnlEntryCntrySpecificDate3 | 1 | |
| JrnlEntryCntrySpecificDate4 | JrnlEntryCntrySpecificDate4 | 1 | |
| JrnlEntryCntrySpecificDate5 | JrnlEntryCntrySpecificDate5 | 1 | |
| JrnlEntryCntrySpecificRef1 | JrnlEntryCntrySpecificRef1 | 1 | |
| JrnlEntryCntrySpecificRef2 | JrnlEntryCntrySpecificRef2 | 1 | |
| JrnlEntryCntrySpecificRef3 | JrnlEntryCntrySpecificRef3 | 1 | |
| JrnlEntryCntrySpecificRef4 | JrnlEntryCntrySpecificRef4 | 1 | |
| JrnlEntryCntrySpecificRef5 | JrnlEntryCntrySpecificRef5 | 1 | |
| LastAutomaticChangeDate | LastAutomaticChangeDate | 1 | |
| LastManualChangeDate | LastManualChangeDate | 1 | |
| Ledger | Ledger | 1 | |
| LedgerGroup | LedgerGroup | 1 | |
| MarketDataAbsoluteExchangeRate | MarketDataAbsoluteExchangeRate | 1 | |
| NmbrOfPages | NmbrOfPages | 1 | |
| OriginalReferenceDocument | OriginalReferenceDocument | 1 | |
| ParkedByUser | ParkedByUser | 1 | |
| ParkingDate | ParkingDate | 1 | |
| ParkingDateTime | ParkingDateTime | 1 | |
| ParkingTime | ParkingTime | 1 | |
| PlannedReversalDate | PlannedReversalDate | 1 | |
| PostingDate | PostingDate | 1 | |
| RecurringAccountingDocument | RecurringAccountingDocument | 1 | |
| Reference1InDocumentHeader | Reference1InDocumentHeader | 1 | |
| Reference2InDocumentHeader | Reference2InDocumentHeader | 1 | |
| ReferenceDocumentLogicalSystem | ReferenceDocumentLogicalSystem | 1 | |
| ReferenceDocumentType | ReferenceDocumentType | 1 | |
| ReversalReason | ReversalReason | 1 | |
| ReversalReferenceDocument | ReversalReferenceDocument | 1 | |
| ReversedDocument | ReversedDocument | 1 | |
| ReverseDocument | ReverseDocument | 1 | |
| ReverseDocumentFiscalYear | ReverseDocumentFiscalYear | 1 | |
| ReversedReferenceDocument | ReversedReferenceDocument | 1 | |
| SenderAccountingDocument | SenderAccountingDocument | 1 | |
| SenderCompanyCode | SenderCompanyCode | 1 | |
| SenderFiscalYear | SenderFiscalYear | 1 | |
| SenderLogicalSystem | SenderLogicalSystem | 1 | |
| TaxAbsoluteExchangeRate | TaxAbsoluteExchangeRate | 1 | |
| TaxBaseAmountIsNetAmount | TaxBaseAmountIsNetAmount | 1 | |
| TaxBaseAmountOrigin | TaxBaseAmountOrigin | 1 | |
| TaxCalculationType | TaxCalculationType | 1 | |
| TaxCountry | TaxCountry | 1 | |
| TaxFulfillmentDate | TaxFulfillmentDate | 1 | |
| TaxIsCalculatedAutomatically | TaxIsCalculatedAutomatically | 1 | |
| TaxReportingDate | TaxReportingDate | 1 | |
| TransactionCode | TransactionCode | 1 | |
| TransactionCurrency | TransactionCurrency | 1 | |
| WithholdingTaxReportingDate | WithholdingTaxReportingDate | 1 |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Journal Entry'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #XXL,
dataClass: #MIXED
}
@VDM: {
viewType: #COMPOSITE,
private: true
}
define view entity P_ManageJournalEntry
as select from I_JournalEntry as _JournalEntry
{
key _JournalEntry.CompanyCode,
key _JournalEntry.FiscalYear,
key _JournalEntry.AccountingDocument,
_JournalEntry.AccountingDocumentCategory,
_JournalEntry.AccountingDocumentHeaderText,
_JournalEntry.SenderAccountingDocument,
_JournalEntry.AccountingDocumentType,
// _JournalEntry.acc_principle as AccountingPrinciple,
_JournalEntry.AdditionalCurrency1,
// _JournalEntry.kurs2 as AdditionalCrcy1ExchangeRate,
_JournalEntry.AdditionalCurrency1Role,
_JournalEntry.AdditionalCurrency2,
// _JournalEntry.kurs3 as AdditionalCrcy2ExchangeRate,
_JournalEntry.AdditionalCurrency2Role,
_JournalEntry.AlternativeReferenceDocument,
// _JournalEntry.rldnr_auth as AuthorizationCheckLedger,
// _JournalEntry.blart_brgru as AuthorizationGroupDocumentType,
_JournalEntry.Branch,
_JournalEntry.BusinessTransactionType,
_JournalEntry.CompanyCodeCurrency,
_JournalEntry.SenderCompanyCode,
// _JournalEntry.co_belnr_sender as ControllingDocumentSender,
_JournalEntry.AccountingDocCreatedByUser,
_JournalEntry.AccountingDocumentCreationDate,
_JournalEntry.CreationTime,
cast( dats_tims_to_tstmp( _JournalEntry.AccountingDocumentCreationDate, _JournalEntry.CreationTime,
abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' )
as vdm_creationdatetime) as CreationDateTime,
// _JournalEntry.locpudt as LocalCreationDate,
_JournalEntry.DocumentDate,
_JournalEntry.DocumentReferenceID,
_JournalEntry.AbsoluteExchangeRate,
cast(_JournalEntry.ExchangeRateDate as fin_currconvdat preserving type ) as ExchangeRateDate,
_JournalEntry.TaxAbsoluteExchangeRate,
_JournalEntry.CtryCrcyTxAbsoluteExchangeRate,
_JournalEntry.MarketDataAbsoluteExchangeRate,
_JournalEntry.TaxCountry,
_JournalEntry.ExchangeRateType,
_JournalEntry.FiscalPeriod,
_JournalEntry.SenderFiscalYear,
_JournalEntry.JrnlEntryCntrySpecificRef1,
_JournalEntry.JrnlEntryCntrySpecificDate1,
_JournalEntry.JrnlEntryCntrySpecificRef2,
_JournalEntry.JrnlEntryCntrySpecificDate2,
_JournalEntry.JrnlEntryCntrySpecificRef3,
_JournalEntry.JrnlEntryCntrySpecificDate3,
_JournalEntry.JrnlEntryCntrySpecificRef4,
_JournalEntry.JrnlEntryCntrySpecificDate4,
_JournalEntry.JrnlEntryCntrySpecificRef5,
_JournalEntry.JrnlEntryCntrySpecificDate5,
_JournalEntry.JrnlEntryCntrySpecificBP1,
_JournalEntry.JrnlEntryCntrySpecificBP2,
// _JournalEntry.kzwrs as GroupCurrency
cast(_JournalEntry.IntercompanyTransaction as fac_mje_bvorg preserving type ) as IntercompanyTransaction,
_JournalEntry.InvoiceReceiptDate,
_JournalEntry.LastManualChangeDate,
_JournalEntry.LastAutomaticChangeDate,
_JournalEntry.Ledger,
_JournalEntry.LedgerGroup,
_JournalEntry.SenderLogicalSystem,
// _JournalEntry.kursx as MarketDataExchangeRate,
_JournalEntry.NmbrOfPages,
cast(_JournalEntry.OriginalReferenceDocument as fis_awkey) as OriginalReferenceDocument,
_JournalEntry.ParkingTime,
_JournalEntry.ParkedByUser,
// _JournalEntry.ppnam_txt as ParkedByUserName,
_JournalEntry.ParkingDate,
cast( dats_tims_to_tstmp( _JournalEntry.ParkingDate, _JournalEntry.ParkingTime,
abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' )
as timestamp) as ParkingDateTime,
// _JournalEntry.loppdat as LocalParkedDate, calculated
// _JournalEntry.pptcod as ParkTransaction,
_JournalEntry.PostingDate,
// _JournalEntry.dbblg_bukrs as RecrrgAccDocTemplCompanyCode,
// _JournalEntry.dbblg_gjahr as RecurringAccDocTemplFiscalYear,
_JournalEntry.RecurringAccountingDocument,
_JournalEntry.Reference1InDocumentHeader,
_JournalEntry.Reference2InDocumentHeader,
_JournalEntry.ReferenceDocumentType,
// _JournalEntry.xreversal as ReversalFunction,
_JournalEntry.ReversalReason,
_JournalEntry.IsReversal,
_JournalEntry.IsReversed,
cast( case _JournalEntry.IsReversal
when '' then ''
else _JournalEntry.ReversalReferenceDocument
end as reversedreferencedocument preserving type ) as ReversedReferenceDocument,
cast( case _JournalEntry.IsReversed
when '' then ''
else _JournalEntry.ReversalReferenceDocument
end as reversalreferencedocument preserving type ) as ReversalReferenceDocument,
cast( case _JournalEntry.IsReversal
when '' then ''
else _JournalEntry.ReverseDocument
end as stbln preserving type ) as ReversedDocument,
cast( case _JournalEntry.IsReversed
when '' then ''
else _JournalEntry.ReverseDocument
end as stblg preserving type ) as ReverseDocument,
//_JournalEntry.,
_JournalEntry.ReverseDocumentFiscalYear,
_JournalEntry.PlannedReversalDate,
_JournalEntry.TaxBaseAmountIsNetAmount,
cast( case _JournalEntry.TaxBaseAmountIsNetAmount
when 'X' then 'N'
else 'G'
end as taxbaseamountorigin ) as TaxBaseAmountOrigin,
cast(_JournalEntry.TaxFulfillmentDate as txrg_fulfilldate_lbl preserving type ) as TaxFulfillmentDate,
_JournalEntry.TaxIsCalculatedAutomatically,
cast( case _JournalEntry.TaxIsCalculatedAutomatically
when 'X' then 'A'
else 'M'
end as taxcalculationtype ) as TaxCalculationType,
_JournalEntry.TaxReportingDate,
cast(_JournalEntry.WithholdingTaxReportingDate as fac_mje_whtdate preserving type ) as WithholdingTaxReportingDate,
_JournalEntry.TransactionCode,
cast( _JournalEntry.TransactionCurrency as fis_rwcur ) as TransactionCurrency,
// Needed for Related Documents Tab
_JournalEntry.ReferenceDocumentLogicalSystem,
_JournalEntry.JournalEntryLastChangeDateTime,
replace(replace(concat( $session.client, concat( rpad(_JournalEntry.CompanyCode, 4, '|'),
concat( _JournalEntry.AccountingDocument, _JournalEntry.FiscalYear))), '|', '| |'), '|', '') as ChangeDocObject,
//DCL
_AccountingDocumentType
}
where
(
_JournalEntry.AccountingDocumentCategory = '' // Normal document
or _JournalEntry.AccountingDocumentCategory = 'A' // Clearing Document
or _JournalEntry.AccountingDocumentCategory = 'B' // Reset clearing document
or _JournalEntry.AccountingDocumentCategory = 'C' // Balance Carryforward and Balance Adjustments from Migration
or _JournalEntry.AccountingDocumentCategory = 'J' // Closing Operations (postings are not made to record type 0)
or _JournalEntry.AccountingDocumentCategory = 'L' // Posting Not in Leading Ledger
or _JournalEntry.AccountingDocumentCategory = 'O' // Financial Statements: Open Entry
or _JournalEntry.AccountingDocumentCategory = 'S' // Noted items
or _JournalEntry.AccountingDocumentCategory = 'U' // Posting in General Ledger Only
or _JournalEntry.AccountingDocumentCategory = 'V' // parked
or _JournalEntry.AccountingDocumentCategory = 'W' // changed parked
or _JournalEntry.AccountingDocumentCategory = 'Z' // deleted parked
)
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRY"
],
"ASSOCIATED":
[
"I_ACCOUNTINGDOCUMENTTYPE"
],
"BASE":
[
"I_JOURNALENTRY"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/