I_AstAcqnAndRtrmtOverview

DDL: I_ASTACQNANDRTRMTOVERVIEW SQL: IASTACQRETOV Type: view COMPOSITE

Asset Acquisitions and Retirements Overview

I_AstAcqnAndRtrmtOverview is a Composite CDS View that provides data about "Asset Acquisitions and Retirements Overview" in SAP S/4HANA. It reads from 1 data source (I_FixedAssetTransaction) and exposes 38 fields with key fields CompanyCode, AssetDepreciationArea, MasterFixedAsset, FixedAsset, Ledger. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_FixedAssetTransaction I_FixedAssetTransaction from

Parameters (2)

NameTypeDefault
P_KeyDate fagl_keydate
P_AssetAccountingKeyFigureSet faa_key_figure_set

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_FixedAssetForLedger _FixedAssetForLedger _FixedAssetForLedger.CompanyCode = $projection.CompanyCode and _FixedAssetForLedger.MasterFixedAsset = $projection.MasterFixedAsset and _FixedAssetForLedger.FixedAsset = $projection.FixedAsset and _FixedAssetForLedger.Ledger = $projection.Ledger
[1] I_AssetRedesignSwitchStatus _AssetRedesignSwitchStatus _AssetRedesignSwitchStatus.AssetRedesignSwitchIsActive = '' or _AssetRedesignSwitchStatus.AssetRedesignSwitchIsActive = 'X'

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IASTACQRETOV view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Asset Acquisitions and Retirements Overview view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AssetDepreciationArea AssetDepreciationArea Deprec. Area
KEY MasterFixedAsset MasterFixedAsset Fixed Asset
KEY FixedAsset FixedAsset Sub-number
KEY Ledger Ledger Ledger
KEY LedgerFiscalYear LedgerFiscalYear
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY FiscalPeriod FiscalPeriod Tax period
KEY SubLedgerAcctLineItemType SubLedgerAcctLineItemType SLALineItemType
KEY AssetAcctTransClassfctn AssetAcctTransClassfctn Trans.Type Cat.
KEY AssetAccountingKeyFigure AssetAccountingKeyFigure
KEY AssetAccountingKeyFigureSet AssetAccountingKeyFigureSet
KEY AccountingDocument AccountingDocument Journal Entry
KEY TransactionSubitem TransactionSubitem Sub Transaction
KEY DebitCreditCode DebitCreditCode Single-Character Flag
KEY CurrencyRole CurrencyRole Curr./Val. Type
PostingDate PostingDate Posting Date for GR
AssetClass AssetClass Asset Class
AssetAccountDetermination AssetAccountDetermination Account Determ.
AssetCapitalizationDate _FixedAssetForLedger AssetCapitalizationDate Asset Capitalization
AssetDeactivationDate _FixedAssetForLedger AssetDeactivationDate
AssetCountryOfOrigin
AssetSupplier _FixedAsset Supplier Supplier
SupplierAccountGroup
SupplierBasicAuthorizationGrp
AssetCostCenter AssetCostCenter
AssetPlant AssetPlant
AssetProfitCenter AssetProfitCenter
AssetSegment AssetSegment
CompanyCodeName CompanyCodeName Company Name
FixedAssetDescription FixedAssetDescription Description
SelectedCurrencyBranch SelectedCurrencyBranch
DisplayCurrency DisplayCurrency Display Currency
AcqnProdnAmtInDspCrcy AcqnProdnAmtInDspCrcy
RtrmtNetBookValueAmtInDspCrcy RtrmtNetBookValueAmtInDspCrcy
_FixedAsset _FixedAsset
_AssetClassText _AssetClassText
_AssetRedesignSwitchStatus _AssetRedesignSwitchStatus

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 I_AstAcqnAndRtrmtOverview.
-- 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: IASTACQRETOV
-- Parameters: P_KeyDate : fagl_keydate, P_AssetAccountingKeyFigureSet : faa_key_figure_set

CREATE VIEW I_AstAcqnAndRtrmtOverview AS
SELECT
  CompanyCode,
  AssetDepreciationArea,
  MasterFixedAsset,
  FixedAsset,
  Ledger,
  LedgerFiscalYear,
  FiscalYear,
  FiscalPeriod,
  SubLedgerAcctLineItemType,
  AssetAcctTransClassfctn,
  AssetAccountingKeyFigure,
  AssetAccountingKeyFigureSet,
  AccountingDocument,
  TransactionSubitem,
  DebitCreditCode,
  CurrencyRole,
  PostingDate,
  AssetClass,
  AssetAccountDetermination,
  _FixedAssetForLedger.AssetCapitalizationDate AS AssetCapitalizationDate,
  _FixedAssetForLedger.AssetDeactivationDate AS AssetDeactivationDate,
  cast(_FixedAsset.AssetCountryOfOrigin as faa_asset_cntry_of_origin) AS AssetCountryOfOrigin,
  _FixedAsset.Supplier AS AssetSupplier,
  _FixedAsset._Supplier.SupplierAccountGroup AS SupplierAccountGroup,
  _FixedAsset._Supplier.AuthorizationGroup AS SupplierBasicAuthorizationGrp,
  AssetCostCenter,
  AssetPlant,
  AssetProfitCenter,
  AssetSegment,
  CompanyCodeName,
  FixedAssetDescription,
  SelectedCurrencyBranch,
  DisplayCurrency,
  AcqnProdnAmtInDspCrcy,
  RtrmtNetBookValueAmtInDspCrcy
FROM I_FixedAssetTransaction
LEFT OUTER JOIN I_FixedAssetForLedger AS _FixedAssetForLedger ON _FixedAssetForLedger.CompanyCode = CompanyCode AND _FixedAssetForLedger.MasterFixedAsset = MasterFixedAsset AND _FixedAssetForLedger.FixedAsset = FixedAsset AND _FixedAssetForLedger.Ledger = Ledger  -- association [0..1]
LEFT OUTER JOIN I_AssetRedesignSwitchStatus AS _AssetRedesignSwitchStatus ON _AssetRedesignSwitchStatus.AssetRedesignSwitchIsActive = '' OR _AssetRedesignSwitchStatus.AssetRedesignSwitchIsActive = 'X'  -- association [1]
;