P_AstNetBookBalWthAllAreas1

DDL: P_ASTNETBOOKBALWTHALLAREAS1 SQL: PASSTNETBOOKVAL1 Type: view CONSUMPTION

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)

SourceAliasJoin 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)

NameTypeDefault
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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;