P_AUDIT_AT_AstTransByKeyFigs

DDL: P_AUDIT_AT_ASTTRANSBYKEYFIGS SQL: PAUDITATATBYKF Type: view COMPOSITE

P_AUDIT_AT_AstTransByKeyFigs is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_AssetBalanceCube) and exposes 52 fields with key fields CompanyCode, AssetDepreciationArea, MasterFixedAsset, FixedAsset, Ledger. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_AssetBalanceCube I_AssetBalanceCube from

Parameters (4)

NameTypeDefault
P_AssetAccountingKeyFigureSet faa_key_figure_set
P_FiscalYear fis_gjahr
P_FiscalPeriod fis_poper
P_KeyDate fagl_keydate

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_AssetBalanceSheetAccount _BalanceSheetAccount $projection.CompanyCode = _BalanceSheetAccount.CompanyCode and $projection.AssetAccountDetermination = _BalanceSheetAccount.AssetAccountDetermination and $projection.AssetDepreciationArea = _BalanceSheetAccount.AssetRealDepreciationArea
[0..1] I_GLAccountInChartOfAccounts _AcqnProdnCostGLAccount $projection.ChartOfAccounts = _AcqnProdnCostGLAccount.ChartOfAccounts and $projection.AcqnProdnCostGLAccount = _AcqnProdnCostGLAccount.GLAccount
[0..1] I_FixedAssetLineItem _FixedAssetLineItem $projection.AssetDepreciationArea = _FixedAssetLineItem.AssetDepreciationArea and $projection.CompanyCode = _FixedAssetLineItem.CompanyCode and $projection.FiscalYear = _FixedAssetLineItem.FiscalYear and $projection.MasterFixedAsset = _FixedAssetLineItem.MasterFixedAsset and $projection.FixedAsset = _FixedAssetLineItem.FixedAsset and $projection.SubLedgerAcctLineItemType = _FixedAssetLineItem.SubLedgerAcctLineItemType and $projection.FiscalPeriod = _FixedAssetLineItem.FiscalPeriod and $projection.LedgerGroup = _FixedAssetLineItem.LedgerGroup and $projection.AccountingDocument = _FixedAssetLineItem.AccountingDocument and $projection.Ledger = _FixedAssetLineItem.Ledger and $projection.TransactionSubitem = _FixedAssetLineItem.TransactionSubitem and $projection.DebitCreditCode = _FixedAssetLineItem.DebitCreditCode

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PAUDITATATBYKF view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (52)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode 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 FiscalYear G/L Fiscal Year
KEY AssetAccountingKeyFigure AssetAccountingKeyFigure
KEY AssetAccountingKeyFigureSet AssetAccountingKeyFigureSet
KEY AccountingDocument AccountingDocument Journal Entry
KEY CurrencyRole CurrencyRole Curr./Val. Type
KEY SubLedgerAcctLineItemType SubLedgerAcctLineItemType SLALineItemType
KEY TransactionSubitem TransactionSubitem Sub Transaction
KEY FiscalPeriod FiscalPeriod Tax period
KEY DebitCreditCode DebitCreditCode Single-Character Flag
LedgerGroup LedgerGroup Ledger Group
FiscalYearVariant FiscalYearVariant FY Variant
LedgerFiscalYear LedgerFiscalYear
PostingDate _FixedAssetLineItem PostingDate Posting Date for GR
AssetValueDate _FixedAssetLineItem AssetValueDate Reference date
DocumentItemText _FixedAssetLineItem DocumentItemText Text
ReferenceDocument _FixedAssetLineItem ReferenceDocument Reference Document
Quantity _FixedAssetLineItem Quantity Value
BaseUnit BaseUnit Unit of Measure
AssetAcctgKeyFigureSortSqnc _AssetSortedKeyFigureSetSpec AssetAcctgKeyFigureSortSqnc
AssetAuthorizationContext AssetAuthorizationContext
AssetClass AssetClass Asset Class
AssetAccountDetermination AssetAccountDetermination Account Determ.
ChartOfAccounts ChartOfAccounts Node Class
AcqnProdnCostGLAccount _BalanceSheetAccount AcqnProdnCostGLAccount
SelectedCurrencyBranch SelectedCurrencyBranch
DisplayCurrency DisplayCurrency Display Currency
AmountInDisplayCurrency
_CompanyCode _CompanyCode
_DepreciationArea _DepreciationArea
_MasterFixedAsset _MasterFixedAsset
_FixedAsset _FixedAsset
_Ledger _Ledger
_FiscalYear _FiscalYear
_AssetKeyFigure _AssetKeyFigure
_AssetKeyFigureSet _AssetKeyFigureSet
_JournalEntry _JournalEntry
_CurrencyRole _CurrencyRole
_SubLedgerAccLineItemType _SubLedgerAccLineItemType
_FiscalPeriodForVariant _FiscalPeriodForVariant
_LedgerGroup _LedgerGroup
_FiscalYearVariant _FiscalYearVariant
_AssetClass _AssetClass
_AssetAccountDetermination _AssetAccountDetermination
_ChartOfAccounts _ChartOfAccounts
_AcqnProdnCostGLAccount _AcqnProdnCostGLAccount
_SelectedCurrencyBranch _SelectedCurrencyBranch
_UnitOfMeasure _UnitOfMeasure

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 P_AUDIT_AT_AstTransByKeyFigs.
-- 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: PAUDITATATBYKF
-- Parameters: P_AssetAccountingKeyFigureSet : faa_key_figure_set, P_FiscalYear : fis_gjahr, P_FiscalPeriod : fis_poper, P_KeyDate : fagl_keydate

