P_FxdAstTransInPreviousQuarter
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)
| Source | Alias | Join Type |
|---|---|---|
| P_FixedAssetTransactionOvw | P_FixedAssetTransactionOvw | from |
| P_FixedAssetTransactionOvw | P_FixedAssetTransactionOvw | union |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | fagl_keydate | |
| P_TodayDate | fagl_keydate | |
| P_AssetAccountingKeyFigureSet | faa_key_figure_set |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA