P_FixedAssetDepreciationList2

DDL: P_FIXEDASSETDEPRECIATIONLIST2 Type: view_entity COMPOSITE

P_FixedAssetDepreciationList2 is a Composite CDS View in SAP S/4HANA. It reads from 9 data sources and exposes 109 fields with key fields CompanyCode, AssetDepreciationArea, MasterFixedAsset, FixedAsset, Ledger.

Data Sources (9)

SourceAliasJoin Type
I_AssetKeyFigureSetSpec AssetKeyFigureSetSpec inner
I_AssetKeyFigureSetSpec AssetKeyFigureSetSpec inner
I_AssetKeyFigureSpecification AssetKeyFigureSpec inner
I_AssetKeyFigureSpecification AssetKeyFigureSpec inner
I_CompanyCode CompanyCode inner
I_LedgerCompanyCodeCrcyRoles LedgerCompanyCodeCrcyRole from
I_LedgerCompanyCodeCrcyRoles LedgerCompanyCodeCrcyRole union_all
I_FixedAssetLineItem Values inner
I_FixedAssetPlanValue Values inner

Parameters (2)

NameTypeDefault
P_LedgerFiscalYear fis_ryear
P_FiscalPeriod fis_poper

Annotations (4)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
Metadata.ignorePropagatedAnnotations true view

