Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

P_FxdAstTransInPreviousYear

DDL: P_FXDASTTRANSINPREVIOUSYEAR SQL: PFASSETTRNPY Type: view COMPOSITE Package: ODATA_AA_ASSET_OVERVIEWPAGE

Fiscal Year Period for Ledger Value Help

P_FxdAstTransInPreviousYear is a Composite CDS View that provides data about "Fiscal Year Period for Ledger Value Help" in SAP S/4HANA. It reads from 2 data sources (P_FixedAssetTransactionOvw, P_FixedAssetTransactionOvw) and exposes 50 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, AssetDepreciationArea, Ledger. It has 5 associations to related views. Part of development package ODATA_AA_ASSET_OVERVIEWPAGE.

Data Sources (2)

SourceAliasJoin Type
P_FixedAssetTransactionOvw P_FixedAssetTransactionOvw from
P_FixedAssetTransactionOvw P_FixedAssetTransactionOvw union

Parameters (3)

NameTypeDefault
P_KeyDate fagl_keydate
P_TodayDate fagl_keydate
P_AssetAccountingKeyFigureSet faa_key_figure_set

Associations (5)

CardinalityTargetAliasCondition
[1..1] P_FixedAssetTransactionType _AssetTransactionType _AssetTransactionType.AssetTransactionType = $projection.AssetAccountingKeyFigureSet and _AssetTransactionType.Language = $session.system_language
[0..1] I_AssetClass _AssetClass $projection.AssetClass = _AssetClass.AssetClass
[0..*] I_FixedAssetAssgmt _FixedAssetAssgmt _FixedAssetAssgmt.CompanyCode = $projection.CompanyCode and _FixedAssetAssgmt.MasterFixedAsset = $projection.MasterFixedAsset and _FixedAssetAssgmt.FixedAsset = $projection.FixedAsset
[1..1] P_FixedAssetOvwFiscalPeriod _FiscalPeriod P_FixedAssetTransactionOvw.FiscalYearVariant = _FiscalPeriod.FiscalYearVariant
[0..1] I_FiscalPeriodForVariant _FiscalPeriodForVariant _FiscalPeriodForVariant.FiscalYearVariant = P_FixedAssetTransactionOvw.FiscalYearVariant and _FiscalPeriodForVariant.FiscalYear = P_FixedAssetTransactionOvw.FiscalYear and _FiscalPeriodForVariant.FiscalPeriod = P_FixedAssetTransactionOvw.FiscalPeriod

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PFASSETTRNPY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.lifecycle.status #DEPRECATED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view

Fields (50)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY MasterFixedAsset MasterFixedAsset Fixed Asset
KEY FixedAsset FixedAsset Sub-number
KEY AssetDepreciationArea AssetDepreciationArea Deprec. Area
KEY Ledger Ledger Ledger
KEY AssetAccountingKeyFigureSet
KEY CurrencyRole CurrencyRole Curr./Val. Type
CompanyCodeName CompanyCodeName Company Name
AssetCostCenter AssetCostCenter
AssetClass AssetClass Asset Class
AssetPlant AssetPlant
Segment Segment Segment number
AssetProfitCenter AssetProfitCenter
PeriodType
SelectedCurrencyBranch SelectedCurrencyBranch
DisplayCurrency DisplayCurrency Display Currency
AcqnProdnAmtInDspCrcy
ValueAdjustmentAmtInDspCrcy
RtrmtNetBookValueAmtInDspCrcy
AmountInDisplayCurrency
_FixedAsset _FixedAsset
_AssetClass _AssetClass
_DepreciationArea _DepreciationArea
_FixedAssetAssgmt _FixedAssetAssgmt
P_AssetAccountingKeyFigureSetTRANS_RET
FiscalPeriodkeyCompanyCode
KEY MasterFixedAsset MasterFixedAsset Fixed Asset
KEY FixedAsset FixedAsset Sub-number
KEY AssetDepreciationArea AssetDepreciationArea Deprec. Area
KEY Ledger Ledger Ledger
KEY AssetAccountingKeyFigureSet
KEY CurrencyRole CurrencyRole Curr./Val. Type
CompanyCodeName CompanyCodeName Company Name
AssetCostCenter AssetCostCenter
AssetClass AssetClass Asset Class
AssetPlant AssetPlant
Segment Segment Segment number
AssetProfitCenter AssetProfitCenter
PeriodType
SelectedCurrencyBranch SelectedCurrencyBranch
DisplayCurrency DisplayCurrency Display Currency
AcqnProdnAmtInDspCrcy
ValueAdjustmentAmtInDspCrcy
RtrmtNetBookValueAmtInDspCrcy
AmountInDisplayCurrency
_FixedAsset _FixedAsset
_AssetClass _AssetClass
_DepreciationArea _DepreciationArea
_FixedAssetAssgmt _FixedAssetAssgmt
_AssetTransactionType _AssetTransactionType

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

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

CREATE VIEW P_FxdAstTransInPreviousYear AS
SELECT
  CompanyCode,
  MasterFixedAsset,
  FixedAsset,
  AssetDepreciationArea,
  Ledger,
  cast ('TRANS_ACQ' as faa_asset_transaction_type) AS AssetAccountingKeyFigureSet,
  CurrencyRole,
  CompanyCodeName,
  AssetCostCenter,
  AssetClass,
  AssetPlant,
  Segment,
  AssetProfitCenter,
  cast('PY' as faa_period_type) AS PeriodType,
  SelectedCurrencyBranch,
  DisplayCurrency,
  sum (AcqnProdnAmtInDspCrcy) AS AcqnProdnAmtInDspCrcy,
  sum (ValueAdjustmentAmtInDspCrcy) AS ValueAdjustmentAmtInDspCrcy,
  sum (RtrmtNetBookValueAmtInDspCrcy) AS RtrmtNetBookValueAmtInDspCrcy,
  cast((sum (AcqnProdnAmtInDspCrcy)) as farp_amount_display_crcy) AS AmountInDisplayCurrency,
  P_AssetAccountingKeyFigureSet: 'TRANS_RET' AS P_AssetAccountingKeyFigureSetTRANS_RET
FROM P_FixedAssetTransactionOvw
LEFT OUTER JOIN P_FixedAssetTransactionType AS _AssetTransactionType ON _AssetTransactionType.AssetTransactionType = AssetAccountingKeyFigureSet AND _AssetTransactionType.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_AssetClass AS _AssetClass ON AssetClass = _AssetClass.AssetClass  -- association [0..1]
LEFT OUTER JOIN I_FixedAssetAssgmt AS _FixedAssetAssgmt ON _FixedAssetAssgmt.CompanyCode = CompanyCode AND _FixedAssetAssgmt.MasterFixedAsset = MasterFixedAsset AND _FixedAssetAssgmt.FixedAsset = FixedAsset  -- association [0..*]
LEFT OUTER JOIN P_FixedAssetOvwFiscalPeriod AS _FiscalPeriod ON P_FixedAssetTransactionOvw.FiscalYearVariant = _FiscalPeriod.FiscalYearVariant  -- association [1..1]
LEFT OUTER JOIN I_FiscalPeriodForVariant AS _FiscalPeriodForVariant ON _FiscalPeriodForVariant.FiscalYearVariant = P_FixedAssetTransactionOvw.FiscalYearVariant AND _FiscalPeriodForVariant.FiscalYear = P_FixedAssetTransactionOvw.FiscalYear AND _FiscalPeriodForVariant.FiscalPeriod = P_FixedAssetTransactionOvw.FiscalPeriod  -- association [0..1]
-- UNION with additional select branch(es): P_FixedAssetTransactionOvw
;