C_AssetLedgerTP

DDL: C_ASSETLEDGERTP SQL: CASSETLDGRTP Type: view CONSUMPTION

Asset Ledger

C_AssetLedgerTP is a Consumption CDS View that provides data about "Asset Ledger" in SAP S/4HANA. It reads from 1 data source (I_AssetLedgerTP) and exposes 20 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, Ledger. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_AssetLedgerTP AssetLedgerTP from

Associations (3)

CardinalityTargetAliasCondition
[1..1] C_AssetTP _AssetTP $projection.CompanyCode = _AssetTP.CompanyCode and $projection.MasterFixedAsset = _AssetTP.MasterFixedAsset and $projection.FixedAsset = _AssetTP.FixedAsset
[1..1] P_AssetLedgerFiscalYear _FiscalYear $projection.CompanyCode = _FiscalYear.CompanyCode and $projection.MasterFixedAsset = _FiscalYear.MasterFixedAsset and $projection.FixedAsset = _FiscalYear.FixedAsset and $projection.Ledger = _FiscalYear.Ledger
[0..1] I_FixedAsset _AssetInfo $projection.CompanyCode = _AssetInfo.CompanyCode and $projection.MasterFixedAsset = _AssetInfo.MasterFixedAsset and $projection.FixedAsset = _AssetInfo.FixedAsset

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CASSETLDGRTP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Asset Ledger view
VDM.viewType #CONSUMPTION view
Search.searchable false view
Metadata.allowExtensions true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled false view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY MasterFixedAsset MasterFixedAsset Fixed Asset
KEY FixedAsset FixedAsset Sub-number
KEY Ledger Ledger Ledger
LedgerName
AssetCapitalizationDate AssetCapitalizationDate Asset Capitalization
AssetDeactivationDate AssetDeactivationDate
AcquisitionValueDate AcquisitionValueDate
FirstAcquisitionFiscalYear FirstAcquisitionFiscalYear Acquisition Yr
FirstAcquisitionFiscalPeriod FirstAcquisitionFiscalPeriod
LastRevaluationDate LastRevaluationDate
AssetCurrentFiscalYear
Quantity
BaseUnit
_AssetTP _AssetTP
_CompanyCode _CompanyCode
_MasterFixedAsset _MasterFixedAsset
_FixedAsset _FixedAsset
_Ledger _Ledger
_AssetValuationForLedger _AssetValuationForLedger

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 C_AssetLedgerTP.
-- 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: CASSETLDGRTP

CREATE VIEW C_AssetLedgerTP AS
SELECT
  CompanyCode,
  MasterFixedAsset,
  FixedAsset,
  Ledger,
  _Ledger._Text[1:Language = $session.system_language].LedgerName AS LedgerName,
  AssetCapitalizationDate,
  AssetDeactivationDate,
  AcquisitionValueDate,
  FirstAcquisitionFiscalYear,
  FirstAcquisitionFiscalPeriod,
  LastRevaluationDate,
  cast( '' as lgjan ) AS AssetCurrentFiscalYear,
  cast( 0 as quan1_12 ) AS Quantity,
  cast( '' as meins ) AS BaseUnit
FROM I_AssetLedgerTP AS AssetLedgerTP
LEFT OUTER JOIN C_AssetTP AS _AssetTP ON CompanyCode = _AssetTP.CompanyCode AND MasterFixedAsset = _AssetTP.MasterFixedAsset AND FixedAsset = _AssetTP.FixedAsset  -- association [1..1]
LEFT OUTER JOIN P_AssetLedgerFiscalYear AS _FiscalYear ON CompanyCode = _FiscalYear.CompanyCode AND MasterFixedAsset = _FiscalYear.MasterFixedAsset AND FixedAsset = _FiscalYear.FixedAsset AND Ledger = _FiscalYear.Ledger  -- association [1..1]
LEFT OUTER JOIN I_FixedAsset AS _AssetInfo ON CompanyCode = _AssetInfo.CompanyCode AND MasterFixedAsset = _AssetInfo.MasterFixedAsset AND FixedAsset = _AssetInfo.FixedAsset  -- association [0..1]
;