I_TH_AssetDepreciationCube

DDL: I_TH_ASSETDEPRECIATIONCUBE SQL: ITHDEPRCUBE Type: view COMPOSITE

Cube View for Thailand Depreciation List

I_TH_AssetDepreciationCube is a Composite CDS View (Cube) that provides data about "Cube View for Thailand Depreciation List" in SAP S/4HANA. It reads from 2 data sources (I_AssetBalanceCube, I_StRpJournalEntryLog) and exposes 31 fields with key fields CompanyCode, AssetDepreciationArea, MasterFixedAsset, FixedAsset, Ledger. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_AssetBalanceCube I_AssetBalanceCube from
I_StRpJournalEntryLog ReportedItemsLog left_outer

Parameters (4)

NameTypeDefault
P_AssetAccountingKeyFigureSet faa_key_figure_set
P_FiscalYear fis_gjahr
P_FiscalPeriod fis_poper
P_KeyDate fagl_keydate

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_SelectedCurrencyBranch _SelectedCurrencyBranch _SelectedCurrencyBranch.SelectedCurrencyBranch = $projection.SelectedCurrencyBranch

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ITHDEPRCUBE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Cube View for Thailand Depreciation List view
Analytics.dataCategory #CUBE view
Analytics.internalName #LOCAL view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode AssetBalance CompanyCode Receiver Company Code
KEY AssetDepreciationArea AssetDepreciationArea Deprec. Area
KEY MasterFixedAsset MasterFixedAsset Fixed Asset
KEY FixedAsset FixedAsset Sub-number
KEY Ledger Ledger Ledger
KEY FiscalYear AssetBalance FiscalYear G/L Fiscal Year
KEY FiscalPeriod FiscalPeriod Tax period
KEY SubLedgerAcctLineItemType SubLedgerAcctLineItemType SLALineItemType
KEY AssetAcctTransClassfctn AssetAcctTransClassfctn Trans.Type Cat.
KEY AssetAccountingKeyFigure AssetAccountingKeyFigure
KEY AssetAccountingKeyFigureSet AssetAccountingKeyFigureSet
KEY AccountingDocument AssetBalance AccountingDocument Journal Entry
KEY TransactionSubitem TransactionSubitem Sub Transaction
KEY DebitCreditCode DebitCreditCode Single-Character Flag
KEY CurrencyRole CurrencyRole Curr./Val. Type
KEY ReferenceDocument ReferenceDocument Reference Document
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
KEY StatryRptgEntity I_StRpJournalEntryLog StatryRptgEntity Reporting Entity
KEY StatryRptCategory I_StRpJournalEntryLog StatryRptCategory Report ID
KEY StatryRptRunID I_StRpJournalEntryLog StatryRptRunID Report Run ID
AccountingPrinciple AccountingPrinciple AP Ledger/CoCode
AssetAccountDetermination AssetAccountDetermination Account Determ.
AssetClass AssetClass Asset Class
AssetCapitalizationDate AssetCapitalizationDate Asset Capitalization
FixedAssetDescription _FixedAsset FixedAssetDescription Description
AssetAuthorizationContext AssetAuthorizationContext
SelectedCurrencyBranch SelectedCurrencyBranch
DisplayCurrency DisplayCurrency Display Currency
AmountInDisplayCurrency AmountInDisplayCurrency
_SelectedCurrencyBranch _SelectedCurrencyBranch
_Currency _Currency

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_TH_AssetDepreciationCube.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: ITHDEPRCUBE
-- Parameters: P_AssetAccountingKeyFigureSet : faa_key_figure_set, P_FiscalYear : fis_gjahr, P_FiscalPeriod : fis_poper, P_KeyDate : fagl_keydate

CREATE VIEW I_TH_AssetDepreciationCube AS
SELECT
  AssetBalance.CompanyCode AS CompanyCode,
  AssetDepreciationArea,
  MasterFixedAsset,
  FixedAsset,
  Ledger,
  AssetBalance.FiscalYear AS FiscalYear,
  FiscalPeriod,
  SubLedgerAcctLineItemType,
  AssetAcctTransClassfctn,
  AssetAccountingKeyFigure,
  AssetAccountingKeyFigureSet,
  AssetBalance.AccountingDocument AS AccountingDocument,
  TransactionSubitem,
  DebitCreditCode,
  CurrencyRole,
  ReferenceDocument,
  LedgerGLLineItem,
  ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
  ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
  ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
  AccountingPrinciple,
  AssetAccountDetermination,
  AssetClass,
  AssetCapitalizationDate,
  _FixedAsset.FixedAssetDescription AS FixedAssetDescription,
  AssetAuthorizationContext,
  SelectedCurrencyBranch,
  DisplayCurrency,
  AmountInDisplayCurrency
FROM I_AssetBalanceCube
LEFT OUTER JOIN I_StRpJournalEntryLog AS ReportedItemsLog ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SelectedCurrencyBranch AS _SelectedCurrencyBranch ON _SelectedCurrencyBranch.SelectedCurrencyBranch = SelectedCurrencyBranch  -- association [0..1]
;