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

P_FxdAstTransInPreviousQuarter

DDL: P_FXDASTTRANSINPREVIOUSQUARTER SQL: PFASSETTRNPQ Type: view COMPOSITE

P_FxdAstTransInPreviousQuarter is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_FixedAssetTransactionOvw, P_FixedAssetTransactionOvw) and exposes 52 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, AssetDepreciationArea, Ledger. It has 5 associations to related views.

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
[1..1] I_FiscalCalendarDateForLedger _QuarterPeriod I_FiscalYearPeriodForLedger.FiscalPeriodStartDate = _QuarterPeriod.CalendarDate and P_FixedAssetTransactionOvw.CompanyCode = _QuarterPeriod.CompanyCode and P_FixedAssetTransactionOvw.Ledger = _QuarterPeriod.Ledger

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PFASSETTRNPQ 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 (52)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_FixedAssetTransactionOvw CompanyCode Receiver Company Code
KEY MasterFixedAsset MasterFixedAsset Fixed Asset
KEY FixedAsset FixedAsset Sub-number
KEY AssetDepreciationArea AssetDepreciationArea Deprec. Area
KEY Ledger P_FixedAssetTransactionOvw Ledger Ledger
KEY AssetAccountingKeyFigureSet
KEY CurrencyRole CurrencyRole Curr./Val. Type
CompanyCodeName CompanyCodeName Company Name
AssetCostCenter AssetCostCenter
AssetClass AssetClass Asset Class
AssetPlant AssetPlant
BusinessArea BusinessArea Business Area
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
CompanyCode Receiver Company Code
KEY MasterFixedAsset MasterFixedAsset Fixed Asset
KEY FixedAsset FixedAsset Sub-number
KEY AssetDepreciationArea AssetDepreciationArea Deprec. Area
KEY Ledger P_FixedAssetTransactionOvw Ledger Ledger
KEY AssetAccountingKeyFigureSet
KEY CurrencyRole CurrencyRole Curr./Val. Type
CompanyCodeName CompanyCodeName Company Name
AssetCostCenter AssetCostCenter
AssetClass AssetClass Asset Class
AssetPlant AssetPlant
BusinessArea BusinessArea Business Area
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_FxdAstTransInPreviousQuarter.
-- 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: PFASSETTRNPQ
-- Parameters: P_KeyDate : fagl_keydate, P_TodayDate : fagl_keydate, P_AssetAccountingKeyFigureSet : faa_key_figure_set

CREATE VIEW P_FxdAstTransInPreviousQuarter AS
SELECT
  P_FixedAssetTransactionOvw.CompanyCode AS CompanyCode,
  MasterFixedAsset,
  FixedAsset,
  AssetDepreciationArea,
  P_FixedAssetTransactionOvw.Ledger AS Ledger,
  cast ('TRANS_ACQ' as faa_asset_transaction_type) AS AssetAccountingKeyFigureSet,
  CurrencyRole,
  CompanyCodeName,
  AssetCostCenter,
  AssetClass,
  AssetPlant,
  BusinessArea,
  Segment,
  AssetProfitCenter,
  cast('PQ' 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_FiscalCalendarDateForLedger AS _QuarterPeriod ON I_FiscalYearPeriodForLedger.FiscalPeriodStartDate = _QuarterPeriod.CalendarDate AND P_FixedAssetTransactionOvw.CompanyCode = _QuarterPeriod.CompanyCode AND P_FixedAssetTransactionOvw.Ledger = _QuarterPeriod.Ledger  -- association [1..1]
-- UNION with additional select branch(es): P_FixedAssetTransactionOvw
;