I_FixedAssetValueForToFsclPerd

DDL: I_FIXEDASSETVALUEFORTOFSCLPERD Type: view COMPOSITE

Fixed Asset Values

I_FixedAssetValueForToFsclPerd is a Composite CDS View that provides data about "Fixed Asset Values" in SAP S/4HANA. It reads from 2 data sources (I_LedgerCompanyCodeCrcyRoles, P_FixedAssetValueForToFsclPerd) and exposes 192 fields with key fields CompanyCode, AssetDepreciationArea, MasterFixedAsset, FixedAsset, AccountingDocument. It has 73 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_LedgerCompanyCodeCrcyRoles LedgerCompanyCodeCrcyRole inner
P_FixedAssetValueForToFsclPerd P_FixedAssetValueForToFsclPerd from

Parameters (3)

NameTypeDefault
P_AssetAccountingKeyFigureSet faa_key_figure_set
P_FiscalYear fis_gjahr
P_ToFiscalPeriod fis_period_to

Associations (73)

CardinalityTargetAliasCondition
[0..1] I_AssetKeyFigureSet _AssetKeyFigureSet $projection.AssetAccountingKeyFigureSet = _AssetKeyFigureSet.AssetAccountingKeyFigureSet
[1] I_AssetSortedKeyFigureSetSpec _AssetSortedKeyFigureSetSpec $projection.AssetAccountingKeyFigureSet = _AssetSortedKeyFigureSetSpec.AssetAccountingKeyFigureSet and $projection.AssetAccountingSortedKeyFigure = _AssetSortedKeyFigureSetSpec.AssetAccountingSortedKeyFigure
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_DepreciationAreaForLedger _DepreciationArea $projection.CompanyCode = _DepreciationArea.CompanyCode and $projection.Ledger = _DepreciationArea.Ledger and $projection.AssetDepreciationArea = _DepreciationArea.AssetDepreciationArea
[0..1] I_RealDepreciationAreaByCoCode _AssetDepreciationArea $projection.CompanyCode = _AssetDepreciationArea.CompanyCode and $projection.AssetDepreciationArea = _AssetDepreciationArea.AssetRealDepreciationArea
[0..1] I_MasterFixedAsset _MasterFixedAsset $projection.CompanyCode = _MasterFixedAsset.CompanyCode and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset
[0..1] I_FixedAsset _FixedAsset $projection.CompanyCode = _FixedAsset.CompanyCode and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset
[0..1] I_MasterFixedAsset _PartnerMasterFixedAsset $projection.CompanyCode = _PartnerMasterFixedAsset.CompanyCode and $projection.PartnerMasterFixedAsset = _PartnerMasterFixedAsset.MasterFixedAsset
[0..1] I_FixedAsset _PartnerFixedAsset $projection.CompanyCode = _PartnerFixedAsset.CompanyCode and $projection.PartnerMasterFixedAsset = _PartnerFixedAsset.MasterFixedAsset and $projection.PartnerFixedAsset = _PartnerFixedAsset.FixedAsset
[0..1] I_JournalEntry _JournalEntry $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument
[1] I_DebitCreditCode _DebitCreditCode $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode
[0..1] I_Ledger _Ledger $projection.Ledger = _Ledger.Ledger
[0..1] I_FiscalYearForCompanyCode _FiscalYear $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode
[0..1] I_FiscalYearPeriodForCmpnyCode _FiscalPeriod $projection.FiscalYear = _FiscalPeriod.FiscalYear and $projection.FiscalPeriod = _FiscalPeriod.FiscalPeriod and $projection.CompanyCode = _FiscalPeriod.CompanyCode
[0..1] I_FiscalYearPeriodForLedger _FiscalYearPeriod $projection.CompanyCode = _FiscalYearPeriod.CompanyCode and $projection.Ledger = _FiscalYearPeriod.Ledger and $projection.FiscalYear = _FiscalYearPeriod.FiscalYear and $projection.FiscalPeriod = _FiscalYearPeriod.FiscalPeriod
[1] I_ChartOfAccounts _ChartOfAccounts $projection.chartofaccounts = _ChartOfAccounts.ChartOfAccounts
[0..1] I_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts $projection.chartofaccounts = _GLAccountInChartOfAccounts.ChartOfAccounts and $projection.GLAccount = _GLAccountInChartOfAccounts.GLAccount
[0..1] I_GLAccountInChartOfAccounts _AlternativeGLAccount $projection.CountryChartOfAccounts = _AlternativeGLAccount.ChartOfAccounts and $projection.AlternativeGLAccount = _AlternativeGLAccount.GLAccount
[0..1] I_SubLedgerAccLineItemType _SubLedgerAccLineItemType $projection.SubLedgerAcctLineItemType = _SubLedgerAccLineItemType.SubLedgerAcctLineItemType
[0..1] I_MovementCategory _AssetAcctTransClassfctn $projection.AssetAcctTransClassfctn = _AssetAcctTransClassfctn.AssetAcctTransClassfctn
[0..1] I_AssetKeyFigure _AssetKeyFigure $projection.AssetAccountingKeyFigure = _AssetKeyFigure.AssetAccountingKeyFigure
[0..1] I_LedgerGroup _LedgerGroup $projection.LedgerGroup = _LedgerGroup.LedgerGroup
[0..1] I_FinancialAccountType _FinancialAccountType $projection.FinancialAccountType = _FinancialAccountType.FinancialAccountType
[0..1] I_ChartOfDepreciation _ChartOfDepreciation $projection.ChartOfDepreciation = _ChartOfDepreciation.ChartOfDepreciation
[0..1] I_FinancialStatementVersion _FinancialStatementVersion $projection.financialstatementvariant = _FinancialStatementVersion.FinancialStatementVariant
[0..1] I_AccountingPrinciple _AccountingPrinciple $projection.AccountingPrinciple = _AccountingPrinciple.AccountingPrinciple
[0..*] I_CostCenter _CostCenter $projection.CostCenter = _CostCenter.CostCenter and $projection.controllingarea = _CostCenter.ControllingArea
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..*] I_ProfitCenter _ProfitCenter $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.controllingarea = _ProfitCenter.ControllingArea
[0..1] I_Segment _Segment $projection.Segment = _Segment.Segment
[0..1] I_FunctionalArea _FunctionalArea $projection.FunctionalArea = _FunctionalArea.FunctionalArea
[0..1] I_AssetTransactionType _AssetTransactionType $projection.AssetTransactionType = _AssetTransactionType.AssetTransactionType
[0..1] I_AssetClass _AssetClass $projection.assetclass = _AssetClass.AssetClass
[0..1] I_AssetAcctDetermination _AssetAccountDetermination $projection.assetaccountdetermination = _AssetAccountDetermination.AssetAccountDetermination
[0..1] I_FiscalYearVariant _FiscalYearVariant $projection.FiscalYearVariant = _FiscalYearVariant.FiscalYearVariant
[0..1] I_ChartOfAccounts _CountryChartOfAccounts $projection.CountryChartOfAccounts = _CountryChartOfAccounts.ChartOfAccounts
[0..1] I_ControllingArea _ControllingArea $projection.controllingarea = _ControllingArea.ControllingArea
[0..1] I_Country _Country $projection.country = _Country.Country
[0..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
[0..1] I_Currency _GlobalCurrency $projection.GlobalCurrency = _GlobalCurrency.Currency
[0..1] I_Currency _FreeDefinedCurrency1 $projection.FreeDefinedCurrency1 = _FreeDefinedCurrency1.Currency
[0..1] I_Currency _FreeDefinedCurrency2 $projection.FreeDefinedCurrency2 = _FreeDefinedCurrency2.Currency
[0..1] I_Currency _FreeDefinedCurrency3 $projection.FreeDefinedCurrency3 = _FreeDefinedCurrency3.Currency
[0..1] I_Currency _FreeDefinedCurrency4 $projection.FreeDefinedCurrency4 = _FreeDefinedCurrency4.Currency
[0..1] I_Currency _FreeDefinedCurrency5 $projection.FreeDefinedCurrency5 = _FreeDefinedCurrency5.Currency
[0..1] I_Currency _FreeDefinedCurrency6 $projection.FreeDefinedCurrency6 = _FreeDefinedCurrency6.Currency
[0..1] I_Currency _FreeDefinedCurrency7 $projection.FreeDefinedCurrency7 = _FreeDefinedCurrency7.Currency
[0..1] I_Currency _FreeDefinedCurrency8 $projection.FreeDefinedCurrency8 = _FreeDefinedCurrency8.Currency
[0..1] I_CurrencyRole _CompanyCodeCurrencyRole $projection.CompanyCodeCurrencyRole = _CompanyCodeCurrencyRole.CurrencyRole
[0..1] I_CurrencyRole _GlobalCurrencyRole $projection.GlobalCurrencyRole = _GlobalCurrencyRole.CurrencyRole
[0..1] I_CurrencyRole _FreeDefinedCurrency1Role $projection.FreeDefinedCurrency1Role = _FreeDefinedCurrency1Role.CurrencyRole
[0..1] I_CurrencyRole _FreeDefinedCurrency2Role $projection.FreeDefinedCurrency2Role = _FreeDefinedCurrency2Role.CurrencyRole
[0..1] I_CurrencyRole _FreeDefinedCurrency3Role $projection.FreeDefinedCurrency3Role = _FreeDefinedCurrency3Role.CurrencyRole
[0..1] I_CurrencyRole _FreeDefinedCurrency4Role $projection.FreeDefinedCurrency4Role = _FreeDefinedCurrency4Role.CurrencyRole
[0..1] I_CurrencyRole _FreeDefinedCurrency5Role $projection.FreeDefinedCurrency5Role = _FreeDefinedCurrency5Role.CurrencyRole
[0..1] I_CurrencyRole _FreeDefinedCurrency6Role $projection.FreeDefinedCurrency6Role = _FreeDefinedCurrency6Role.CurrencyRole
[0..1] I_CurrencyRole _FreeDefinedCurrency7Role $projection.FreeDefinedCurrency7Role = _FreeDefinedCurrency7Role.CurrencyRole
[0..1] I_CurrencyRole _FreeDefinedCurrency8Role $projection.FreeDefinedCurrency8Role = _FreeDefinedCurrency8Role.CurrencyRole
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.BaseUnit = _UnitOfMeasure.UnitOfMeasure
[0..1] I_FiscalYearForVariant _LedgerFiscalYearForVariant $projection.LedgerFiscalYear = _LedgerFiscalYearForVariant.FiscalYear and $projection.FiscalYearVariant = _LedgerFiscalYearForVariant.FiscalYearVariant
[0..1] I_FiscalYearPeriodForVariant _FiscalYearPeriodForVariant $projection.FiscalYearPeriod = _FiscalYearPeriodForVariant.FiscalYearPeriod and $projection.FiscalYearVariant = _FiscalYearPeriodForVariant.FiscalYearVariant
[0..1] I_FiscalPeriodForVariant _FiscalPeriodForVariant $projection.LedgerFiscalYear = _FiscalPeriodForVariant.FiscalYear and $projection.FiscalPeriod = _FiscalPeriodForVariant.FiscalPeriod and $projection.FiscalYearVariant = _FiscalPeriodForVariant.FiscalYearVariant
[0..1] I_AccountingDocumentType _AccountingDocumentType $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType
[0..1] I_FixedAssetNatlClfn _FixedAssetNatlClfn $projection.country = _FixedAssetNatlClfn.Country and $projection.nationalclassification = _FixedAssetNatlClfn.NationalClassification
[0..1] I_TaxDepreciationGroup _TaxDepreciationGroup $projection.country = _TaxDepreciationGroup.Country and $projection.taxdepreciationgroup = _TaxDepreciationGroup.TaxDepreciationGroup
[0..1] I_FixedAssetCountryData _FixedAssetCountryData $projection.CompanyCode = _FixedAssetCountryData.CompanyCode and $projection.MasterFixedAsset = _FixedAssetCountryData.MasterFixedAsset and $projection.FixedAsset = _FixedAssetCountryData.FixedAsset
[0..1] I_FixedAssetForLedger _FixedAssetForLedger _FixedAssetForLedger.CompanyCode = $projection.CompanyCode and _FixedAssetForLedger.MasterFixedAsset = $projection.MasterFixedAsset and _FixedAssetForLedger.FixedAsset = $projection.FixedAsset and _FixedAssetForLedger.Ledger = $projection.Ledger
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_FinancialManagementArea _FinancialManagementArea $projection.FinancialManagementArea = _FinancialManagementArea.FinancialManagementArea
[0..1] I_Fund _Fund $projection.FinancialManagementArea = _Fund.FinancialManagementArea and $projection.Fund = _Fund.Fund
[0..1] I_BudgetPeriod _BudgetPeriod $projection.BudgetPeriod = _BudgetPeriod.BudgetPeriod
[0..1] I_WBSElementByExternalID _WBSElement $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IFASSETVALUEFP view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Fixed Asset Values view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK 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

Fields (192)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode Values CompanyCode
KEY AssetDepreciationArea Values AssetDepreciationArea
KEY MasterFixedAsset Values MasterFixedAsset
KEY FixedAsset Values FixedAsset
KEY AccountingDocument Values AccountingDocument
KEY TransactionSubitem Values TransactionSubitem
KEY Ledger Values Ledger
KEY FiscalYear Values FiscalYear
KEY FiscalPeriod Values FiscalPeriod
KEY SubLedgerAcctLineItemType Values SubLedgerAcctLineItemType
KEY AssetAcctTransClassfctn Values AssetAcctTransClassfctn
KEY AssetAccountingKeyFigureSet
KEY AssetAccountingKeyFigure Values AssetAccountingKeyFigure
KEY DebitCreditCode Values DebitCreditCode
LedgerFiscalYear LedgerFiscalYear
FiscalYearVariant I_LedgerCompanyCodeCrcyRoles FiscalYearVariant
FiscalYearPeriod FiscalYearPeriod
DepreciationFiscalPeriod DepreciationFiscalPeriod
AssetAccountingSortedKeyFigure Values AssetAccountingSortedKeyFigure
PlannedValueIsInclusive Values PlannedValueIsInclusive
LedgerGroup Values LedgerGroup
Country _CompanyCode Country
CountryChartOfAccounts Values CountryChartOfAccounts
GLAccount Values GLAccount
AlternativeGLAccount Values AlternativeGLAccount
GroupMasterFixedAsset Values GroupMasterFixedAsset
GroupFixedAsset Values GroupFixedAsset
FinancialAccountType Values FinancialAccountType
AccountingDocumentCreationDate Values AccountingDocumentCreationDate
CreationTime Values CreationTime
AccountingDocCreatedByUser Values AccountingDocCreatedByUser
JointVentureCostRecoveryCode Values JointVentureCostRecoveryCode
ChartOfDepreciation Values ChartOfDepreciation
FinancialStatementVariant _AssetDepreciationArea FinancialStatementVariant
AccountingPrinciple I_LedgerCompanyCodeCrcyRoles AccountingPrinciple
CostCenter Values CostCenter
Plant Values Plant
BusinessArea Values BusinessArea
PersonnelNumber Values PersonnelNumber
FinancialManagementArea Values FinancialManagementArea
Fund Values Fund
GrantID Values GrantID
FunctionalArea Values FunctionalArea
BudgetPeriod Values BudgetPeriod
ProfitCenter Values ProfitCenter
Segment Values Segment
FundsCenter Values FundsCenter
AssetTransactionType Values AssetTransactionType
AccountingDocumentType Values AccountingDocumentType
ReferenceDocumentItem Values ReferenceDocumentItem
ReferenceDocumentType Values ReferenceDocumentType
LogicalSystem Values LogicalSystem
ReferenceDocument Values ReferenceDocument
ReferenceDocumentContext Values ReferenceDocumentContext
ReversalReferenceDocument Values ReversalReferenceDocument
ReversalReferenceDocumentCntxt Values ReversalReferenceDocumentCntxt
ReversalTransactionSubitem Values ReversalTransactionSubitem
IsReversal Values IsReversal
IsReversed Values IsReversed
DocumentDate Values DocumentDate
PostingDate Values PostingDate
AssetValueDate Values AssetValueDate
AssignmentReference Values AssignmentReference
DocumentItemText Values DocumentItemText
IsStatisticalDocument Values IsStatisticalDocument
GLBusinessTransactionType Values GLBusinessTransactionType
ChartOfAccounts _CompanyCode ChartOfAccounts
ControllingArea _CompanyCode ControllingArea
CompanyCodeCurrency Values CompanyCodeCurrency
CompanyCodeCurrencyRole I_LedgerCompanyCodeCrcyRoles CompanyCodeCurrencyRole
GlobalCurrency Values GlobalCurrency
GlobalCurrencyRole I_LedgerCompanyCodeCrcyRoles GlobalCurrencyRole
FreeDefinedCurrency1 Values FreeDefinedCurrency1
FreeDefinedCurrency1Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency1Role
FreeDefinedCurrency2 Values FreeDefinedCurrency2
FreeDefinedCurrency2Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency2Role
FreeDefinedCurrency3 Values FreeDefinedCurrency3
FreeDefinedCurrency3Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency3Role
FreeDefinedCurrency4 Values FreeDefinedCurrency4
FreeDefinedCurrency4Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency4Role
FreeDefinedCurrency5 Values FreeDefinedCurrency5
FreeDefinedCurrency5Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency5Role
FreeDefinedCurrency6 Values FreeDefinedCurrency6
FreeDefinedCurrency6Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency6Role
FreeDefinedCurrency7 Values FreeDefinedCurrency7
FreeDefinedCurrency7Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency7Role
FreeDefinedCurrency8 Values FreeDefinedCurrency8
FreeDefinedCurrency8Role I_LedgerCompanyCodeCrcyRoles FreeDefinedCurrency8Role
BaseUnit BaseUnit
Quantity Quantity
AssetAccountDetermination _FixedAsset AssetAccountDetermination
AssetClass _FixedAsset AssetClass
FixedAssetGroup _FixedAsset FixedAssetGroup
AssetSupplierName _FixedAsset AssetSupplierName
InvestmentOrder _FixedAsset InvestmentOrder
InventoryIsCounted _FixedAsset InventoryIsCounted
LastInventoryDate _FixedAsset LastInventoryDate
Inventory _FixedAsset Inventory
Group1AssetEvaluationKey _FixedAsset Group1AssetEvaluationKey
Group2AssetEvaluationKey _FixedAsset Group2AssetEvaluationKey
Group3AssetEvaluationKey _FixedAsset Group3AssetEvaluationKey
Group4AssetEvaluationKey _FixedAsset Group4AssetEvaluationKey
Group5AssetEvaluationKey _FixedAsset Group5AssetEvaluationKey
AssetSerialNumber _FixedAsset AssetSerialNumber
Supplier _FixedAsset Supplier
AssetCapitalizationDate _FixedAssetForLedger AssetCapitalizationDate
AssetDeactivationDate _FixedAssetForLedger AssetDeactivationDate
FirstAcquisitionFiscalYear _FixedAssetForLedger FirstAcquisitionFiscalYear
FirstAcquisitionFiscalPeriod _FixedAssetForLedger FirstAcquisitionFiscalPeriod
NationalClassification _FixedAssetCountryData NationalClassification
TaxDepreciationGroup _FixedAssetCountryData TaxDepreciationGroup
PartnerMasterFixedAsset Values PartnerMasterFixedAsset
PartnerFixedAsset Values PartnerFixedAsset
WBSElementInternalID _FixedAsset InvestmentProjectWBSElement
_CompanyCode _CompanyCode
_ControllingArea _ControllingArea
_Country _Country
_CountryChartOfAccounts _CountryChartOfAccounts
_FiscalYearVariant _FiscalYearVariant
_DepreciationArea _DepreciationArea
_MasterFixedAsset _MasterFixedAsset
_FixedAsset _FixedAsset
_Ledger _Ledger
_JournalEntry _JournalEntry
_DebitCreditCode _DebitCreditCode
_FiscalYear _FiscalYear
_FiscalPeriod _FiscalPeriod
_FiscalYearPeriod _FiscalYearPeriod
_SubLedgerAccLineItemType _SubLedgerAccLineItemType
_ChartOfAccounts _ChartOfAccounts
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_AlternativeGLAccount _AlternativeGLAccount
_LedgerGroup _LedgerGroup
_AssetAcctTransClassfctn _AssetAcctTransClassfctn
_TaxDepreciationGroup _TaxDepreciationGroup
_FinancialAccountType _FinancialAccountType
_ChartOfDepreciation _ChartOfDepreciation
_FinancialStatementVersion _FinancialStatementVersion
_AccountingPrinciple _AccountingPrinciple
_CostCenter _CostCenter
_Plant _Plant
_BusinessArea _BusinessArea
_ProfitCenter _ProfitCenter
_Segment _Segment
_FunctionalArea _FunctionalArea
_AssetTransactionType _AssetTransactionType
_AssetKeyFigureSet _AssetKeyFigureSet
_AssetKeyFigure _AssetKeyFigure
_AssetSortedKeyFigureSetSpec _AssetSortedKeyFigureSetSpec
_AssetClass _AssetClass
_AssetAccountDetermination _AssetAccountDetermination
_CompanyCodeCurrency _CompanyCodeCurrency
_GlobalCurrency _GlobalCurrency
_FreeDefinedCurrency1 _FreeDefinedCurrency1
_FreeDefinedCurrency2 _FreeDefinedCurrency2
_FreeDefinedCurrency3 _FreeDefinedCurrency3
_FreeDefinedCurrency4 _FreeDefinedCurrency4
_FreeDefinedCurrency5 _FreeDefinedCurrency5
_FreeDefinedCurrency6 _FreeDefinedCurrency6
_FreeDefinedCurrency7 _FreeDefinedCurrency7
_FreeDefinedCurrency8 _FreeDefinedCurrency8
_CompanyCodeCurrencyRole _CompanyCodeCurrencyRole
_GlobalCurrencyRole _GlobalCurrencyRole
_FreeDefinedCurrency1Role _FreeDefinedCurrency1Role
_FreeDefinedCurrency2Role _FreeDefinedCurrency2Role
_FreeDefinedCurrency3Role _FreeDefinedCurrency3Role
_FreeDefinedCurrency4Role _FreeDefinedCurrency4Role
_FreeDefinedCurrency5Role _FreeDefinedCurrency5Role
_FreeDefinedCurrency6Role _FreeDefinedCurrency6Role
_FreeDefinedCurrency7Role _FreeDefinedCurrency7Role
_FreeDefinedCurrency8Role _FreeDefinedCurrency8Role
_UnitOfMeasure _UnitOfMeasure
_FixedAssetGroup _FixedAsset _FixedAssetGroup
_InvestmentOrder _FixedAsset _InvestmentOrder
_Group1AssetEvaluationKey _FixedAsset _Group1AssetEvaluationKey
_Group2AssetEvaluationKey _FixedAsset _Group2AssetEvaluationKey
_Group3AssetEvaluationKey _FixedAsset _Group3AssetEvaluationKey
_Group4AssetEvaluationKey _FixedAsset _Group4AssetEvaluationKey
_Group5AssetEvaluationKey _FixedAsset _Group5AssetEvaluationKey
_LedgerFiscalYearForVariant _LedgerFiscalYearForVariant
_FiscalYearPeriodForVariant _FiscalYearPeriodForVariant
_FiscalPeriodForVariant _FiscalPeriodForVariant
_AccountingDocumentType _AccountingDocumentType
_FixedAssetCountryData _FixedAssetCountryData
_FixedAssetNatlClfn _FixedAssetNatlClfn
_Supplier _Supplier
_FinancialManagementArea _FinancialManagementArea
_Fund _Fund
_BudgetPeriod _BudgetPeriod
_PartnerMasterFixedAsset _PartnerMasterFixedAsset
_PartnerFixedAsset _PartnerFixedAsset
_WBSElement _WBSElement
@AbapCatalog: {sqlViewName: 'IFASSETVALUEFP', preserveKey: true, compiler.compareFilter: true}
@EndUserText.label: 'Fixed Asset Values'
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #CHECK
@ObjectModel: { usageType.serviceQuality: #D,
                usageType.sizeCategory: #XXL,
                usageType.dataClass: #MIXED }
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true

define view I_FixedAssetValueForToFsclPerd
  with parameters
    P_AssetAccountingKeyFigureSet : faa_key_figure_set,
    P_FiscalYear                  : fis_gjahr,
    P_ToFiscalPeriod              : fis_period_to

  as select from P_FixedAssetValueForToFsclPerd(P_AssetAccountingKeyFigureSet: :P_AssetAccountingKeyFigureSet, P_FiscalYear: :P_FiscalYear, P_ToFiscalPeriod: :P_ToFiscalPeriod) as Values
    inner join   I_LedgerCompanyCodeCrcyRoles                                                                                                                                    as LedgerCompanyCodeCrcyRole on  LedgerCompanyCodeCrcyRole.CompanyCode = Values.CompanyCode
                                                                                                                                                                                                              and LedgerCompanyCodeCrcyRole.Ledger      = Values.Ledger

  //  as select from           I_LedgerCompanyCodeCrcyRoles                                                                                                                                    as LedgerCompanyCodeCrcyRole

  //    inner join             P_FixedAssetValueForToFsclPerd(P_AssetAccountingKeyFigureSet: :P_AssetAccountingKeyFigureSet, P_FiscalYear: :P_FiscalYear, P_ToFiscalPeriod: :P_ToFiscalPeriod) as Values                    on  Values.CompanyCode = LedgerCompanyCodeCrcyRole.CompanyCode

  //                                                                                                                                                                                                                        and Values.Ledger      = LedgerCompanyCodeCrcyRole.Ledger

  //    left outer to one join I_DepreciationAreaForLedger                                                                                                                                     as DepreciationAreaForLedger on  DepreciationAreaForLedger.CompanyCode           = Values.CompanyCode

  //                                                                                                                                                                                                                        and DepreciationAreaForLedger.Ledger                = Values.Ledger

  //                                                                                                                                                                                                                        and DepreciationAreaForLedger.AssetDepreciationArea = Values.AssetDepreciationArea

  //    left outer to one join I_AssetValuationView                                                                                                                                            as AssetValuationView        on AssetValuationView.AssetValuationView = DepreciationAreaForLedger.AssetValuationView


  //Associations to Core views

  association [0..1] to I_AssetKeyFigureSet            as _AssetKeyFigureSet           on  $projection.AssetAccountingKeyFigureSet = _AssetKeyFigureSet.AssetAccountingKeyFigureSet
  association [1]    to I_AssetSortedKeyFigureSetSpec  as _AssetSortedKeyFigureSetSpec on  $projection.AssetAccountingKeyFigureSet    = _AssetSortedKeyFigureSetSpec.AssetAccountingKeyFigureSet
                                                                                       and $projection.AssetAccountingSortedKeyFigure = _AssetSortedKeyFigureSetSpec.AssetAccountingSortedKeyFigure
  association [0..1] to I_CompanyCode                  as _CompanyCode                 on  $projection.CompanyCode = _CompanyCode.CompanyCode
  association [0..1] to I_DepreciationAreaForLedger    as _DepreciationArea            on  $projection.CompanyCode           = _DepreciationArea.CompanyCode
                                                                                       and $projection.Ledger                = _DepreciationArea.Ledger
                                                                                       and $projection.AssetDepreciationArea = _DepreciationArea.AssetDepreciationArea
  association [0..1] to I_RealDepreciationAreaByCoCode as _AssetDepreciationArea       on  $projection.CompanyCode           = _AssetDepreciationArea.CompanyCode
                                                                                       and $projection.AssetDepreciationArea = _AssetDepreciationArea.AssetRealDepreciationArea
  association [0..1] to I_MasterFixedAsset             as _MasterFixedAsset            on  $projection.CompanyCode      = _MasterFixedAsset.CompanyCode
                                                                                       and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset
  association [0..1] to I_FixedAsset                   as _FixedAsset                  on  $projection.CompanyCode      = _FixedAsset.CompanyCode
                                                                                       and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset
                                                                                       and $projection.FixedAsset       = _FixedAsset.FixedAsset
  association [0..1] to I_MasterFixedAsset             as _PartnerMasterFixedAsset     on  $projection.CompanyCode             = _PartnerMasterFixedAsset.CompanyCode
                                                                                       and $projection.PartnerMasterFixedAsset = _PartnerMasterFixedAsset.MasterFixedAsset
  association [0..1] to I_FixedAsset                   as _PartnerFixedAsset           on  $projection.CompanyCode             = _PartnerFixedAsset.CompanyCode
                                                                                       and $projection.PartnerMasterFixedAsset = _PartnerFixedAsset.MasterFixedAsset
                                                                                       and $projection.PartnerFixedAsset       = _PartnerFixedAsset.FixedAsset
  association [0..1] to I_JournalEntry                 as _JournalEntry                on  $projection.CompanyCode        = _JournalEntry.CompanyCode
                                                                                       and $projection.FiscalYear         = _JournalEntry.FiscalYear
                                                                                       and $projection.AccountingDocument = _JournalEntry.AccountingDocument
  association [1]    to I_DebitCreditCode              as _DebitCreditCode             on  $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode
  association [0..1] to I_Ledger                       as _Ledger                      on  $projection.Ledger = _Ledger.Ledger
  association [0..1] to I_FiscalYearForCompanyCode     as _FiscalYear                  on  $projection.FiscalYear  = _FiscalYear.FiscalYear
                                                                                       and $projection.CompanyCode = _FiscalYear.CompanyCode
  association [0..1] to I_FiscalYearPeriodForCmpnyCode as _FiscalPeriod                on  $projection.FiscalYear   = _FiscalPeriod.FiscalYear
                                                                                       and $projection.FiscalPeriod = _FiscalPeriod.FiscalPeriod
                                                                                       and $projection.CompanyCode  = _FiscalPeriod.CompanyCode
  association [0..1] to I_FiscalYearPeriodForLedger    as _FiscalYearPeriod            on  $projection.CompanyCode  = _FiscalYearPeriod.CompanyCode
                                                                                       and $projection.Ledger       = _FiscalYearPeriod.Ledger
                                                                                       and $projection.FiscalYear   = _FiscalYearPeriod.FiscalYear
                                                                                       and $projection.FiscalPeriod = _FiscalYearPeriod.FiscalPeriod
  association [1]    to I_ChartOfAccounts              as _ChartOfAccounts             on  $projection.chartofaccounts = _ChartOfAccounts.ChartOfAccounts
  association [0..1] to I_GLAccountInChartOfAccounts   as _GLAccountInChartOfAccounts  on  $projection.chartofaccounts = _GLAccountInChartOfAccounts.ChartOfAccounts
                                                                                       and $projection.GLAccount       = _GLAccountInChartOfAccounts.GLAccount
  association [0..1] to I_GLAccountInChartOfAccounts   as _AlternativeGLAccount        on  $projection.CountryChartOfAccounts = _AlternativeGLAccount.ChartOfAccounts
                                                                                       and $projection.AlternativeGLAccount   = _AlternativeGLAccount.GLAccount
  association [0..1] to I_SubLedgerAccLineItemType     as _SubLedgerAccLineItemType    on  $projection.SubLedgerAcctLineItemType = _SubLedgerAccLineItemType.SubLedgerAcctLineItemType
  association [0..1] to I_MovementCategory             as _AssetAcctTransClassfctn     on  $projection.AssetAcctTransClassfctn = _AssetAcctTransClassfctn.AssetAcctTransClassfctn
  association [0..1] to I_AssetKeyFigure               as _AssetKeyFigure              on  $projection.AssetAccountingKeyFigure = _AssetKeyFigure.AssetAccountingKeyFigure
  association [0..1] to I_LedgerGroup                  as _LedgerGroup                 on  $projection.LedgerGroup = _LedgerGroup.LedgerGroup
  association [0..1] to I_FinancialAccountType         as _FinancialAccountType        on  $projection.FinancialAccountType = _FinancialAccountType.FinancialAccountType
  association [0..1] to I_ChartOfDepreciation          as _ChartOfDepreciation         on  $projection.ChartOfDepreciation = _ChartOfDepreciation.ChartOfDepreciation
  association [0..1] to I_FinancialStatementVersion    as _FinancialStatementVersion   on  $projection.financialstatementvariant = _FinancialStatementVersion.FinancialStatementVariant
  association [0..1] to I_AccountingPrinciple          as _AccountingPrinciple         on  $projection.AccountingPrinciple = _AccountingPrinciple.AccountingPrinciple
  association [0..*] to I_CostCenter                   as _CostCenter                  on  $projection.CostCenter      = _CostCenter.CostCenter
                                                                                       and $projection.controllingarea = _CostCenter.ControllingArea
  association [0..1] to I_Plant                        as _Plant                       on  $projection.Plant = _Plant.Plant
  association [0..1] to I_BusinessArea                 as _BusinessArea                on  $projection.BusinessArea = _BusinessArea.BusinessArea
  association [0..*] to I_ProfitCenter                 as _ProfitCenter                on  $projection.ProfitCenter    = _ProfitCenter.ProfitCenter
                                                                                       and $projection.controllingarea = _ProfitCenter.ControllingArea
  association [0..1] to I_Segment                      as _Segment                     on  $projection.Segment = _Segment.Segment
  association [0..1] to I_FunctionalArea               as _FunctionalArea              on  $projection.FunctionalArea = _FunctionalArea.FunctionalArea
  association [0..1] to I_AssetTransactionType         as _AssetTransactionType        on  $projection.AssetTransactionType = _AssetTransactionType.AssetTransactionType

  association [0..1] to I_AssetClass                   as _AssetClass                  on  $projection.assetclass = _AssetClass.AssetClass
  association [0..1] to I_AssetAcctDetermination       as _AssetAccountDetermination   on  $projection.assetaccountdetermination = _AssetAccountDetermination.AssetAccountDetermination

  association [0..1] to I_FiscalYearVariant            as _FiscalYearVariant           on  $projection.FiscalYearVariant = _FiscalYearVariant.FiscalYearVariant
  association [0..1] to I_ChartOfAccounts              as _CountryChartOfAccounts      on  $projection.CountryChartOfAccounts = _CountryChartOfAccounts.ChartOfAccounts
  association [0..1] to I_ControllingArea              as _ControllingArea             on  $projection.controllingarea = _ControllingArea.ControllingArea
  association [0..1] to I_Country                      as _Country                     on  $projection.country = _Country.Country

  association [0..1] to I_Currency                     as _CompanyCodeCurrency         on  $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
  association [0..1] to I_Currency                     as _GlobalCurrency              on  $projection.GlobalCurrency = _GlobalCurrency.Currency
  association [0..1] to I_Currency                     as _FreeDefinedCurrency1        on  $projection.FreeDefinedCurrency1 = _FreeDefinedCurrency1.Currency
  association [0..1] to I_Currency                     as _FreeDefinedCurrency2        on  $projection.FreeDefinedCurrency2 = _FreeDefinedCurrency2.Currency
  association [0..1] to I_Currency                     as _FreeDefinedCurrency3        on  $projection.FreeDefinedCurrency3 = _FreeDefinedCurrency3.Currency
  association [0..1] to I_Currency                     as _FreeDefinedCurrency4        on  $projection.FreeDefinedCurrency4 = _FreeDefinedCurrency4.Currency
  association [0..1] to I_Currency                     as _FreeDefinedCurrency5        on  $projection.FreeDefinedCurrency5 = _FreeDefinedCurrency5.Currency
  association [0..1] to I_Currency                     as _FreeDefinedCurrency6        on  $projection.FreeDefinedCurrency6 = _FreeDefinedCurrency6.Currency
  association [0..1] to I_Currency                     as _FreeDefinedCurrency7        on  $projection.FreeDefinedCurrency7 = _FreeDefinedCurrency7.Currency
  association [0..1] to I_Currency                     as _FreeDefinedCurrency8        on  $projection.FreeDefinedCurrency8 = _FreeDefinedCurrency8.Currency

  association [0..1] to I_CurrencyRole                 as _CompanyCodeCurrencyRole     on  $projection.CompanyCodeCurrencyRole = _CompanyCodeCurrencyRole.CurrencyRole
  association [0..1] to I_CurrencyRole                 as _GlobalCurrencyRole          on  $projection.GlobalCurrencyRole = _GlobalCurrencyRole.CurrencyRole
  association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency1Role    on  $projection.FreeDefinedCurrency1Role = _FreeDefinedCurrency1Role.CurrencyRole
  association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency2Role    on  $projection.FreeDefinedCurrency2Role = _FreeDefinedCurrency2Role.CurrencyRole
  association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency3Role    on  $projection.FreeDefinedCurrency3Role = _FreeDefinedCurrency3Role.CurrencyRole
  association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency4Role    on  $projection.FreeDefinedCurrency4Role = _FreeDefinedCurrency4Role.CurrencyRole
  association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency5Role    on  $projection.FreeDefinedCurrency5Role = _FreeDefinedCurrency5Role.CurrencyRole
  association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency6Role    on  $projection.FreeDefinedCurrency6Role = _FreeDefinedCurrency6Role.CurrencyRole
  association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency7Role    on  $projection.FreeDefinedCurrency7Role = _FreeDefinedCurrency7Role.CurrencyRole
  association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency8Role    on  $projection.FreeDefinedCurrency8Role = _FreeDefinedCurrency8Role.CurrencyRole

  association [0..1] to I_UnitOfMeasure                as _UnitOfMeasure               on  $projection.BaseUnit = _UnitOfMeasure.UnitOfMeasure

  association [0..1] to I_FiscalYearForVariant         as _LedgerFiscalYearForVariant  on  $projection.LedgerFiscalYear  = _LedgerFiscalYearForVariant.FiscalYear
                                                                                       and $projection.FiscalYearVariant = _LedgerFiscalYearForVariant.FiscalYearVariant
  association [0..1] to I_FiscalYearPeriodForVariant   as _FiscalYearPeriodForVariant  on  $projection.FiscalYearPeriod  = _FiscalYearPeriodForVariant.FiscalYearPeriod
                                                                                       and $projection.FiscalYearVariant = _FiscalYearPeriodForVariant.FiscalYearVariant
  association [0..1] to I_FiscalPeriodForVariant       as _FiscalPeriodForVariant      on  $projection.LedgerFiscalYear  = _FiscalPeriodForVariant.FiscalYear
                                                                                       and $projection.FiscalPeriod      = _FiscalPeriodForVariant.FiscalPeriod
                                                                                       and $projection.FiscalYearVariant = _FiscalPeriodForVariant.FiscalYearVariant
  association [0..1] to I_AccountingDocumentType       as _AccountingDocumentType      on  $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType
  association [0..1] to I_FixedAssetNatlClfn           as _FixedAssetNatlClfn          on  $projection.country                = _FixedAssetNatlClfn.Country
                                                                                       and $projection.nationalclassification = _FixedAssetNatlClfn.NationalClassification
  association [0..1] to I_TaxDepreciationGroup         as _TaxDepreciationGroup        on  $projection.country              = _TaxDepreciationGroup.Country
                                                                                       and $projection.taxdepreciationgroup = _TaxDepreciationGroup.TaxDepreciationGroup
  association [0..1] to I_FixedAssetCountryData        as _FixedAssetCountryData       on  $projection.CompanyCode      = _FixedAssetCountryData.CompanyCode
                                                                                       and $projection.MasterFixedAsset = _FixedAssetCountryData.MasterFixedAsset
                                                                                       and $projection.FixedAsset       = _FixedAssetCountryData.FixedAsset
  association [0..1] to I_FixedAssetForLedger          as _FixedAssetForLedger         on  _FixedAssetForLedger.CompanyCode      = $projection.CompanyCode
                                                                                       and _FixedAssetForLedger.MasterFixedAsset = $projection.MasterFixedAsset
                                                                                       and _FixedAssetForLedger.FixedAsset       = $projection.FixedAsset
                                                                                       and _FixedAssetForLedger.Ledger           = $projection.Ledger
  association [0..1] to I_Supplier                     as _Supplier                    on  $projection.Supplier = _Supplier.Supplier
  association [0..1] to I_FinancialManagementArea      as _FinancialManagementArea     on  $projection.FinancialManagementArea = _FinancialManagementArea.FinancialManagementArea
  association [0..1] to I_Fund                         as _Fund                        on  $projection.FinancialManagementArea = _Fund.FinancialManagementArea
                                                                                       and $projection.Fund                    = _Fund.Fund
  association [0..1] to I_BudgetPeriod                 as _BudgetPeriod                on  $projection.BudgetPeriod = _BudgetPeriod.BudgetPeriod
  association [0..1] to I_WBSElementByExternalID       as _WBSElement                  on  $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID
{

      @ObjectModel.foreignKey.association: '_CompanyCode'
  key Values.CompanyCode,
      @ObjectModel.foreignKey.association: '_DepreciationArea'
  key Values.AssetDepreciationArea,
      @ObjectModel.foreignKey.association: '_MasterFixedAsset'
  key Values.MasterFixedAsset,
      @ObjectModel.foreignKey.association: '_FixedAsset'
  key Values.FixedAsset,
      @ObjectModel.foreignKey.association: '_JournalEntry'
  key Values.AccountingDocument,
  key Values.TransactionSubitem,
      @ObjectModel.foreignKey.association: '_Ledger'
  key Values.Ledger,
      @ObjectModel.foreignKey.association: '_FiscalYear'
  key Values.FiscalYear,
      //@ObjectModel.foreignKey.association: '_FiscalPeriod'

      @ObjectModel.foreignKey.association: '_FiscalPeriodForVariant'
  key Values.FiscalPeriod,
      @ObjectModel.foreignKey.association: '_SubledgerAccLineItemType'
  key Values.SubLedgerAcctLineItemType,
      @ObjectModel.foreignKey.association: '_AssetAcctTransClassfctn'
  key Values.AssetAcctTransClassfctn,
      @ObjectModel.foreignKey.association: '_AssetKeyFigureSet'
  key :P_AssetAccountingKeyFigureSet                           as AssetAccountingKeyFigureSet,
      @ObjectModel.foreignKey.association: '_AssetKeyFigure'
  key Values.AssetAccountingKeyFigure,
      @ObjectModel.foreignKey.association: '_DebitCreditCode'
  key Values.DebitCreditCode,

      @ObjectModel.foreignKey.association: '_LedgerFiscalYearForVariant'
      @Semantics.fiscal.year: true
      LedgerFiscalYear,
      @ObjectModel.foreignKey.association: '_FiscalYearVariant'
      @Semantics.fiscal.yearVariant: true
      LedgerCompanyCodeCrcyRole.FiscalYearVariant,
      @ObjectModel.foreignKey.association: '_FiscalYearPeriodForVariant'
      @Semantics.fiscal.yearPeriod: true
      FiscalYearPeriod,
      DepreciationFiscalPeriod,

      @ObjectModel.foreignKey.association: '_AssetSortedKeyFigureSetSpec'
      Values.AssetAccountingSortedKeyFigure,
      Values.PlannedValueIsInclusive,

      @ObjectModel.foreignKey.association: '_LedgerGroup'
      Values.LedgerGroup,

      @ObjectModel.foreignKey.association: '_Country'
      _CompanyCode.Country,
      @ObjectModel.foreignKey.association: '_CountryChartOfAccounts'
      Values.CountryChartOfAccounts,
      @ObjectModel.foreignKey.association: '_GLAccountInChartOfAccounts'
      Values.GLAccount,
      @ObjectModel.foreignKey.association: '_AlternativeGLAccount'
      Values.AlternativeGLAccount,

      Values.GroupMasterFixedAsset,
      Values.GroupFixedAsset,
      @ObjectModel.foreignKey.association: '_FinancialAccountType'
      Values.FinancialAccountType,
      @Semantics.businessDate.at: true
      Values.AccountingDocumentCreationDate,
      Values.CreationTime,
      Values.AccountingDocCreatedByUser,
      Values.JointVentureCostRecoveryCode,
      @ObjectModel.foreignKey.association: '_ChartOfDepreciation'
      Values.ChartOfDepreciation,
      @ObjectModel.foreignKey.association: '_FinancialStatementVersion'
      _AssetDepreciationArea.FinancialStatementVariant,

      @ObjectModel.foreignKey.association: '_AccountingPrinciple'
      LedgerCompanyCodeCrcyRole.AccountingPrinciple,

      @ObjectModel.foreignKey.association: '_CostCenter'
      Values.CostCenter,
      @ObjectModel.foreignKey.association: '_Plant'
      Values.Plant,
      @ObjectModel.foreignKey.association: '_BusinessArea'
      Values.BusinessArea,
      Values.PersonnelNumber,
      @ObjectModel.foreignKey.association: '_FinancialManagementArea'
      Values.FinancialManagementArea,
      @ObjectModel.foreignKey.association: '_Fund'
      Values.Fund,
      Values.GrantID,
      @ObjectModel.foreignKey.association: '_FunctionalArea'
      Values.FunctionalArea,
      @ObjectModel.foreignKey.association: '_BudgetPeriod'
      Values.BudgetPeriod,
      @ObjectModel.foreignKey.association: '_ProfitCenter'
      Values.ProfitCenter,
      @ObjectModel.foreignKey.association: '_Segment'
      Values.Segment,
      Values.FundsCenter,
      @ObjectModel.foreignKey.association: '_AssetTransactionType'
      Values.AssetTransactionType,
      @ObjectModel.foreignKey.association: '_AccountingDocumentType'
      Values.AccountingDocumentType,

      Values.ReferenceDocumentItem,
      Values.ReferenceDocumentType,
      Values.LogicalSystem,
      Values.ReferenceDocument,
      Values.ReferenceDocumentContext,
      Values.ReversalReferenceDocument,
      Values.ReversalReferenceDocumentCntxt,
      Values.ReversalTransactionSubitem,
      Values.IsReversal,
      Values.IsReversed,
      Values.DocumentDate,
      Values.PostingDate,
      Values.AssetValueDate,
      Values.AssignmentReference,
      Values.DocumentItemText,
      Values.IsStatisticalDocument,
      Values.GLBusinessTransactionType,

      // Fields added from Association _CompanyCode

      @ObjectModel.foreignKey.association: '_ChartOfAccounts'
      _CompanyCode.ChartOfAccounts, //required for Association to _GLAccountInChartOfAccounts

      @ObjectModel.foreignKey.association: '_ControllingArea'
      _CompanyCode.ControllingArea, // required for Association to _CostCenter

      //      @ObjectModel.foreignKey.association: '_FiscalYearVariant'

      //      _CompanyCode.FiscalYearVariant,


      @ObjectModel.foreignKey.association: '_CompanyCodeCurrency'
      @Semantics.currencyCode: true
      Values.CompanyCodeCurrency,

      @ObjectModel.foreignKey.association: '_CompanyCodeCurrencyRole'
      LedgerCompanyCodeCrcyRole.CompanyCodeCurrencyRole,

      @DefaultAggregation: #SUM
      @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInCompanyCodeCrcy + Values.ActualAmountInCompanyCodeCrcy
           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInCompanyCodeCrcy
           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInCompanyCodeCrcy
           else Values.ActualAmountInCompanyCodeCrcy       end as AmountInCompanyCodeCurrency,

      @ObjectModel.foreignKey.association: '_GlobalCurrency'
      @Semantics.currencyCode: true
      Values.GlobalCurrency,

      @ObjectModel.foreignKey.association: '_GlobalCurrencyRole'
      LedgerCompanyCodeCrcyRole.GlobalCurrencyRole,

      @DefaultAggregation: #SUM
      @Semantics: { amount : {currencyCode: 'GlobalCurrency'} }
      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInGlobalCurrency + Values.ActualAmountInGlobalCurrency
           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInGlobalCurrency
           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInGlobalCurrency
           else Values.ActualAmountInGlobalCurrency    end     as AmountInGlobalCurrency,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency1'
      @Semantics.currencyCode: true
      Values.FreeDefinedCurrency1,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency1Role'
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency1Role,

      @DefaultAggregation: #SUM
      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency1'} }
      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy1 + Values.ActualAmountInFreeDfndCrcy1
           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy1
           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy1
           else Values.ActualAmountInFreeDfndCrcy1    end      as AmountInFreeDefinedCurrency1,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency2'
      @Semantics.currencyCode: true
      Values.FreeDefinedCurrency2,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency2Role'
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency2Role,

      @DefaultAggregation: #SUM
      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency2'} }
      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy2 + Values.ActualAmountInFreeDfndCrcy2
           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy2
           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy2
           else Values.ActualAmountInFreeDfndCrcy2    end      as AmountInFreeDefinedCurrency2,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency3'
      @Semantics.currencyCode: true
      Values.FreeDefinedCurrency3,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency3Role'
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency3Role,

      @DefaultAggregation: #SUM
      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency3'} }
      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy3 + Values.ActualAmountInFreeDfndCrcy3
           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy3
           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy3
           else Values.ActualAmountInFreeDfndCrcy3    end      as AmountInFreeDefinedCurrency3,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency4'
      @Semantics.currencyCode: true
      Values.FreeDefinedCurrency4,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency4Role'
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency4Role,

      @DefaultAggregation: #SUM
      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency4'} }
      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy4 + Values.ActualAmountInFreeDfndCrcy4
           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy4
           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy4
           else Values.ActualAmountInFreeDfndCrcy4    end      as AmountInFreeDefinedCurrency4,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency5'
      @Semantics.currencyCode: true
      Values.FreeDefinedCurrency5,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency5Role'
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency5Role,

      @DefaultAggregation: #SUM
      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency5'} }
      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy5 + Values.ActualAmountInFreeDfndCrcy5
           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy5
           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy5
           else Values.ActualAmountInFreeDfndCrcy5    end      as AmountInFreeDefinedCurrency5,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency6'
      @Semantics.currencyCode: true
      Values.FreeDefinedCurrency6,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency6Role'
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency6Role,

      @DefaultAggregation: #SUM
      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency6'} }
      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy6 + Values.ActualAmountInFreeDfndCrcy6
           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy6
           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy6
           else Values.ActualAmountInFreeDfndCrcy6    end      as AmountInFreeDefinedCurrency6,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency7'
      @Semantics.currencyCode: true
      Values.FreeDefinedCurrency7,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency7Role'
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency7Role,

      @DefaultAggregation: #SUM
      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency7'} }
      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy7 + Values.ActualAmountInFreeDfndCrcy7
           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy7
           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy7
           else Values.ActualAmountInFreeDfndCrcy7    end      as AmountInFreeDefinedCurrency7,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency8'
      @Semantics.currencyCode: true
      Values.FreeDefinedCurrency8,

      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency8Role'
      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency8Role,

      @DefaultAggregation: #SUM
      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency8'} }
      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy8  + Values.ActualAmountInFreeDfndCrcy8
           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy8
           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '')  then Values.PlanAmountInFreeDefinedCrcy8
           else Values.ActualAmountInFreeDfndCrcy8    end      as AmountInFreeDefinedCurrency8,

      @ObjectModel.foreignKey.association: '_UnitOfMeasure'
      @Semantics.unitOfMeasure:true
      BaseUnit,
      @DefaultAggregation: #SUM
      @Semantics: { quantity : {unitOfMeasure: 'BaseUnit'} }
      Quantity,

      /* Fields from ANLA */
      @ObjectModel.foreignKey.association: '_AssetAccountDetermination'
      _FixedAsset.AssetAccountDetermination,
      @ObjectModel.foreignKey.association: '_AssetClass'
      _FixedAsset.AssetClass,
      @ObjectModel.foreignKey.association: '_FixedAssetGroup'
      _FixedAsset.FixedAssetGroup,
      _FixedAsset.AssetSupplierName,
      @ObjectModel.foreignKey.association: '_InvestmentOrder'
      _FixedAsset.InvestmentOrder,
      _FixedAsset.InventoryIsCounted,
      _FixedAsset.LastInventoryDate,
      _FixedAsset.Inventory,
      @ObjectModel.foreignKey.association: '_Group1AssetEvaluationKey'
      _FixedAsset.Group1AssetEvaluationKey,
      @ObjectModel.foreignKey.association: '_Group2AssetEvaluationKey'
      _FixedAsset.Group2AssetEvaluationKey,
      @ObjectModel.foreignKey.association: '_Group3AssetEvaluationKey'
      _FixedAsset.Group3AssetEvaluationKey,
      @ObjectModel.foreignKey.association: '_Group4AssetEvaluationKey'
      _FixedAsset.Group4AssetEvaluationKey,
      @ObjectModel.foreignKey.association: '_Group5AssetEvaluationKey'
      _FixedAsset.Group5AssetEvaluationKey,
      _FixedAsset.AssetSerialNumber,
      @ObjectModel.foreignKey.association: '_Supplier'
      _FixedAsset.Supplier                                     as Supplier,


      /* Dedicated properties which moved with the redesign of the asset master from ANLA to FAAT_MD_LD */
      /* -> I_FixedAssetForLedger selects based on the business function from the correct table         */
      _FixedAssetForLedger.AssetCapitalizationDate,
      _FixedAssetForLedger.AssetDeactivationDate,
      _FixedAssetForLedger.FirstAcquisitionFiscalYear,
      _FixedAssetForLedger.FirstAcquisitionFiscalPeriod,

      @ObjectModel.foreignKey.association: '_FixedAssetNatlClfn'
      _FixedAssetCountryData.NationalClassification,
      @ObjectModel.foreignKey.association: '_TaxDepreciationGroup'
      _FixedAssetCountryData.TaxDepreciationGroup,

      @ObjectModel.foreignKey.association: '_PartnerMasterFixedAsset'
      Values.PartnerMasterFixedAsset,
      @ObjectModel.foreignKey.association: '_PartnerFixedAsset'
      Values.PartnerFixedAsset,

      //WBS Element

      @Consumption.hidden: true
      _FixedAsset.InvestmentProjectWBSElement                  as WBSElementInternalID,

      //Publish Associations

      _CompanyCode,
      _ControllingArea,
      _Country,
      _CountryChartOfAccounts,
      _FiscalYearVariant,
      _DepreciationArea,
      _MasterFixedAsset,
      _FixedAsset,
      _Ledger,
      _JournalEntry,
      _DebitCreditCode,
      _FiscalYear,
      _FiscalPeriod,
      _FiscalYearPeriod,
      _SubLedgerAccLineItemType,
      _ChartOfAccounts,
      _GLAccountInChartOfAccounts,
      _AlternativeGLAccount,
      _LedgerGroup,
      _AssetAcctTransClassfctn,
      _TaxDepreciationGroup,
      _FinancialAccountType,
      _ChartOfDepreciation,
      _FinancialStatementVersion,
      _AccountingPrinciple,
      _CostCenter,
      _Plant,
      _BusinessArea,
      _ProfitCenter,
      _Segment,
      _FunctionalArea,
      _AssetTransactionType,
      _AssetKeyFigureSet,
      _AssetKeyFigure,
      _AssetSortedKeyFigureSetSpec,
      _AssetClass,
      _AssetAccountDetermination,
      _CompanyCodeCurrency,
      _GlobalCurrency,
      _FreeDefinedCurrency1,
      _FreeDefinedCurrency2,
      _FreeDefinedCurrency3,
      _FreeDefinedCurrency4,
      _FreeDefinedCurrency5,
      _FreeDefinedCurrency6,
      _FreeDefinedCurrency7,
      _FreeDefinedCurrency8,
      _CompanyCodeCurrencyRole,
      _GlobalCurrencyRole,
      _FreeDefinedCurrency1Role,
      _FreeDefinedCurrency2Role,
      _FreeDefinedCurrency3Role,
      _FreeDefinedCurrency4Role,
      _FreeDefinedCurrency5Role,
      _FreeDefinedCurrency6Role,
      _FreeDefinedCurrency7Role,
      _FreeDefinedCurrency8Role,
      _UnitOfMeasure,
      _FixedAsset._FixedAssetGroup,
      _FixedAsset._InvestmentOrder,
      _FixedAsset._Group1AssetEvaluationKey,
      _FixedAsset._Group2AssetEvaluationKey,
      _FixedAsset._Group3AssetEvaluationKey,
      _FixedAsset._Group4AssetEvaluationKey,
      _FixedAsset._Group5AssetEvaluationKey,
      _LedgerFiscalYearForVariant,
      _FiscalYearPeriodForVariant,
      _FiscalPeriodForVariant,
      _AccountingDocumentType,
      _FixedAssetCountryData,
      _FixedAssetNatlClfn,
      _Supplier,
      _FinancialManagementArea,
      _Fund,
      _BudgetPeriod,
      _PartnerMasterFixedAsset,
      _PartnerFixedAsset,
      _WBSElement
}
//where

//     AssetValuationView.AssetValuationViewType is null

//  or AssetValuationView.AssetValuationViewType <> 'C01' //No "Calculated Valuation"

//

////Take derived areas into account

//union all select from I_LedgerCompanyCodeCrcyRoles                                                                                                                                    as LedgerCompanyCodeCrcyRole

//  inner join          I_DepreciationAreaForLedger                                                                                                                                     as CalculatedDeprAreaForLedger  on  CalculatedDeprAreaForLedger.CompanyCode = LedgerCompanyCodeCrcyRole.CompanyCode

//                                                                                                                                                                                                                      and CalculatedDeprAreaForLedger.Ledger      = LedgerCompanyCodeCrcyRole.Ledger

//  inner join          I_AssetValuationView                                                                                                                                            as AssetValuationView           on AssetValuationView.AssetValuationView = CalculatedDeprAreaForLedger.AssetValuationView

//  inner join          I_CalculatedAssetValuationView                                                                                                                                  as CalculatedAssetValuationView on  CalculatedAssetValuationView.CalculatedAssetValuationView = CalculatedDeprAreaForLedger.AssetValuationView

//                                                                                                                                                                                                                      and CalculatedAssetValuationView.AccountingPrinciple          = LedgerCompanyCodeCrcyRole.AccountingPrinciple

//  inner join          I_DepreciationAreaForLedger                                                                                                                                     as SourceDeprAreaForLedger      on  SourceDeprAreaForLedger.CompanyCode        = LedgerCompanyCodeCrcyRole.CompanyCode

//                                                                                                                                                                                                                      and SourceDeprAreaForLedger.Ledger             = LedgerCompanyCodeCrcyRole.Ledger

//                                                                                                                                                                                                                      and SourceDeprAreaForLedger.AssetValuationView = CalculatedAssetValuationView.SourceAssetValuationView

//  inner join          P_FixedAssetValueForToFsclPerd(P_AssetAccountingKeyFigureSet: :P_AssetAccountingKeyFigureSet, P_FiscalYear: :P_FiscalYear, P_ToFiscalPeriod: :P_ToFiscalPeriod) as Values                       on  Values.CompanyCode           = LedgerCompanyCodeCrcyRole.CompanyCode

//                                                                                                                                                                                                                      and Values.Ledger                = LedgerCompanyCodeCrcyRole.Ledger

//                                                                                                                                                                                                                      and Values.AssetDepreciationArea = SourceDeprAreaForLedger.AssetDepreciationArea

//

////Associations to Core views

//association [0..1] to I_AssetKeyFigureSet            as _AssetKeyFigureSet           on  $projection.AssetAccountingKeyFigureSet = _AssetKeyFigureSet.AssetAccountingKeyFigureSet

//association [1]    to I_AssetSortedKeyFigureSetSpec  as _AssetSortedKeyFigureSetSpec on  $projection.AssetAccountingKeyFigureSet    = _AssetSortedKeyFigureSetSpec.AssetAccountingKeyFigureSet

//                                                                                     and $projection.AssetAccountingSortedKeyFigure = _AssetSortedKeyFigureSetSpec.AssetAccountingSortedKeyFigure

//association [0..1] to I_CompanyCode                  as _CompanyCode                 on  $projection.CompanyCode = _CompanyCode.CompanyCode

//association [0..1] to I_DepreciationAreaForLedger    as _DepreciationArea            on  $projection.CompanyCode           = _DepreciationArea.CompanyCode

//                                                                                     and $projection.Ledger                = _DepreciationArea.Ledger

//                                                                                     and $projection.AssetDepreciationArea = _DepreciationArea.AssetDepreciationArea

//association [0..1] to I_RealDepreciationAreaByCoCode as _AssetDepreciationArea       on  $projection.CompanyCode           = _AssetDepreciationArea.CompanyCode

//                                                                                     and $projection.AssetDepreciationArea = _AssetDepreciationArea.AssetRealDepreciationArea

//association [0..1] to I_MasterFixedAsset             as _MasterFixedAsset            on  $projection.CompanyCode      = _MasterFixedAsset.CompanyCode

//                                                                                     and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset

//association [0..1] to I_FixedAsset                   as _FixedAsset                  on  $projection.CompanyCode      = _FixedAsset.CompanyCode

//                                                                                     and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset

//                                                                                     and $projection.FixedAsset       = _FixedAsset.FixedAsset

//association [0..1] to I_MasterFixedAsset             as _PartnerMasterFixedAsset     on  $projection.CompanyCode             = _PartnerMasterFixedAsset.CompanyCode

//                                                                                     and $projection.PartnerMasterFixedAsset = _PartnerMasterFixedAsset.MasterFixedAsset

//association [0..1] to I_FixedAsset                   as _PartnerFixedAsset           on  $projection.CompanyCode             = _PartnerFixedAsset.CompanyCode

//                                                                                     and $projection.PartnerMasterFixedAsset = _PartnerFixedAsset.MasterFixedAsset

//                                                                                     and $projection.PartnerFixedAsset       = _PartnerFixedAsset.FixedAsset

//association [0..1] to I_JournalEntry                 as _JournalEntry                on  $projection.CompanyCode        = _JournalEntry.CompanyCode

//                                                                                     and $projection.FiscalYear         = _JournalEntry.FiscalYear

//                                                                                     and $projection.AccountingDocument = _JournalEntry.AccountingDocument

//association [1]    to I_DebitCreditCode              as _DebitCreditCode             on  $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode

//association [0..1] to I_Ledger                       as _Ledger                      on  $projection.Ledger = _Ledger.Ledger

//association [0..1] to I_FiscalYearForCompanyCode     as _FiscalYear                  on  $projection.FiscalYear  = _FiscalYear.FiscalYear

//                                                                                     and $projection.CompanyCode = _FiscalYear.CompanyCode

//association [0..1] to I_FiscalYearPeriodForCmpnyCode as _FiscalPeriod                on  $projection.FiscalYear   = _FiscalPeriod.FiscalYear

//                                                                                     and $projection.FiscalPeriod = _FiscalPeriod.FiscalPeriod

//                                                                                     and $projection.CompanyCode  = _FiscalPeriod.CompanyCode

//association [0..1] to I_FiscalYearPeriodForLedger    as _FiscalYearPeriod            on  $projection.CompanyCode  = _FiscalYearPeriod.CompanyCode

//                                                                                     and $projection.Ledger       = _FiscalYearPeriod.Ledger

//                                                                                     and $projection.FiscalYear   = _FiscalYearPeriod.FiscalYear

//                                                                                     and $projection.FiscalPeriod = _FiscalYearPeriod.FiscalPeriod

//association [1]    to I_ChartOfAccounts              as _ChartOfAccounts             on  $projection.chartofaccounts = _ChartOfAccounts.ChartOfAccounts

//association [0..1] to I_GLAccountInChartOfAccounts   as _GLAccountInChartOfAccounts  on  $projection.chartofaccounts = _GLAccountInChartOfAccounts.ChartOfAccounts

//                                                                                     and $projection.GLAccount       = _GLAccountInChartOfAccounts.GLAccount

//association [0..1] to I_GLAccountInChartOfAccounts   as _AlternativeGLAccount        on  $projection.CountryChartOfAccounts = _AlternativeGLAccount.ChartOfAccounts

//                                                                                     and $projection.AlternativeGLAccount   = _AlternativeGLAccount.GLAccount

//association [0..1] to I_SubLedgerAccLineItemType     as _SubLedgerAccLineItemType    on  $projection.SubLedgerAcctLineItemType = _SubLedgerAccLineItemType.SubLedgerAcctLineItemType

//association [0..1] to I_MovementCategory             as _AssetAcctTransClassfctn     on  $projection.AssetAcctTransClassfctn = _AssetAcctTransClassfctn.AssetAcctTransClassfctn

//association [0..1] to I_AssetKeyFigure               as _AssetKeyFigure              on  $projection.AssetAccountingKeyFigure = _AssetKeyFigure.AssetAccountingKeyFigure

//association [0..1] to I_LedgerGroup                  as _LedgerGroup                 on  $projection.LedgerGroup = _LedgerGroup.LedgerGroup

//association [0..1] to I_FinancialAccountType         as _FinancialAccountType        on  $projection.FinancialAccountType = _FinancialAccountType.FinancialAccountType

//association [0..1] to I_ChartOfDepreciation          as _ChartOfDepreciation         on  $projection.ChartOfDepreciation = _ChartOfDepreciation.ChartOfDepreciation

//association [0..1] to I_FinancialStatementVersion    as _FinancialStatementVersion   on  $projection.financialstatementvariant = _FinancialStatementVersion.FinancialStatementVariant

//association [0..1] to I_AccountingPrinciple          as _AccountingPrinciple         on  $projection.AccountingPrinciple = _AccountingPrinciple.AccountingPrinciple

//association [0..*] to I_CostCenter                   as _CostCenter                  on  $projection.CostCenter      = _CostCenter.CostCenter

//                                                                                     and $projection.controllingarea = _CostCenter.ControllingArea

//association [0..1] to I_Plant                        as _Plant                       on  $projection.Plant = _Plant.Plant

//association [0..1] to I_BusinessArea                 as _BusinessArea                on  $projection.BusinessArea = _BusinessArea.BusinessArea

//association [0..*] to I_ProfitCenter                 as _ProfitCenter                on  $projection.ProfitCenter    = _ProfitCenter.ProfitCenter

//                                                                                     and $projection.controllingarea = _ProfitCenter.ControllingArea

//association [0..1] to I_Segment                      as _Segment                     on  $projection.Segment = _Segment.Segment

//association [0..1] to I_FunctionalArea               as _FunctionalArea              on  $projection.FunctionalArea = _FunctionalArea.FunctionalArea

//association [0..1] to I_AssetTransactionType         as _AssetTransactionType        on  $projection.AssetTransactionType = _AssetTransactionType.AssetTransactionType

//

//association [0..1] to I_AssetClass                   as _AssetClass                  on  $projection.assetclass = _AssetClass.AssetClass

//association [0..1] to I_AssetAcctDetermination       as _AssetAccountDetermination   on  $projection.assetaccountdetermination = _AssetAccountDetermination.AssetAccountDetermination

//

//association [0..1] to I_FiscalYearVariant            as _FiscalYearVariant           on  $projection.FiscalYearVariant = _FiscalYearVariant.FiscalYearVariant

//association [0..1] to I_ChartOfAccounts              as _CountryChartOfAccounts      on  $projection.CountryChartOfAccounts = _CountryChartOfAccounts.ChartOfAccounts

//association [0..1] to I_ControllingArea              as _ControllingArea             on  $projection.controllingarea = _ControllingArea.ControllingArea

//association [0..1] to I_Country                      as _Country                     on  $projection.country = _Country.Country

//

//association [0..1] to I_Currency                     as _CompanyCodeCurrency         on  $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency

//association [0..1] to I_Currency                     as _GlobalCurrency              on  $projection.GlobalCurrency = _GlobalCurrency.Currency

//association [0..1] to I_Currency                     as _FreeDefinedCurrency1        on  $projection.FreeDefinedCurrency1 = _FreeDefinedCurrency1.Currency

//association [0..1] to I_Currency                     as _FreeDefinedCurrency2        on  $projection.FreeDefinedCurrency2 = _FreeDefinedCurrency2.Currency

//association [0..1] to I_Currency                     as _FreeDefinedCurrency3        on  $projection.FreeDefinedCurrency3 = _FreeDefinedCurrency3.Currency

//association [0..1] to I_Currency                     as _FreeDefinedCurrency4        on  $projection.FreeDefinedCurrency4 = _FreeDefinedCurrency4.Currency

//association [0..1] to I_Currency                     as _FreeDefinedCurrency5        on  $projection.FreeDefinedCurrency5 = _FreeDefinedCurrency5.Currency

//association [0..1] to I_Currency                     as _FreeDefinedCurrency6        on  $projection.FreeDefinedCurrency6 = _FreeDefinedCurrency6.Currency

//association [0..1] to I_Currency                     as _FreeDefinedCurrency7        on  $projection.FreeDefinedCurrency7 = _FreeDefinedCurrency7.Currency

//association [0..1] to I_Currency                     as _FreeDefinedCurrency8        on  $projection.FreeDefinedCurrency8 = _FreeDefinedCurrency8.Currency

//

//association [0..1] to I_CurrencyRole                 as _CompanyCodeCurrencyRole     on  $projection.CompanyCodeCurrencyRole = _CompanyCodeCurrencyRole.CurrencyRole

//association [0..1] to I_CurrencyRole                 as _GlobalCurrencyRole          on  $projection.GlobalCurrencyRole = _GlobalCurrencyRole.CurrencyRole

//association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency1Role    on  $projection.FreeDefinedCurrency1Role = _FreeDefinedCurrency1Role.CurrencyRole

//association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency2Role    on  $projection.FreeDefinedCurrency2Role = _FreeDefinedCurrency2Role.CurrencyRole

//association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency3Role    on  $projection.FreeDefinedCurrency3Role = _FreeDefinedCurrency3Role.CurrencyRole

//association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency4Role    on  $projection.FreeDefinedCurrency4Role = _FreeDefinedCurrency4Role.CurrencyRole

//association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency5Role    on  $projection.FreeDefinedCurrency5Role = _FreeDefinedCurrency5Role.CurrencyRole

//association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency6Role    on  $projection.FreeDefinedCurrency6Role = _FreeDefinedCurrency6Role.CurrencyRole

//association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency7Role    on  $projection.FreeDefinedCurrency7Role = _FreeDefinedCurrency7Role.CurrencyRole

//association [0..1] to I_CurrencyRole                 as _FreeDefinedCurrency8Role    on  $projection.FreeDefinedCurrency8Role = _FreeDefinedCurrency8Role.CurrencyRole

//

//association [0..1] to I_UnitOfMeasure                as _UnitOfMeasure               on  $projection.BaseUnit = _UnitOfMeasure.UnitOfMeasure

//

//association [0..1] to I_FiscalYearForVariant         as _LedgerFiscalYearForVariant  on  $projection.LedgerFiscalYear  = _LedgerFiscalYearForVariant.FiscalYear

//                                                                                     and $projection.FiscalYearVariant = _LedgerFiscalYearForVariant.FiscalYearVariant

//association [0..1] to I_FiscalYearPeriodForVariant   as _FiscalYearPeriodForVariant  on  $projection.FiscalYearPeriod  = _FiscalYearPeriodForVariant.FiscalYearPeriod

//                                                                                     and $projection.FiscalYearVariant = _FiscalYearPeriodForVariant.FiscalYearVariant

//association [0..1] to I_FiscalPeriodForVariant       as _FiscalPeriodForVariant      on  $projection.LedgerFiscalYear  = _FiscalPeriodForVariant.FiscalYear

//                                                                                     and $projection.FiscalPeriod      = _FiscalPeriodForVariant.FiscalPeriod

//                                                                                     and $projection.FiscalYearVariant = _FiscalPeriodForVariant.FiscalYearVariant

//association [0..1] to I_AccountingDocumentType       as _AccountingDocumentType      on  $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType

//association [0..1] to I_FixedAssetNatlClfn           as _FixedAssetNatlClfn          on  $projection.country                = _FixedAssetNatlClfn.Country

//                                                                                     and $projection.nationalclassification = _FixedAssetNatlClfn.NationalClassification

//association [0..1] to I_TaxDepreciationGroup         as _TaxDepreciationGroup        on  $projection.country              = _TaxDepreciationGroup.Country

//                                                                                     and $projection.taxdepreciationgroup = _TaxDepreciationGroup.TaxDepreciationGroup

//association [0..1] to I_FixedAssetCountryData        as _FixedAssetCountryData       on  $projection.CompanyCode      = _FixedAssetCountryData.CompanyCode

//                                                                                     and $projection.MasterFixedAsset = _FixedAssetCountryData.MasterFixedAsset

//                                                                                     and $projection.FixedAsset       = _FixedAssetCountryData.FixedAsset

//association [0..1] to I_FixedAssetForLedger          as _FixedAssetForLedger         on  _FixedAssetForLedger.CompanyCode      = $projection.CompanyCode

//                                                                                     and _FixedAssetForLedger.MasterFixedAsset = $projection.MasterFixedAsset

//                                                                                     and _FixedAssetForLedger.FixedAsset       = $projection.FixedAsset

//                                                                                     and _FixedAssetForLedger.Ledger           = $projection.Ledger

//association [0..1] to I_Supplier                     as _Supplier                    on  $projection.Supplier = _Supplier.Supplier

//association [0..1] to I_FinancialManagementArea      as _FinancialManagementArea     on  $projection.FinancialManagementArea = _FinancialManagementArea.FinancialManagementArea

//association [0..1] to I_Fund                         as _Fund                        on  $projection.FinancialManagementArea = _Fund.FinancialManagementArea

//                                                                                     and $projection.Fund                    = _Fund.Fund

//association [0..1] to I_BudgetPeriod                 as _BudgetPeriod                on  $projection.BudgetPeriod = _BudgetPeriod.BudgetPeriod

//association [0..1] to I_WBSElementByExternalID       as _WBSElement                  on  $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID

//{

//

//      @ObjectModel.foreignKey.association: '_CompanyCode'

//  key Values.CompanyCode,

//      @ObjectModel.foreignKey.association: '_DepreciationArea'

//  key CalculatedDeprAreaForLedger.AssetDepreciationArea,

//      @ObjectModel.foreignKey.association: '_MasterFixedAsset'

//  key Values.MasterFixedAsset,

//      @ObjectModel.foreignKey.association: '_FixedAsset'

//  key Values.FixedAsset,

//      @ObjectModel.foreignKey.association: '_JournalEntry'

//  key Values.AccountingDocument,

//  key Values.TransactionSubitem,

//      @ObjectModel.foreignKey.association: '_Ledger'

//  key Values.Ledger,

//      @ObjectModel.foreignKey.association: '_FiscalYear'

//  key Values.FiscalYear,

//      //@ObjectModel.foreignKey.association: '_FiscalPeriod'

//      @ObjectModel.foreignKey.association: '_FiscalPeriodForVariant'

//  key Values.FiscalPeriod,

//      @ObjectModel.foreignKey.association: '_SubledgerAccLineItemType'

//  key Values.SubLedgerAcctLineItemType,

//      @ObjectModel.foreignKey.association: '_AssetAcctTransClassfctn'

//  key Values.AssetAcctTransClassfctn,

//      @ObjectModel.foreignKey.association: '_AssetKeyFigureSet'

//  key :P_AssetAccountingKeyFigureSet                           as AssetAccountingKeyFigureSet,

//      @ObjectModel.foreignKey.association: '_AssetKeyFigure'

//  key Values.AssetAccountingKeyFigure,

//      @ObjectModel.foreignKey.association: '_DebitCreditCode'

//  key Values.DebitCreditCode,

//

//      @ObjectModel.foreignKey.association: '_LedgerFiscalYearForVariant'

//      @Semantics.fiscal.year: true

//      LedgerFiscalYear,

//      @ObjectModel.foreignKey.association: '_FiscalYearVariant'

//      @Semantics.fiscal.yearVariant: true

//      LedgerCompanyCodeCrcyRole.FiscalYearVariant,

//      @ObjectModel.foreignKey.association: '_FiscalYearPeriodForVariant'

//      @Semantics.fiscal.yearPeriod: true

//      FiscalYearPeriod,

//      DepreciationFiscalPeriod,

//

//      @ObjectModel.foreignKey.association: '_AssetSortedKeyFigureSetSpec'

//      Values.AssetAccountingSortedKeyFigure,

//      Values.PlannedValueIsInclusive,

//

//      @ObjectModel.foreignKey.association: '_LedgerGroup'

//      Values.LedgerGroup,

//

//      @ObjectModel.foreignKey.association: '_Country'

//      _CompanyCode.Country,

//      @ObjectModel.foreignKey.association: '_CountryChartOfAccounts'

//      Values.CountryChartOfAccounts,

//      @ObjectModel.foreignKey.association: '_GLAccountInChartOfAccounts'

//      Values.GLAccount,

//      @ObjectModel.foreignKey.association: '_AlternativeGLAccount'

//      Values.AlternativeGLAccount,

//

//      Values.GroupMasterFixedAsset,

//      Values.GroupFixedAsset,

//      @ObjectModel.foreignKey.association: '_FinancialAccountType'

//      Values.FinancialAccountType,

//      @Semantics.businessDate.at: true

//      Values.AccountingDocumentCreationDate,

//      Values.CreationTime,

//      Values.AccountingDocCreatedByUser,

//      Values.JointVentureCostRecoveryCode,

//      @ObjectModel.foreignKey.association: '_ChartOfDepreciation'

//      Values.ChartOfDepreciation,

//      @ObjectModel.foreignKey.association: '_FinancialStatementVersion'

//      _AssetDepreciationArea.FinancialStatementVariant,

//

//      @ObjectModel.foreignKey.association: '_AccountingPrinciple'

//      LedgerCompanyCodeCrcyRole.AccountingPrinciple,

//

//      @ObjectModel.foreignKey.association: '_CostCenter'

//      Values.CostCenter,

//      @ObjectModel.foreignKey.association: '_Plant'

//      Values.Plant,

//      @ObjectModel.foreignKey.association: '_BusinessArea'

//      Values.BusinessArea,

//      Values.PersonnelNumber,

//      @ObjectModel.foreignKey.association: '_FinancialManagementArea'

//      Values.FinancialManagementArea,

//      @ObjectModel.foreignKey.association: '_Fund'

//      Values.Fund,

//      Values.GrantID,

//      @ObjectModel.foreignKey.association: '_FunctionalArea'

//      Values.FunctionalArea,

//      @ObjectModel.foreignKey.association: '_BudgetPeriod'

//      Values.BudgetPeriod,

//      @ObjectModel.foreignKey.association: '_ProfitCenter'

//      Values.ProfitCenter,

//      @ObjectModel.foreignKey.association: '_Segment'

//      Values.Segment,

//      Values.FundsCenter,

//      @ObjectModel.foreignKey.association: '_AssetTransactionType'

//      Values.AssetTransactionType,

//      @ObjectModel.foreignKey.association: '_AccountingDocumentType'

//      Values.AccountingDocumentType,

//

//      Values.ReferenceDocumentItem,

//      Values.ReferenceDocumentType,

//      Values.LogicalSystem,

//      Values.ReferenceDocument,

//      Values.ReferenceDocumentContext,

//      Values.ReversalReferenceDocument,

//      Values.ReversalReferenceDocumentCntxt,

//      Values.ReversalTransactionSubitem,

//      Values.IsReversal,

//      Values.IsReversed,

//      Values.DocumentDate,

//      Values.PostingDate,

//      Values.AssetValueDate,

//      Values.AssignmentReference,

//      Values.DocumentItemText,

//      Values.IsStatisticalDocument,

//      Values.GLBusinessTransactionType,

//

//      // Fields added from Association _CompanyCode

//      @ObjectModel.foreignKey.association: '_ChartOfAccounts'

//      _CompanyCode.ChartOfAccounts, //required for Association to _GLAccountInChartOfAccounts

//      @ObjectModel.foreignKey.association: '_ControllingArea'

//      _CompanyCode.ControllingArea, // required for Association to _CostCenter

//      //      @ObjectModel.foreignKey.association: '_FiscalYearVariant'

//      //      _CompanyCode.FiscalYearVariant,

//

//      @ObjectModel.foreignKey.association: '_CompanyCodeCurrency'

//      @Semantics.currencyCode: true

//      Values.CompanyCodeCurrency,

//

//      @ObjectModel.foreignKey.association: '_CompanyCodeCurrencyRole'

//      LedgerCompanyCodeCrcyRole.CompanyCodeCurrencyRole,

//

//      @DefaultAggregation: #SUM

//      @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }

////      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInCompanyCodeCrcy + Values.ActualAmountInCompanyCodeCrcy

////           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInCompanyCodeCrcy

////           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInCompanyCodeCrcy

////           else Values.ActualAmountInCompanyCodeCrcy       end as AmountInCompanyCodeCurrency,

//      case when CalculatedAssetValuationView.DerivedDeprAreaValCalcSign = '+'

//      then case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInCompanyCodeCrcy + Values.ActualAmountInCompanyCodeCrcy

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInCompanyCodeCrcy

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInCompanyCodeCrcy

//                else Values.ActualAmountInCompanyCodeCrcy end

//      else case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInCompanyCodeCrcy * -1 + Values.ActualAmountInCompanyCodeCrcy * -1

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInCompanyCodeCrcy * -1

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInCompanyCodeCrcy * -1

//                else Values.ActualAmountInCompanyCodeCrcy * -1 end

//      end as AmountInCompanyCodeCurrency,

//

//      @ObjectModel.foreignKey.association: '_GlobalCurrency'

//      @Semantics.currencyCode: true

//      Values.GlobalCurrency,

//

//      @ObjectModel.foreignKey.association: '_GlobalCurrencyRole'

//      LedgerCompanyCodeCrcyRole.GlobalCurrencyRole,

//

//      @DefaultAggregation: #SUM

//      @Semantics: { amount : {currencyCode: 'GlobalCurrency'} }

////      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInGlobalCurrency + Values.ActualAmountInGlobalCurrency

////           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInGlobalCurrency

////           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInGlobalCurrency

////           else Values.ActualAmountInGlobalCurrency    end     as AmountInGlobalCurrency,

//      case when CalculatedAssetValuationView.DerivedDeprAreaValCalcSign = '+'

//      then case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInGlobalCurrency + Values.ActualAmountInGlobalCurrency

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInGlobalCurrency

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInGlobalCurrency

//                else Values.ActualAmountInGlobalCurrency end

//      else case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInGlobalCurrency * -1 + Values.ActualAmountInGlobalCurrency * -1

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInGlobalCurrency * -1

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInGlobalCurrency * -1

//                else Values.ActualAmountInGlobalCurrency * -1 end

//      end as AmountInGlobalCurrency,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency1'

//      @Semantics.currencyCode: true

//      Values.FreeDefinedCurrency1,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency1Role'

//      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency1Role,

//

//      @DefaultAggregation: #SUM

//      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency1'} }

////      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy1 + Values.ActualAmountInFreeDfndCrcy1

////           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy1

////           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy1

////           else Values.ActualAmountInFreeDfndCrcy1    end      as AmountInFreeDefinedCurrency1,

//      case when CalculatedAssetValuationView.DerivedDeprAreaValCalcSign = '+'

//      then case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy1 + Values.ActualAmountInFreeDfndCrcy1

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy1

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy1

//                else Values.ActualAmountInFreeDfndCrcy1 end

//      else case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy1  * -1 + Values.ActualAmountInFreeDfndCrcy1 * -1

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy1 * -1

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy1 * -1

//                else Values.ActualAmountInFreeDfndCrcy1 * -1 end

//      end as AmountInFreeDefinedCurrency1,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency2'

//      @Semantics.currencyCode: true

//      Values.FreeDefinedCurrency2,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency2Role'

//      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency2Role,

//

//      @DefaultAggregation: #SUM

//      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency2'} }

////      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy2 + Values.ActualAmountInFreeDfndCrcy2

////           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy2

////           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy2

////           else Values.ActualAmountInFreeDfndCrcy2    end      as AmountInFreeDefinedCurrency2,

//      case when CalculatedAssetValuationView.DerivedDeprAreaValCalcSign = '+'

//      then case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy2 + Values.ActualAmountInFreeDfndCrcy2

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy2

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy2

//                else Values.ActualAmountInFreeDfndCrcy2 end

//      else case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy2  * -1 + Values.ActualAmountInFreeDfndCrcy2 * -1

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy2 * -1

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy2 * -1

//                else Values.ActualAmountInFreeDfndCrcy2 * -1 end

//      end as AmountInFreeDefinedCurrency2,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency3'

//      @Semantics.currencyCode: true

//      Values.FreeDefinedCurrency3,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency3Role'

//      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency3Role,

//

//      @DefaultAggregation: #SUM

//      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency3'} }

////      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy3 + Values.ActualAmountInFreeDfndCrcy3

////           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy3

////           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy3

////           else Values.ActualAmountInFreeDfndCrcy3    end      as AmountInFreeDefinedCurrency3,

//      case when CalculatedAssetValuationView.DerivedDeprAreaValCalcSign = '+'

//      then case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy3 + Values.ActualAmountInFreeDfndCrcy3

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy3

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy3

//                else Values.ActualAmountInFreeDfndCrcy3 end

//      else case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy3  * -1 + Values.ActualAmountInFreeDfndCrcy3 * -1

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy3 * -1

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy3 * -1

//                else Values.ActualAmountInFreeDfndCrcy3 * -1 end

//      end as AmountInFreeDefinedCurrency3,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency4'

//      @Semantics.currencyCode: true

//      Values.FreeDefinedCurrency4,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency4Role'

//      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency4Role,

//

//      @DefaultAggregation: #SUM

//      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency4'} }

////      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy4 + Values.ActualAmountInFreeDfndCrcy4

////           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy4

////           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy4

////           else Values.ActualAmountInFreeDfndCrcy4    end      as AmountInFreeDefinedCurrency4,

//      case when CalculatedAssetValuationView.DerivedDeprAreaValCalcSign = '+'

//      then case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy4 + Values.ActualAmountInFreeDfndCrcy4

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy4

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy4

//                else Values.ActualAmountInFreeDfndCrcy4 end

//      else case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy4  * -1 + Values.ActualAmountInFreeDfndCrcy4 * -1

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy4 * -1

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy4 * -1

//                else Values.ActualAmountInFreeDfndCrcy4 * -1 end

//      end as AmountInFreeDefinedCurrency4,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency5'

//      @Semantics.currencyCode: true

//      Values.FreeDefinedCurrency5,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency5Role'

//      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency5Role,

//

//      @DefaultAggregation: #SUM

//      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency5'} }

////      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy5 + Values.ActualAmountInFreeDfndCrcy5

////           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy5

////           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy5

////           else Values.ActualAmountInFreeDfndCrcy5    end      as AmountInFreeDefinedCurrency5,

//      case when CalculatedAssetValuationView.DerivedDeprAreaValCalcSign = '+'

//      then case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy5 + Values.ActualAmountInFreeDfndCrcy5

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy5

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy5

//                else Values.ActualAmountInFreeDfndCrcy5 end

//      else case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy5  * -1 + Values.ActualAmountInFreeDfndCrcy5 * -1

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy5 * -1

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy5 * -1

//                else Values.ActualAmountInFreeDfndCrcy5 * -1 end

//      end as AmountInFreeDefinedCurrency5,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency6'

//      @Semantics.currencyCode: true

//      Values.FreeDefinedCurrency6,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency6Role'

//      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency6Role,

//

//      @DefaultAggregation: #SUM

//      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency6'} }

////      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy6 + Values.ActualAmountInFreeDfndCrcy6

////           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy6

////           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy6

////           else Values.ActualAmountInFreeDfndCrcy6    end      as AmountInFreeDefinedCurrency6,

//      case when CalculatedAssetValuationView.DerivedDeprAreaValCalcSign = '+'

//      then case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy6 + Values.ActualAmountInFreeDfndCrcy6

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy6

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy6

//                else Values.ActualAmountInFreeDfndCrcy6 end

//      else case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy6  * -1 + Values.ActualAmountInFreeDfndCrcy6 * -1

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy6 * -1

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy6 * -1

//                else Values.ActualAmountInFreeDfndCrcy6 * -1 end

//      end as AmountInFreeDefinedCurrency6,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency7'

//      @Semantics.currencyCode: true

//      Values.FreeDefinedCurrency7,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency7Role'

//      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency7Role,

//

//      @DefaultAggregation: #SUM

//      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency7'} }

////      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy7 + Values.ActualAmountInFreeDfndCrcy7

////           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy7

////           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy7

////           else Values.ActualAmountInFreeDfndCrcy7    end      as AmountInFreeDefinedCurrency7,

//      case when CalculatedAssetValuationView.DerivedDeprAreaValCalcSign = '+'

//      then case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy7 + Values.ActualAmountInFreeDfndCrcy7

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy7

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy7

//                else Values.ActualAmountInFreeDfndCrcy7 end

//      else case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy7  * -1 + Values.ActualAmountInFreeDfndCrcy7 * -1

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy7 * -1

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy7 * -1

//                else Values.ActualAmountInFreeDfndCrcy7 * -1 end

//      end as AmountInFreeDefinedCurrency7,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency8'

//      @Semantics.currencyCode: true

//      Values.FreeDefinedCurrency8,

//

//      @ObjectModel.foreignKey.association: '_FreeDefinedCurrency8Role'

//      LedgerCompanyCodeCrcyRole.FreeDefinedCurrency8Role,

//

//      @DefaultAggregation: #SUM

//      @Semantics: { amount : {currencyCode: 'FreeDefinedCurrency8'} }

////      case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy8  + Values.ActualAmountInFreeDfndCrcy8

////           when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy8

////           when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '')  then Values.PlanAmountInFreeDefinedCrcy8

////           else Values.ActualAmountInFreeDfndCrcy8    end      as AmountInFreeDefinedCurrency8,

//      case when CalculatedAssetValuationView.DerivedDeprAreaValCalcSign = '+'

//      then case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy8 + Values.ActualAmountInFreeDfndCrcy8

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy8

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy8

//                else Values.ActualAmountInFreeDfndCrcy8 end

//      else case when Values.PlannedValueIsInclusive = '1' then Values.PlanAmountInFreeDefinedCrcy8  * -1 + Values.ActualAmountInFreeDfndCrcy8 * -1

//                when Values.PlannedValueIsInclusive = '2' and FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '' then Values.ActualAmountInFreeDfndCrcy8 * -1

//                when Values.PlannedValueIsInclusive = '2'and not (FiscalPeriod > :P_ToFiscalPeriod and IsPlanningDocument = '') then Values.PlanAmountInFreeDefinedCrcy8 * -1

//                else Values.ActualAmountInFreeDfndCrcy8 * -1 end

//      end as AmountInFreeDefinedCurrency8,

//

//      @ObjectModel.foreignKey.association: '_UnitOfMeasure'

//      @Semantics.unitOfMeasure:true

//      BaseUnit,

//      @DefaultAggregation: #SUM

//      @Semantics: { quantity : {unitOfMeasure: 'BaseUnit'} }

//      Quantity,

//

//      /* Fields from ANLA */

//      @ObjectModel.foreignKey.association: '_AssetAccountDetermination'

//      _FixedAsset.AssetAccountDetermination,

//      @ObjectModel.foreignKey.association: '_AssetClass'

//      _FixedAsset.AssetClass,

//      @ObjectModel.foreignKey.association: '_FixedAssetGroup'

//      _FixedAsset.FixedAssetGroup,

//      _FixedAsset.AssetSupplierName,

//      @ObjectModel.foreignKey.association: '_InvestmentOrder'

//      _FixedAsset.InvestmentOrder,

//      _FixedAsset.InventoryIsCounted,

//      _FixedAsset.LastInventoryDate,

//      _FixedAsset.Inventory,

//      @ObjectModel.foreignKey.association: '_Group1AssetEvaluationKey'

//      _FixedAsset.Group1AssetEvaluationKey,

//      @ObjectModel.foreignKey.association: '_Group2AssetEvaluationKey'

//      _FixedAsset.Group2AssetEvaluationKey,

//      @ObjectModel.foreignKey.association: '_Group3AssetEvaluationKey'

//      _FixedAsset.Group3AssetEvaluationKey,

//      @ObjectModel.foreignKey.association: '_Group4AssetEvaluationKey'

//      _FixedAsset.Group4AssetEvaluationKey,

//      @ObjectModel.foreignKey.association: '_Group5AssetEvaluationKey'

//      _FixedAsset.Group5AssetEvaluationKey,

//      _FixedAsset.AssetSerialNumber,

//      @ObjectModel.foreignKey.association: '_Supplier'

//      _FixedAsset.Supplier                                     as Supplier,

//

//

//      /* Dedicated properties which moved with the redesign of the asset master from ANLA to FAAT_MD_LD */

//      /* -> I_FixedAssetForLedger selects based on the business function from the correct table         */

//      _FixedAssetForLedger.AssetCapitalizationDate,

//      _FixedAssetForLedger.AssetDeactivationDate,

//      _FixedAssetForLedger.FirstAcquisitionFiscalYear,

//      _FixedAssetForLedger.FirstAcquisitionFiscalPeriod,

//

//      @ObjectModel.foreignKey.association: '_FixedAssetNatlClfn'

//      _FixedAssetCountryData.NationalClassification,

//      @ObjectModel.foreignKey.association: '_TaxDepreciationGroup'

//      _FixedAssetCountryData.TaxDepreciationGroup,

//

//      @ObjectModel.foreignKey.association: '_PartnerMasterFixedAsset'

//      Values.PartnerMasterFixedAsset,

//      @ObjectModel.foreignKey.association: '_PartnerFixedAsset'

//      Values.PartnerFixedAsset,

//

//      //WBS Element

//      @Consumption.hidden: true

//      _FixedAsset.InvestmentProjectWBSElement                  as WBSElementInternalID,

//

//      //Publish Associations

//      _CompanyCode,

//      _ControllingArea,

//      _Country,

//      _CountryChartOfAccounts,

//      _FiscalYearVariant,

//      _DepreciationArea,

//      _MasterFixedAsset,

//      _FixedAsset,

//      _Ledger,

//      _JournalEntry,

//      _DebitCreditCode,

//      _FiscalYear,

//      _FiscalPeriod,

//      _FiscalYearPeriod,

//      _SubLedgerAccLineItemType,

//      _ChartOfAccounts,

//      _GLAccountInChartOfAccounts,

//      _AlternativeGLAccount,

//      _LedgerGroup,

//      _AssetAcctTransClassfctn,

//      _TaxDepreciationGroup,

//      _FinancialAccountType,

//      _ChartOfDepreciation,

//      _FinancialStatementVersion,

//      _AccountingPrinciple,

//      _CostCenter,

//      _Plant,

//      _BusinessArea,

//      _ProfitCenter,

//      _Segment,

//      _FunctionalArea,

//      _AssetTransactionType,

//      _AssetKeyFigureSet,

//      _AssetKeyFigure,

//      _AssetSortedKeyFigureSetSpec,

//      _AssetClass,

//      _AssetAccountDetermination,

//      _CompanyCodeCurrency,

//      _GlobalCurrency,

//      _FreeDefinedCurrency1,

//      _FreeDefinedCurrency2,

//      _FreeDefinedCurrency3,

//      _FreeDefinedCurrency4,

//      _FreeDefinedCurrency5,

//      _FreeDefinedCurrency6,

//      _FreeDefinedCurrency7,

//      _FreeDefinedCurrency8,

//      _CompanyCodeCurrencyRole,

//      _GlobalCurrencyRole,

//      _FreeDefinedCurrency1Role,

//      _FreeDefinedCurrency2Role,

//      _FreeDefinedCurrency3Role,

//      _FreeDefinedCurrency4Role,

//      _FreeDefinedCurrency5Role,

//      _FreeDefinedCurrency6Role,

//      _FreeDefinedCurrency7Role,

//      _FreeDefinedCurrency8Role,

//      _UnitOfMeasure,

//      _FixedAsset._FixedAssetGroup,

//      _FixedAsset._InvestmentOrder,

//      _FixedAsset._Group1AssetEvaluationKey,

//      _FixedAsset._Group2AssetEvaluationKey,

//      _FixedAsset._Group3AssetEvaluationKey,

//      _FixedAsset._Group4AssetEvaluationKey,

//      _FixedAsset._Group5AssetEvaluationKey,

//      _LedgerFiscalYearForVariant,

//      _FiscalYearPeriodForVariant,

//      _FiscalPeriodForVariant,

//      _AccountingDocumentType,

//      _FixedAssetCountryData,

//      _FixedAssetNatlClfn,

//      _Supplier,

//      _FinancialManagementArea,

//      _Fund,

//      _BudgetPeriod,

//      _PartnerMasterFixedAsset,

//      _PartnerFixedAsset,

//      _WBSElement

//}

//where

//  AssetValuationView.AssetValuationViewType = 'C01' //Calculated Valuation