C_AssetLedgerTP
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)
| Source | Alias | Join Type |
|---|---|---|
| I_AssetLedgerTP | AssetLedgerTP | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- 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
- S/4HANA CDS View Deprecation: What You Need to Know
- 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