P_CtrlgOvhdJournalEntryItem

DDL: P_CTRLGOVHDJOURNALENTRYITEM SQL: PCTRLGOVHDJEI Type: view BASIC Package: ODATA_OVERHEAD_CALC_SINGLE

Controlling Overhead Journal Entry Item

P_CtrlgOvhdJournalEntryItem is a Basic CDS View that provides data about "Controlling Overhead Journal Entry Item" in SAP S/4HANA. It reads from 3 data sources (fco_ovhd_refdr, fco_ovhd_stadr, I_JournalEntryItem) and exposes 61 fields with key fields ControllingObject, ControllingOverheadDraftUUID, SourceLedger, CompanyCode, FiscalYear. Part of development package ODATA_OVERHEAD_CALC_SINGLE.

Data Sources (3)

SourceAliasJoin Type
fco_ovhd_refdr _CtrlgOvhdRefDoc from
fco_ovhd_stadr _CtrlgOvhdStat inner
I_JournalEntryItem _JournalEntryItem inner

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PCTRLGOVHDJEI view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #BASIC view
VDM.private true view

Fields (61)

KeyFieldSource TableSource FieldDescription
KEY ControllingObject fco_ovhd_refdr controllingobject
KEY ControllingOverheadDraftUUID fco_ovhd_refdr controllingoverheaddraftuuid
KEY SourceLedger SourceLedger
KEY CompanyCode I_JournalEntryItem CompanyCode
KEY FiscalYear I_JournalEntryItem FiscalYear
KEY AccountingDocument AccountingDocument
KEY LedgerGLLineItem LedgerGLLineItem
KEY Ledger I_JournalEntryItem Ledger
IsLeadingLedger
LedgerFiscalYear LedgerFiscalYear
FiscalPeriod FiscalPeriod
CompanyCodeName _CompanyCode CompanyCodeName
CostCenter CostCenter
ProfitCenter ProfitCenter
Segment Segment
FunctionalArea
Fund
BudgetPeriod
GrantID
PartnerFunctionalArea
PartnerFund
PartnerBudgetPeriod
PartnerGrant
BusinessTransactionType BusinessTransactionType
DebitCreditCode DebitCreditCode
FinancialTransactionType FinancialTransactionType
GLAccount GLAccount
GLRecordType GLRecordType
WBSElement WBSElement
BalanceTransactionCurrency BalanceTransactionCurrency
TransactionCurrency TransactionCurrency
CompanyCodeCurrency CompanyCodeCurrency
GlobalCurrency GlobalCurrency
FreeDefinedCurrency1 FreeDefinedCurrency1
FreeDefinedCurrency2 FreeDefinedCurrency2
FreeDefinedCurrency3 FreeDefinedCurrency3
FreeDefinedCurrency4 FreeDefinedCurrency4
FreeDefinedCurrency5 FreeDefinedCurrency5
FreeDefinedCurrency6 FreeDefinedCurrency6
FreeDefinedCurrency7 FreeDefinedCurrency7
FreeDefinedCurrency8 FreeDefinedCurrency8
ControllingObjectCurrency ControllingObjectCurrency
BaseUnit BaseUnit
AmountInBalanceTransacCrcy AmountInBalanceTransacCrcy
AmountInTransactionCurrency AmountInTransactionCurrency
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency
AmountInGlobalCurrency AmountInGlobalCurrency
AmountInFreeDefinedCurrency1 AmountInFreeDefinedCurrency1
AmountInFreeDefinedCurrency2 AmountInFreeDefinedCurrency2
AmountInFreeDefinedCurrency3 AmountInFreeDefinedCurrency3
AmountInFreeDefinedCurrency4 AmountInFreeDefinedCurrency4
AmountInFreeDefinedCurrency5 AmountInFreeDefinedCurrency5
AmountInFreeDefinedCurrency6 AmountInFreeDefinedCurrency6
AmountInFreeDefinedCurrency7 AmountInFreeDefinedCurrency7
AmountInFreeDefinedCurrency8 AmountInFreeDefinedCurrency8
Quantity Quantity
FixedQuantity FixedQuantity
ValuationQuantity ValuationQuantity
ValuationFixedQuantity ValuationFixedQuantity
ControllingArea I_JournalEntryItem ControllingArea
AccountingDocumentCategory I_JournalEntryItem AccountingDocumentCategory
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'PCTRLGOVHDJEI'
@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED

@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #M

@VDM.viewType: #BASIC
@VDM.private: true

