P_MY_JournalEntryItem

DDL: P_MY_JOURNALENTRYITEM SQL: PMYJRNLENTRITM Type: view COMPOSITE Package: GLO_FIN_IS_VAT_MY

Journal Entry Item for MY GAF

P_MY_JournalEntryItem is a Composite CDS View that provides data about "Journal Entry Item for MY GAF" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 23 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. Part of development package GLO_FIN_IS_VAT_MY.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem I_OperationalAcctgDocItem from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMYJRNLENTRITM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode
KEY AccountingDocument AccountingDocument
KEY FiscalYear FiscalYear
KEY AccountingDocumentItem AccountingDocumentItem
OriginRefDocBusObjTypeName
PostingDate PostingDate
TaxReportingDate _JournalEntry TaxReportingDate
DocumentDate DocumentDate
GLAccount GLAccount
GLAccountName
AccountingDocumentHeaderText _JournalEntry AccountingDocumentHeaderText
ChartOfAccounts _GLAccountInChartOfAccounts ChartOfAccounts
GLAccountType _GLAccountInChartOfAccounts GLAccountType
OriginalReferenceDocument OriginalReferenceDocument
FinancialAccountType FinancialAccountType
TransactionCurrency TransactionCurrency
CompanyCodeCurrency CompanyCodeCurrency
AdditionalCurrency1 AdditionalCurrency1
AdditionalCurrency2 AdditionalCurrency2
DebitCreditCode DebitCreditCode
GLAcctBalanceAmt
SystemClient
SystemDate
@AbapCatalog.sqlViewName: 'PMYJRNLENTRITM'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType:#COMPOSITE
@VDM.private: true
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass:  #MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #BLOCKED_DATA_INCLUDED
//@EndUserText.label: 'Journal Entry Item for MY GAF'

define view P_MY_JournalEntryItem as select from  I_OperationalAcctgDocItem

  {
  key CompanyCode,
  key AccountingDocument,
  key FiscalYear,
  key AccountingDocumentItem,
      concat(concat(CompanyCode, AccountingDocument),FiscalYear) as OriginRefDocBusObjTypeName,
      PostingDate,
      _JournalEntry.TaxReportingDate,
      DocumentDate,
      GLAccount,
      _GLAccountInChartOfAccounts._Text[1: Language = $session.system_language ].GLAccountName,
      _JournalEntry.AccountingDocumentHeaderText,
      _GLAccountInChartOfAccounts.ChartOfAccounts,
      _GLAccountInChartOfAccounts.GLAccountType,
      case FinancialAccountType
      when 'D' then _Customer.CustomerName
      when 'K' then _Supplier.SupplierName
      end as BusinessPartnerPhysicianName,
      case FinancialAccountType      
      when 'D' then _Customer.AuthorizationGroup
      when 'K' then _Supplier.AuthorizationGroup
      end  as AuthorizationGroup,
       case FinancialAccountType  
       when 'D' then _Customer._CustomerToBusinessPartner._BusinessPartner.IsBusinessPurposeCompleted
       when 'K' then _Supplier._SupplierToBusinessPartner._BusinessPartner.IsBusinessPurposeCompleted
      end as IsBusinessPurposeCompleted,
      OriginalReferenceDocument,
      FinancialAccountType,
      @Semantics.currencyCode: true
      TransactionCurrency,
      @Semantics.currencyCode:true
      CompanyCodeCurrency,
      @Semantics.currencyCode:true
      AdditionalCurrency1,
      @Semantics.currencyCode:true
      AdditionalCurrency2,
      DebitCreditCode,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      case DebitCreditCode
      when 'S' then abs(AmountInTransactionCurrency)
      end as DebitAmountInTransCrcy,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      case DebitCreditCode
      when 'H' then abs(AmountInTransactionCurrency)
      end as CreditAmountInTransCrcy,    
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      case DebitCreditCode
      when 'S' then abs(AmountInCompanyCodeCurrency)
      end as DebitAmountInCoCodeCrcy,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      case DebitCreditCode
      when 'H' then abs(AmountInCompanyCodeCurrency)
      end as CreditAmountInCoCodeCrcy,
      @Semantics.amount.currencyCode: 'AdditionalCurrency1'
      case DebitCreditCode
      when 'S' then abs(AmountInAdditionalCurrency1)
      end as DebitAmountInAddlCrcy1,
      @Semantics.amount.currencyCode: 'AdditionalCurrency1'
      case DebitCreditCode
      when 'H' then abs(AmountInAdditionalCurrency1)
      end as CreditAmountInAddlCrcy1,
       @Semantics.amount.currencyCode: 'AdditionalCurrency2'
      case DebitCreditCode
      when 'S' then abs(AmountInAdditionalCurrency2)
      end as DebitAmountInAddlCrcy2,
      @Semantics.amount.currencyCode: 'AdditionalCurrency2'
      case DebitCreditCode
      when 'H' then abs(AmountInAdditionalCurrency2)
      end as CreditAmountInAddlCrcy2,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      cast(0 as figlcn_balance) as GLAcctBalanceAmt,
      $session.client                                                          as SystemClient,
      $session.system_date                                                     as SystemDate

  }