Fields (109)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_FixedAssetPlanValue CompanyCode
KEY AssetDepreciationArea I_FixedAssetPlanValue AssetDepreciationArea
KEY MasterFixedAsset I_FixedAssetPlanValue MasterFixedAsset
KEY FixedAsset I_FixedAssetPlanValue FixedAsset
KEY Ledger I_FixedAssetPlanValue Ledger
KEY FiscalYear I_FixedAssetPlanValue FiscalYear
KEY FiscalPeriod I_FixedAssetPlanValue FiscalPeriod
KEY SubLedgerAcctLineItemType I_FixedAssetPlanValue SubLedgerAcctLineItemType
KEY AssetAcctTransClassfctn I_FixedAssetPlanValue AssetAcctTransClassfctn
KEY AssetAccountingKeyFigure I_AssetKeyFigureSetSpec AssetAccountingKeyFigure
KEY AssetAccountingKeyFigureSet I_AssetKeyFigureSetSpec AssetAccountingKeyFigureSet
KEY AccountingDocument I_FixedAssetPlanValue AccountingDocument
KEY LedgerGLLineItem I_FixedAssetPlanValue LedgerGLLineItem
KEY TransactionSubitem I_FixedAssetPlanValue TransactionSubitem
KEY DebitCreditCode I_FixedAssetPlanValue DebitCreditCode
ChartOfDepreciation I_FixedAssetPlanValue ChartOfDepreciation
ControllingArea I_FixedAssetPlanValue ControllingArea
Country I_FixedAssetPlanValue Country
FinancialManagementArea I_FixedAssetPlanValue FinancialManagementArea
FiscalYearVariant I_FixedAssetPlanValue FiscalYearVariant
LedgerFiscalYear I_FixedAssetPlanValue LedgerFiscalYear
PostingDate I_FixedAssetPlanValue PostingDate
CompanyCodeCurrency I_FixedAssetPlanValue CompanyCodeCurrency
GlobalCurrency I_FixedAssetPlanValue GlobalCurrency
FunctionalCurrency I_FixedAssetPlanValue FunctionalCurrency
FreeDefinedCurrency1 I_FixedAssetPlanValue FreeDefinedCurrency1
FreeDefinedCurrency2 I_FixedAssetPlanValue FreeDefinedCurrency2
FreeDefinedCurrency3 I_FixedAssetPlanValue FreeDefinedCurrency3
FreeDefinedCurrency4 I_FixedAssetPlanValue FreeDefinedCurrency4
FreeDefinedCurrency5 I_FixedAssetPlanValue FreeDefinedCurrency5
FreeDefinedCurrency6 I_FixedAssetPlanValue FreeDefinedCurrency6
FreeDefinedCurrency7 I_FixedAssetPlanValue FreeDefinedCurrency7
FreeDefinedCurrency8 I_FixedAssetPlanValue FreeDefinedCurrency8
AmountInCompanyCodeCurrency I_FixedAssetPlanValue AmountInCompanyCodeCurrency
AmountInGlobalCurrency I_FixedAssetPlanValue AmountInGlobalCurrency
AmountInFunctionalCurrency I_FixedAssetPlanValue AmountInFunctionalCurrency
AmountInFreeDefinedCurrency1 I_FixedAssetPlanValue AmountInFreeDefinedCurrency1
AmountInFreeDefinedCurrency2 I_FixedAssetPlanValue AmountInFreeDefinedCurrency2
AmountInFreeDefinedCurrency3 I_FixedAssetPlanValue AmountInFreeDefinedCurrency3
AmountInFreeDefinedCurrency4 I_FixedAssetPlanValue AmountInFreeDefinedCurrency4
AmountInFreeDefinedCurrency5 I_FixedAssetPlanValue AmountInFreeDefinedCurrency5
AmountInFreeDefinedCurrency6 I_FixedAssetPlanValue AmountInFreeDefinedCurrency6
AmountInFreeDefinedCurrency7 I_FixedAssetPlanValue AmountInFreeDefinedCurrency7
AmountInFreeDefinedCurrency8 I_FixedAssetPlanValue AmountInFreeDefinedCurrency8
CompanyCodeCurrencyRole I_LedgerCompanyCodeCrcyRoles CompanyCodeCurrencyRole
GlobalCurrencyRole I_LedgerCompanyCodeCrcyRoles GlobalCurrencyRole
FunctionalCurrencyRole I_LedgerCompanyCodeCrcyRoles FunctionalCurrencyRole
FreeDefinedCurrency1Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency1Role
FreeDefinedCurrency2Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency2Role
FreeDefinedCurrency3Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency3Role
FreeDefinedCurrency4Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency4Role
FreeDefinedCurrency5Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency5Role
FreeDefinedCurrency6Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency6Role
FreeDefinedCurrency7Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency7Role
CompanyCode
KEY AssetDepreciationArea I_FixedAssetPlanValue AssetDepreciationArea
KEY MasterFixedAsset I_FixedAssetPlanValue MasterFixedAsset
KEY FixedAsset I_FixedAssetPlanValue FixedAsset
KEY Ledger I_FixedAssetPlanValue Ledger
KEY FiscalYear I_FixedAssetPlanValue FiscalYear
KEY FiscalPeriod I_FixedAssetPlanValue FiscalPeriod
KEY SubLedgerAcctLineItemType I_FixedAssetPlanValue SubLedgerAcctLineItemType
KEY AssetAcctTransClassfctn I_FixedAssetPlanValue AssetAcctTransClassfctn
KEY AssetAccountingKeyFigure I_AssetKeyFigureSetSpec AssetAccountingKeyFigure
KEY AssetAccountingKeyFigureSet I_AssetKeyFigureSetSpec AssetAccountingKeyFigureSet
KEY AccountingDocument
KEY LedgerGLLineItem
KEY TransactionSubitem
KEY DebitCreditCode
ChartOfDepreciation I_FixedAssetPlanValue ChartOfDepreciation
ControllingArea I_CompanyCode ControllingArea
Country I_CompanyCode Country
FinancialManagementArea I_CompanyCode FinancialManagementArea
FiscalYearVariant I_LedgerCompanyCodeCrcyRoles FiscalYearVariant
LedgerFiscalYear I_FixedAssetPlanValue LedgerFiscalYear
PostingDate
CompanyCodeCurrency I_FixedAssetPlanValue CompanyCodeCurrency
GlobalCurrency I_FixedAssetPlanValue GlobalCurrency
FunctionalCurrency
FreeDefinedCurrency1 I_FixedAssetPlanValue FreeDefinedCurrency1
FreeDefinedCurrency2 I_FixedAssetPlanValue FreeDefinedCurrency2
FreeDefinedCurrency3 I_FixedAssetPlanValue FreeDefinedCurrency3
FreeDefinedCurrency4 I_FixedAssetPlanValue FreeDefinedCurrency4
FreeDefinedCurrency5 I_FixedAssetPlanValue FreeDefinedCurrency5
FreeDefinedCurrency6 I_FixedAssetPlanValue FreeDefinedCurrency6
FreeDefinedCurrency7 I_FixedAssetPlanValue FreeDefinedCurrency7
FreeDefinedCurrency8 I_FixedAssetPlanValue FreeDefinedCurrency8
AmountInCompanyCodeCurrency I_FixedAssetPlanValue AmountInCompanyCodeCurrency
AmountInGlobalCurrency I_FixedAssetPlanValue AmountInGlobalCurrency
AmountInFunctionalCurrency
AmountInFreeDefinedCurrency1 I_FixedAssetPlanValue AmountInFreeDefinedCurrency1
AmountInFreeDefinedCurrency2 I_FixedAssetPlanValue AmountInFreeDefinedCurrency2
AmountInFreeDefinedCurrency3 I_FixedAssetPlanValue AmountInFreeDefinedCurrency3
AmountInFreeDefinedCurrency4 I_FixedAssetPlanValue AmountInFreeDefinedCurrency4
AmountInFreeDefinedCurrency5 I_FixedAssetPlanValue AmountInFreeDefinedCurrency5
AmountInFreeDefinedCurrency6 I_FixedAssetPlanValue AmountInFreeDefinedCurrency6
AmountInFreeDefinedCurrency7 I_FixedAssetPlanValue AmountInFreeDefinedCurrency7
AmountInFreeDefinedCurrency8 I_FixedAssetPlanValue AmountInFreeDefinedCurrency8
CompanyCodeCurrencyRole I_LedgerCompanyCodeCrcyRoles CompanyCodeCurrencyRole
GlobalCurrencyRole I_LedgerCompanyCodeCrcyRoles GlobalCurrencyRole
FunctionalCurrencyRole I_LedgerCompanyCodeCrcyRoles FunctionalCurrencyRole
FreeDefinedCurrency1Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency1Role
FreeDefinedCurrency2Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency2Role
FreeDefinedCurrency3Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency3Role
FreeDefinedCurrency4Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency4Role
FreeDefinedCurrency5Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency5Role
FreeDefinedCurrency6Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency6Role
FreeDefinedCurrency7Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency7Role
FreeDefinedCurrency8Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency8Role
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@VDM.private:true
@Metadata.ignorePropagatedAnnotations: true

