P_DepreciationAreaForLedger

DDL: P_DEPRECIATIONAREAFORLEDGER Type: view BASIC Package: FAA_IS

Depreciation Area For Ledger

P_DepreciationAreaForLedger is a Basic CDS View that provides data about "Depreciation Area For Ledger" in SAP S/4HANA. It reads from 6 data sources and exposes 17 fields with key fields CompanyCode, Ledger, AssetDepreciationArea, Ledger, AssetDepreciationArea. Part of development package FAA_IS.

Data Sources (6)

SourceAliasJoin Type
faac_cmp_da0 faac_cmp_da0 from
faac_cmp_da0 faac_cmp_da0 union_all
fagl_tldgrp_map fagl_tldgrp_map inner
P_TF_AssetRedesignSwitchStatus P_TF_AssetRedesignSwitchStatus inner
P_TF_AssetRedesignSwitchStatus P_TF_AssetRedesignSwitchStatus inner
t093 t093 inner

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PFIDEPRAREALDGR view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode t093c bukrs Value
KEY Ledger fagl_tldgrp_map rldnr Ledger
KEY AssetDepreciationArea t093 afaber Deprec. Area
AssetValuationView ValView
FiscalYearVariant FY Variant
ValidityStartFiscalYear Valid-From Year
ValidityEndFiscalYear Valid-To Year
IsRealDepreciationArea t093 xstore Real Dep. Area
IsActiveXkeycomp_codeasCompanyCode
KEY Ledger ledger Ledger
KEY AssetDepreciationArea depr_area Deprec. Area
AssetValuationView valview ValView
FiscalYearVariant depr_fisc_year_var FY Variant
ValidityStartFiscalYear fisc_year_from Valid-From Year
ValidityEndFiscalYear fisc_year_to Valid-To Year
IsRealDepreciationArea Real Dep. Area
IsRepresentativeLedger

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_DepreciationAreaForLedger.
-- 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.

CREATE VIEW P_DepreciationAreaForLedger AS
SELECT
  t093c.bukrs AS CompanyCode,
  fagl_tldgrp_map.rldnr AS Ledger,
  t093.afaber AS AssetDepreciationArea,
  cast('' as faa_valview) AS AssetValuationView,
  cast('' as periv) AS FiscalYearVariant,
  cast('' as faa_from_fisc_year) AS ValidityStartFiscalYear,
  cast('' as faa_to_fisc_year) AS ValidityEndFiscalYear,
  t093.xstore AS IsRealDepreciationArea,
  fagl_tldgrp_map.represent as IsRepresentativeLedger AS IsActiveXkeycomp_codeasCompanyCode,
  cast('X' as fagl_represent) AS IsRepresentativeLedger
FROM faac_cmp_da0
INNER JOIN t093 ON /* join condition not captured in parsed metadata */
INNER JOIN fagl_tldgrp_map ON /* join condition not captured in parsed metadata */
INNER JOIN P_TF_AssetRedesignSwitchStatus ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): faac_cmp_da0
;