define view P_CtrlgOvhdJournalEntryItem
  as select from fco_ovhd_refdr     as _CtrlgOvhdRefDoc
    inner join   fco_ovhd_stadr     as _CtrlgOvhdStat    on _CtrlgOvhdStat.draftuuid = _CtrlgOvhdRefDoc.parentdraftuuid
    inner join   I_JournalEntryItem as _JournalEntryItem on  _JournalEntryItem.ReferenceDocumentType = _CtrlgOvhdRefDoc.referencedocumenttype
                                                         and _JournalEntryItem.ReferenceDocument     = _CtrlgOvhdRefDoc.referencedocument
                                                         and _JournalEntryItem.ControllingArea       = _CtrlgOvhdStat.controllingarea

{
  key _CtrlgOvhdRefDoc.controllingobject             as ControllingObject,
  key _CtrlgOvhdRefDoc.controllingoverheaddraftuuid  as ControllingOverheadDraftUUID,
  key SourceLedger,
  key _JournalEntryItem.CompanyCode,
  key _JournalEntryItem.FiscalYear,
      @Consumption.semanticObject: 'AccountingDocument'
  key AccountingDocument,
  key LedgerGLLineItem,
  key _JournalEntryItem.Ledger,
      _JournalEntryItem._Ledger.IsLeadingLedger      as IsLeadingLedger,
      LedgerFiscalYear,

      FiscalPeriod,

      _CompanyCode.CompanyCodeName,

      _CtrlgOvhdRefDoc.referencedocumenttype,
      _CtrlgOvhdRefDoc.referencedocument,

      CostCenter,
      ProfitCenter,
      Segment,
      cast(FunctionalArea as fm_efarea)              as FunctionalArea,
      cast(Fund as fm_efonds)                        as Fund,
      cast(BudgetPeriod as fm_ebudget_period)        as BudgetPeriod,
      cast(GrantID as gm_grant_receiver)             as GrantID,
      cast(PartnerFunctionalArea as fm_sfarea)       as PartnerFunctionalArea,
      cast(PartnerFund as fm_sfonds)                 as PartnerFund,
      cast(PartnerBudgetPeriod as fm_sbudget_period) as PartnerBudgetPeriod,
      cast(PartnerGrant as gm_grant_sender)          as PartnerGrant,
      BusinessTransactionType,
      DebitCreditCode,
      FinancialTransactionType,
      GLAccount,
      GLRecordType,
      WBSElement,

      @Semantics.currencyCode       : true
      BalanceTransactionCurrency,
      @Semantics.currencyCode       : true
      TransactionCurrency,
      @Semantics.currencyCode       : true
      CompanyCodeCurrency,
      @Semantics.currencyCode       : true
      GlobalCurrency,
      @Semantics.currencyCode       : true
      FreeDefinedCurrency1,
      @Semantics.currencyCode       : true
      FreeDefinedCurrency2,
      @Semantics.currencyCode       : true
      FreeDefinedCurrency3,
      @Semantics.currencyCode       : true
      FreeDefinedCurrency4,
      @Semantics.currencyCode       : true
      FreeDefinedCurrency5,
      @Semantics.currencyCode       : true
      FreeDefinedCurrency6,
      @Semantics.currencyCode       : true
      FreeDefinedCurrency7,
      @Semantics.currencyCode       : true
      FreeDefinedCurrency8,
      @Semantics.currencyCode       : true
      ControllingObjectCurrency,
      @Semantics.unitOfMeasure: true
      BaseUnit,
      @Semantics.amount.currencyCode: 'BalanceTransactionCurrency'
      AmountInBalanceTransacCrcy,
      @UI.lineItem.position: 50
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      AmountInTransactionCurrency,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      AmountInCompanyCodeCurrency,
      @Semantics.amount.currencyCode: 'GlobalCurrency'
      AmountInGlobalCurrency,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency1'
      AmountInFreeDefinedCurrency1,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency2'
      AmountInFreeDefinedCurrency2,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency3'
      AmountInFreeDefinedCurrency3,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency4'
      AmountInFreeDefinedCurrency4,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency5'
      AmountInFreeDefinedCurrency5,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency6'
      AmountInFreeDefinedCurrency6,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency7'
      AmountInFreeDefinedCurrency7,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency8'
      AmountInFreeDefinedCurrency8,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      Quantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      FixedQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      ValuationQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      ValuationFixedQuantity,
      
      _JournalEntryItem.ControllingArea as ControllingArea,
      _JournalEntryItem.AccountingDocumentCategory as AccountingDocumentCategory
      
}

  where SourceLedger = _JournalEntryItem.Ledger