P_AstNetBookBalWthAllAreas1
P_AstNetBookBalWthAllAreas1 is a Consumption CDS View in SAP S/4HANA. It reads from 8 data sources and exposes 21 fields with key fields AssetDepreciationArea, CompanyCode, Ledger, MasterFixedAsset, FixedAsset.
Data Sources (8)
| Source | Alias | Join Type |
|---|---|---|
| I_AssetValuation | AssetValuation | inner |
| I_AssetValuation | AssetValuation | inner |
| I_CalculatedAssetValuationView | AssetValuationViewCalcSource | inner |
| I_DepreciationAreaForLedger | DepreciationAreaForLedger | from |
| I_DepreciationAreaForLedger | DepreciationAreaForLedger | union_all |
| I_LedgerCompanyCodeCrcyRoles | LedgerCompanyCodeCrcyRoles | inner |
| P_AstNetBookBalWthAllAreas2 | P_AstNetBookBalWthAllAreas2 | inner |
| P_AstNetBookBalWthAllAreas2 | P_AstNetBookBalWthAllAreas2 | inner |
Parameters (7)
| Name | Type | Default |
|---|---|---|
| P_MasterFixedAsset | anln1 | |
| P_FixedAsset | anln2 | |
| P_CompanyCode | bukrs | |
| P_Ledger | fins_ledger | |
| P_CurrencyRole | fis_curtp | |
| P_CreationDateTime | timestampl | |
| P_UserID | username |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PASSTNETBOOKVAL1 | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AssetDepreciationArea | I_DepreciationAreaForLedger | AssetDepreciationArea | Deprec. Area |
| KEY | CompanyCode | Values | CompanyCode | Receiver Company Code |
| KEY | Ledger | Values | Ledger | Ledger |
| KEY | MasterFixedAsset | Values | MasterFixedAsset | Fixed Asset |
| KEY | FixedAsset | Values | FixedAsset | Sub-number |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | CurrencyRole | CurrencyRole | Curr./Val. Type | |
| KEY | AssetValuationView | I_CalculatedAssetValuationView | SourceAssetValuationView | |
| Currency | Currency | Valuation Crcy | ||
| P_AssetAccountingKeyFigureSetAE_NETBOOK | ||||
| AssetDepreciationArea | Deprec. Area | |||
| KEY | CompanyCode | Values | CompanyCode | Receiver Company Code |
| KEY | Ledger | Values | Ledger | Ledger |
| KEY | MasterFixedAsset | Values | MasterFixedAsset | Fixed Asset |
| KEY | FixedAsset | Values | FixedAsset | Sub-number |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | CurrencyRole | CurrencyRole | Curr./Val. Type | |
| KEY | AssetValuationView | Values | AssetValuationView | |
| Currency | Currency | Valuation Crcy | ||
| EndingBalAmtInDspCrcy | EndingBalAmtInDspCrcy | |||
| _FixedAsset | Values | _FixedAsset |
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_AstNetBookBalWthAllAreas1.
-- 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: PASSTNETBOOKVAL1
-- Parameters: P_MasterFixedAsset : anln1, P_FixedAsset : anln2, P_CompanyCode : bukrs, P_Ledger : fins_ledger, P_CurrencyRole : fis_curtp, P_CreationDateTime : timestampl, P_UserID : username
CREATE VIEW P_AstNetBookBalWthAllAreas1 AS
SELECT
DepreciationAreaForLedger.AssetDepreciationArea AS AssetDepreciationArea,
Values.CompanyCode AS CompanyCode,
Values.Ledger AS Ledger,
Values.MasterFixedAsset AS MasterFixedAsset,
Values.FixedAsset AS FixedAsset,
FiscalYear,
CurrencyRole,
AssetValuationViewCalcSource.SourceAssetValuationView AS AssetValuationView,
Currency,
P_AssetAccountingKeyFigureSet: 'AE_NETBOOK' AS P_AssetAccountingKeyFigureSetAE_NETBOOK,
EndingBalAmtInDspCrcy,
Values._FixedAsset AS _FixedAsset
FROM I_DepreciationAreaForLedger AS DepreciationAreaForLedger
INNER JOIN I_AssetValuation AS AssetValuation ON /* join condition not captured in parsed metadata */
INNER JOIN I_LedgerCompanyCodeCrcyRoles AS LedgerCompanyCodeCrcyRoles ON /* join condition not captured in parsed metadata */
INNER JOIN I_CalculatedAssetValuationView AS AssetValuationViewCalcSource ON /* join condition not captured in parsed metadata */
INNER JOIN P_AstNetBookBalWthAllAreas2 ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_DepreciationAreaForLedger
;
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