P_FixedAssetTransaction
P_FixedAssetTransaction is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_AssetKeyFigureSetSpec, I_AssetKeyFigureSpecification, P_FxdAstValueWithCurrencyRole) and exposes 51 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, FiscalYear, FiscalPeriod.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_AssetKeyFigureSetSpec | AssetKeyFigureSetSpec | inner |
| I_AssetKeyFigureSpecification | AssetKeyFigureSpec | inner |
| P_FxdAstValueWithCurrencyRole | P_FxdAstValueWithCurrencyRole | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_AssetAccountingKeyFigureSet | faa_key_figure_set |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFASSETTRAN | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (51)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_FxdAstValueWithCurrencyRole | CompanyCode | |
| KEY | MasterFixedAsset | MasterFixedAsset | ||
| KEY | FixedAsset | FixedAsset | ||
| KEY | FiscalYear | FiscalYear | ||
| KEY | FiscalPeriod | FiscalPeriod | ||
| KEY | AssetDepreciationArea | AssetDepreciationArea | ||
| KEY | LedgerGroup | LedgerGroup | ||
| KEY | Ledger | Ledger | ||
| KEY | AccountingDocument | AccountingDocument | ||
| KEY | TransactionSubitem | TransactionSubitem | ||
| KEY | DebitCreditCode | DebitCreditCode | ||
| KEY | CurrencyRole | CurrencyRole | ||
| KEY | SubLedgerAcctLineItemType | P_FxdAstValueWithCurrencyRole | SubLedgerAcctLineItemType | |
| LedgerFiscalYear | LedgerFiscalYear | |||
| FiscalYearVariant | FiscalYearVariant | |||
| FiscalYearPeriod | FiscalYearPeriod | |||
| AssetAccountingKeyFigure | I_AssetKeyFigureSpecification | AssetAccountingKeyFigure | ||
| GroupMasterFixedAsset | GroupMasterFixedAsset | |||
| GroupFixedAsset | GroupFixedAsset | |||
| ChartOfDepreciation | ChartOfDepreciation | |||
| AccountingDocumentCreationDate | AccountingDocumentCreationDate | |||
| CreationTime | CreationTime | |||
| PostingDate | PostingDate | |||
| DocumentDate | DocumentDate | |||
| AssetValueDate | AssetValueDate | |||
| AccountingDocCreatedByUser | AccountingDocCreatedByUser | |||
| AssetTransactionType | AssetTransactionType | |||
| AssetAcctTransClassfctn | AssetAcctTransClassfctn | |||
| AssignmentReference | AssignmentReference | |||
| DocumentItemText | DocumentItemText | |||
| ReferenceDocumentType | ReferenceDocumentType | |||
| ReferenceDocument | ReferenceDocument | |||
| LogicalSystem | LogicalSystem | |||
| ReferenceDocumentContext | ReferenceDocumentContext | |||
| ReversalReferenceDocumentCntxt | ReversalReferenceDocumentCntxt | |||
| ReversalReferenceDocument | ReversalReferenceDocument | |||
| ReversalTransactionSubitem | ReversalTransactionSubitem | |||
| IsReversal | IsReversal | |||
| IsReversed | IsReversed | |||
| BusinessArea | BusinessArea | |||
| Segment | Segment | |||
| FinancialAccountType | FinancialAccountType | |||
| ControllingArea | ControllingArea | |||
| FinancialManagementArea | FinancialManagementArea | |||
| Fund | Fund | |||
| GrantID | GrantID | |||
| FunctionalArea | FunctionalArea | |||
| BudgetPeriod | BudgetPeriod | |||
| DisplayCurrency | DisplayCurrency | |||
| AmountInDisplayCurrency | AmountInDisplayCurrency | |||
| IsStatisticalDocument | IsStatisticalDocument |
@AbapCatalog: {sqlViewName: 'PFASSETTRAN', preserveKey: true}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.buffering.status: #NOT_ALLOWED
@Metadata.ignorePropagatedAnnotations: true
define view P_FixedAssetTransaction
with parameters
P_AssetAccountingKeyFigureSet : faa_key_figure_set
as select from P_FxdAstValueWithCurrencyRole
inner join I_AssetKeyFigureSetSpec as AssetKeyFigureSetSpec on AssetKeyFigureSetSpec.AssetAccountingKeyFigureSet = :P_AssetAccountingKeyFigureSet
inner join I_AssetKeyFigureSpecification as AssetKeyFigureSpec on AssetKeyFigureSpec.AssetAccountingKeyFigure = AssetKeyFigureSetSpec.AssetAccountingKeyFigure
and AssetKeyFigureSpec.AssetAcctAnlytlTransClassfctn = P_FxdAstValueWithCurrencyRole.AssetAcctTransClassfctn
and AssetKeyFigureSpec.SubLedgerAcctLineItemType = P_FxdAstValueWithCurrencyRole.SubLedgerAcctLineItemType
{
key P_FxdAstValueWithCurrencyRole.CompanyCode,
key MasterFixedAsset,
key FixedAsset,
key FiscalYear,
key FiscalPeriod,
key AssetDepreciationArea,
key LedgerGroup,
key Ledger,
key AccountingDocument,
key TransactionSubitem,
key DebitCreditCode,
key CurrencyRole,
key P_FxdAstValueWithCurrencyRole.SubLedgerAcctLineItemType,
LedgerFiscalYear,
FiscalYearVariant,
FiscalYearPeriod,
AssetKeyFigureSpec.AssetAccountingKeyFigure,
GroupMasterFixedAsset,
GroupFixedAsset,
ChartOfDepreciation,
AccountingDocumentCreationDate,
CreationTime,
PostingDate,
DocumentDate,
AssetValueDate,
AccountingDocCreatedByUser,
AssetTransactionType,
AssetAcctTransClassfctn,
AssignmentReference,
DocumentItemText,
ReferenceDocumentType,
ReferenceDocument,
LogicalSystem,
ReferenceDocumentContext,
ReversalReferenceDocumentCntxt,
ReversalReferenceDocument,
ReversalTransactionSubitem,
IsReversal,
IsReversed,
BusinessArea,
Segment,
FinancialAccountType,
ControllingArea,
FinancialManagementArea,
Fund,
GrantID,
FunctionalArea,
BudgetPeriod,
case when AssetAcctTransClassfctn = '11' or AssetAcctTransClassfctn = '15' or
AssetAcctTransClassfctn = '21' or AssetAcctTransClassfctn = '31' or
AssetAcctTransClassfctn = 'M1'
then cast('1' as fis_assettransactionvariant preserving type) //Acquistion
when AssetAcctTransClassfctn = '12' or AssetAcctTransClassfctn = 'A8' or
AssetAcctTransClassfctn = 'B8'
then cast('2' as fis_assettransactionvariant preserving type) //Retirement
when AssetAcctTransClassfctn = '13' or AssetAcctTransClassfctn = '14' or
AssetAcctTransClassfctn = 'M2'
then cast('3' as fis_assettransactionvariant preserving type) //Intercompany Transfer
when AssetAcctTransClassfctn = '' and ( P_FxdAstValueWithCurrencyRole.SubLedgerAcctLineItemType = '07902' or
P_FxdAstValueWithCurrencyRole.SubLedgerAcctLineItemType = '07903' or
P_FxdAstValueWithCurrencyRole.SubLedgerAcctLineItemType = '07904')
then cast('2' as fis_assettransactionvariant preserving type) //Retirement
else
cast('0' as fis_assettransactionvariant preserving type) //Other Transactions
end as AssetTransactionVariant,
@Semantics.currencyCode:true
DisplayCurrency,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DisplayCurrency'
AmountInDisplayCurrency,
IsStatisticalDocument
}
where
AssetAcctTransClassfctn <> '00' //No balance carry forward items
and(
AssetAcctTransClassfctn <> '06'
or //No items from depreciation run
(
AssetAcctTransClassfctn = '06'
and(
P_FxdAstValueWithCurrencyRole.SubLedgerAcctLineItemType = '07203'
or P_FxdAstValueWithCurrencyRole.SubLedgerAcctLineItemType = '07204'
)
)
) //No items from depreciation run but revaluations
and AssetAcctTransClassfctn <> 'C7' //No items from Legacy Data Transfer FY Start Value
and AssetAcctTransClassfctn <> 'E7' //No items from Legacy Data Transfer FY Ending Balance
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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