CREATE VIEW P_AUDIT_AT_AstTransByKeyFigs AS
SELECT
  CompanyCode,
  AssetDepreciationArea,
  MasterFixedAsset,
  FixedAsset,
  Ledger,
  FiscalYear,
  AssetAccountingKeyFigure,
  AssetAccountingKeyFigureSet,
  AccountingDocument,
  CurrencyRole,
  SubLedgerAcctLineItemType,
  TransactionSubitem,
  FiscalPeriod,
  DebitCreditCode,
  LedgerGroup,
  FiscalYearVariant,
  LedgerFiscalYear,
  _FixedAssetLineItem.PostingDate AS PostingDate,
  _FixedAssetLineItem.AssetValueDate AS AssetValueDate,
  _FixedAssetLineItem.DocumentItemText AS DocumentItemText,
  _FixedAssetLineItem.ReferenceDocument AS ReferenceDocument,
  _FixedAssetLineItem.Quantity AS Quantity,
  BaseUnit,
  _AssetSortedKeyFigureSetSpec.AssetAcctgKeyFigureSortSqnc AS AssetAcctgKeyFigureSortSqnc,
  AssetAuthorizationContext,
  AssetClass,
  AssetAccountDetermination,
  ChartOfAccounts,
  _BalanceSheetAccount.AcqnProdnCostGLAccount AS AcqnProdnCostGLAccount,
  SelectedCurrencyBranch,
  DisplayCurrency,
  sum(AmountInDisplayCurrency) AS AmountInDisplayCurrency
FROM I_AssetBalanceCube
LEFT OUTER JOIN I_AssetBalanceSheetAccount AS _BalanceSheetAccount ON CompanyCode = _BalanceSheetAccount.CompanyCode AND AssetAccountDetermination = _BalanceSheetAccount.AssetAccountDetermination AND AssetDepreciationArea = _BalanceSheetAccount.AssetRealDepreciationArea  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _AcqnProdnCostGLAccount ON ChartOfAccounts = _AcqnProdnCostGLAccount.ChartOfAccounts AND AcqnProdnCostGLAccount = _AcqnProdnCostGLAccount.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_FixedAssetLineItem AS _FixedAssetLineItem ON AssetDepreciationArea = _FixedAssetLineItem.AssetDepreciationArea AND CompanyCode = _FixedAssetLineItem.CompanyCode AND FiscalYear = _FixedAssetLineItem.FiscalYear AND MasterFixedAsset = _FixedAssetLineItem.MasterFixedAsset AND FixedAsset = _FixedAssetLineItem.FixedAsset AND SubLedgerAcctLineItemType = _FixedAssetLineItem.SubLedgerAcctLineItemType AND FiscalPeriod = _FixedAssetLineItem.FiscalPeriod AND LedgerGroup = _FixedAssetLineItem.LedgerGroup AND AccountingDocument = _FixedAssetLineItem.AccountingDocument AND Ledger = _FixedAssetLineItem.Ledger AND TransactionSubitem = _FixedAssetLineItem.TransactionSubitem AND DebitCreditCode = _FixedAssetLineItem.DebitCreditCode  -- association [0..1]
;