define view entity P_FixedAssetDepreciationList2
  with parameters
    P_LedgerFiscalYear : fis_ryear,
    P_FiscalPeriod     : fis_poper

  as select from I_LedgerCompanyCodeCrcyRoles  as LedgerCompanyCodeCrcyRole
    inner join   I_FixedAssetLineItem          as Values                on  Values.CompanyCode = LedgerCompanyCodeCrcyRole.CompanyCode
                                                                        and Values.Ledger      = LedgerCompanyCodeCrcyRole.Ledger
    inner join   I_AssetKeyFigureSpecification as AssetKeyFigureSpec    on  AssetKeyFigureSpec.AssetAcctAnlytlTransClassfctn = Values.AssetAcctTransClassfctn
                                                                        and AssetKeyFigureSpec.SubLedgerAcctLineItemType     = Values.SubLedgerAcctLineItemType
    inner join   I_AssetKeyFigureSetSpec       as AssetKeyFigureSetSpec on AssetKeyFigureSetSpec.AssetAccountingKeyFigure = AssetKeyFigureSpec.AssetAccountingKeyFigure

{
  key Values.CompanyCode,
  key Values.AssetDepreciationArea,
  key Values.MasterFixedAsset,
  key Values.FixedAsset,
  key Values.Ledger,
  key Values.FiscalYear,
  key Values.FiscalPeriod,
  key Values.SubLedgerAcctLineItemType,
  key Values.AssetAcctTransClassfctn,
  key AssetKeyFigureSetSpec.AssetAccountingKeyFigure,
  key AssetKeyFigureSetSpec.AssetAccountingKeyFigureSet,
  key Values.AccountingDocument,
  key Values.LedgerGLLineItem,
  key Values.TransactionSubitem,
  key Values.DebitCreditCode,

      Values.ChartOfDepreciation,
      Values.ControllingArea,
      Values.Country,
      Values.FinancialManagementArea,
      Values.FiscalYearVariant,
      Values.LedgerFiscalYear,
      Values.PostingDate,

      Values.CompanyCodeCurrency,
      Values.GlobalCurrency,
      Values.FunctionalCurrency,
      Values.FreeDefinedCurrency1,
      Values.FreeDefinedCurrency2,
      Values.FreeDefinedCurrency3,
      Values.FreeDefinedCurrency4,
      Values.FreeDefinedCurrency5,
      Values.FreeDefinedCurrency6,
      Values.FreeDefinedCurrency7,
      Values.FreeDefinedCurrency8,

      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      Values.AmountInCompanyCodeCurrency,
      @Semantics.amount.currencyCode: 'GlobalCurrency'
      Values.AmountInGlobalCurrency,
      @Semantics.amount.currencyCode: 'FunctionalCurrency'
      Values.AmountInFunctionalCurrency,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency1'
      Values.AmountInFreeDefinedCurrency1,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency2'
      Values.AmountInFreeDefinedCurrency2,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency3'
      Values.AmountInFreeDefinedCurrency3,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency4'
      Values.AmountInFreeDefinedCurrency4,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency5'
      Values.AmountInFreeDefinedCurrency5,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency6'
      Values.AmountInFreeDefinedCurrency6,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency7'
      Values.AmountInFreeDefinedCurrency7,
      @Semantics.amount.currencyCode: 'FreeDefinedCurrency8'
      Values.AmountInFreeDefinedCurrency8,

      LedgerCompanyCodeCrcyRole.CompanyCodeCurrencyRole,
      LedgerCompanyCodeCrcyRole.GlobalCurrencyRole,
      LedgerCompanyCodeCrcyRole.FunctionalCurrencyRole,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency1Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency2Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency3Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency4Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency5Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency6Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency7Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency8Role
}
where
      Values.LedgerFiscalYear                    = $parameters.P_LedgerFiscalYear
  and Values.FiscalPeriod                        <= $parameters.P_FiscalPeriod
  and AssetKeyFigureSpec.PlannedValueIsInclusive <> '2'


