P_AssetClassWithAccountAssgmt

DDL: P_ASSETCLASSWITHACCOUNTASSGMT SQL: PCADEASTCLS Type: view CONSUMPTION

P_AssetClassWithAccountAssgmt is a Consumption CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 9 fields with key fields CompanyCode, AssetClass, AssetRealDepreciationArea.

Data Sources (6)

SourceAliasJoin Type
I_AssetClassByCompanyCode AssetClass left_outer
I_AssetClass AssetClassDetail inner
I_AssetBalanceSheetAccount BSAccount inner
I_CompanyCode CompanyCode from
I_OrdinaryDeprValAdjmtAccount OrdinaryDeprValAdjmtAccount inner
I_RevalOrdnryDeprValAdjmtAcct RevalValueAdjustmentAccount inner

Parameters (1)

NameTypeDefault
P_AssetRealDepreciationArea afabe_d

Annotations (7)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PCADEASTCLS view
VDM.viewType #CONSUMPTION view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_CompanyCode CompanyCode Receiver Company Code
KEY AssetClass I_AssetClassByCompanyCode AssetClass Asset Class
KEY AssetRealDepreciationArea
ChartOfAccounts I_CompanyCode ChartOfAccounts Node Class
AssetClassName I_AssetClassByCompanyCode AssetClassName
AssetAccountDetermination I_AssetClass AssetAccountDetermination Account Determ.
AcqnProdnCostGLAccount
OrdinaryDeprValAdjmtGLAccount
RevalOrdnryDeprValAdjmtGLAcct

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_AssetClassWithAccountAssgmt.
-- 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: PCADEASTCLS
-- Parameters: P_AssetRealDepreciationArea : afabe_d

CREATE VIEW P_AssetClassWithAccountAssgmt AS
SELECT
  CompanyCode.CompanyCode AS CompanyCode,
  AssetClass.AssetClass AS AssetClass,
  $parameters.P_AssetRealDepreciationArea AS AssetRealDepreciationArea,
  CompanyCode.ChartOfAccounts AS ChartOfAccounts,
  AssetClass.AssetClassName AS AssetClassName,
  AssetClassDetail.AssetAccountDetermination AS AssetAccountDetermination,
  ltrim(BSAccount.AcqnProdnCostGLAccount,'0') AS AcqnProdnCostGLAccount,
  ltrim(OrdinaryDeprValAdjmtAccount.OrdinaryDeprValAdjmtGLAccount,'0') AS OrdinaryDeprValAdjmtGLAccount,
  ltrim(RevalValueAdjustmentAccount.RevalOrdnryDeprValAdjmtGLAcct,'0') AS RevalOrdnryDeprValAdjmtGLAcct
FROM I_CompanyCode AS CompanyCode
LEFT OUTER JOIN I_AssetClassByCompanyCode AS AssetClass ON /* join condition not captured in parsed metadata */
INNER JOIN I_AssetClass AS AssetClassDetail ON /* join condition not captured in parsed metadata */
INNER JOIN I_AssetBalanceSheetAccount AS BSAccount ON /* join condition not captured in parsed metadata */
INNER JOIN I_OrdinaryDeprValAdjmtAccount AS OrdinaryDeprValAdjmtAccount ON /* join condition not captured in parsed metadata */
INNER JOIN I_RevalOrdnryDeprValAdjmtAcct AS RevalValueAdjustmentAccount ON /* join condition not captured in parsed metadata */
;