union all select from I_LedgerCompanyCodeCrcyRoles  as LedgerCompanyCodeCrcyRole
  inner join          I_FixedAssetPlanValue         as Values                on  Values.CompanyCode = LedgerCompanyCodeCrcyRole.CompanyCode
                                                                             and Values.Ledger      = LedgerCompanyCodeCrcyRole.Ledger
  inner join          I_AssetKeyFigureSpecification as AssetKeyFigureSpec    on  AssetKeyFigureSpec.AssetAcctAnlytlTransClassfctn = Values.AssetAcctTransClassfctn
                                                                             and AssetKeyFigureSpec.SubLedgerAcctLineItemType     = Values.SubLedgerAcctLineItemType
  inner join          I_AssetKeyFigureSetSpec       as AssetKeyFigureSetSpec on AssetKeyFigureSetSpec.AssetAccountingKeyFigure = AssetKeyFigureSpec.AssetAccountingKeyFigure
  inner join          I_CompanyCode                 as CompanyCode           on CompanyCode.CompanyCode = Values.CompanyCode

{
  key Values.CompanyCode,
  key Values.AssetDepreciationArea,
  key Values.MasterFixedAsset,
  key Values.FixedAsset,
  key Values.Ledger,
  key Values.FiscalYear,
  key Values.FiscalPeriod,
  key Values.SubLedgerAcctLineItemType,
  key Values.AssetAcctTransClassfctn,
  key AssetKeyFigureSetSpec.AssetAccountingKeyFigure,
  key AssetKeyFigureSetSpec.AssetAccountingKeyFigureSet,
  key cast('' as fis_belnr)        as AccountingDocument,
  key cast('' as fis_docln)        as LedgerGLLineItem,
  key cast('000000' as fins_subta) as TransactionSubitem,
  key cast('' as shkzg)            as DebitCreditCode,

      Values.ChartOfDepreciation,
      CompanyCode.ControllingArea,
      CompanyCode.Country,
      CompanyCode.FinancialManagementArea,
      LedgerCompanyCodeCrcyRole.FiscalYearVariant,
      Values.LedgerFiscalYear,
      cast('00000000' as budat)    as PostingDate,

      Values.CompanyCodeCurrency,
      Values.GlobalCurrency,
      cast('' as fins_currfc)      as FunctionalCurrency,
      Values.FreeDefinedCurrency1,
      Values.FreeDefinedCurrency2,
      Values.FreeDefinedCurrency3,
      Values.FreeDefinedCurrency4,
      Values.FreeDefinedCurrency5,
      Values.FreeDefinedCurrency6,
      Values.FreeDefinedCurrency7,
      Values.FreeDefinedCurrency8,

      Values.AmountInCompanyCodeCurrency,
      Values.AmountInGlobalCurrency,
      cast(0 as fins_vfccur12)     as AmountInFunctionalCurrency,
      Values.AmountInFreeDefinedCurrency1,
      Values.AmountInFreeDefinedCurrency2,
      Values.AmountInFreeDefinedCurrency3,
      Values.AmountInFreeDefinedCurrency4,
      Values.AmountInFreeDefinedCurrency5,
      Values.AmountInFreeDefinedCurrency6,
      Values.AmountInFreeDefinedCurrency7,
      Values.AmountInFreeDefinedCurrency8,

      LedgerCompanyCodeCrcyRole.CompanyCodeCurrencyRole,
      LedgerCompanyCodeCrcyRole.GlobalCurrencyRole,
      LedgerCompanyCodeCrcyRole.FunctionalCurrencyRole,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency1Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency2Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency3Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency4Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency5Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency6Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency7Role,
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency8Role
}
where
      AssetKeyFigureSpec.PlannedValueIsInclusive <> '0'
  and Values.LedgerFiscalYear                    = $parameters.P_LedgerFiscalYear
  and Values.FiscalPeriod                        <= $parameters.P_FiscalPeriod
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ASSETKEYFIGURESETSPEC",
"I_ASSETKEYFIGURESPECIFICATION",
"I_COMPANYCODE",
"I_FIXEDASSETLINEITEM",
"I_FIXEDASSETPLANVALUE",
"I_LEDGERCOMPANYCODECRCYROLES"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/