FAA_SDM_DOCIT_CP22

DDL: FAA_SDM_DOCIT_CP22 SQL: FAAVDOCITCP22 Type: view

Compare from ACDOCA to PLAN_VALUE

FAA_SDM_DOCIT_CP22 is a CDS View that provides data about "Compare from ACDOCA to PLAN_VALUE" in SAP S/4HANA. It reads from 5 data sources (acdoca, FAA_CFG_DEPR_AREA, fins_tech_ledger, fins_tech_ledger, FAA_SDM_DOCIT_CP02) and exposes 56 fields with key fields bukrs, anln1, anln2, gjahr, afabe.

Data Sources (5)

SourceAliasJoin Type
acdoca acdoca from
FAA_CFG_DEPR_AREA cfg_depr_area inner
fins_tech_ledger ledger_a inner
fins_tech_ledger ledger_p inner
FAA_SDM_DOCIT_CP02 split_number left_outer

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName FAAVDOCITCP22 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Compare from ACDOCA to PLAN_VALUE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view

Fields (56)

KeyFieldSource TableSource FieldDescription
KEY bukrs acdoca rbukrs Company Code
KEY anln1 acdoca anln1 Asset
KEY anln2 acdoca anln2 Sub-number
KEY gjahr acdoca gjahr Settlement Year
KEY afabe acdoca afabe Deprec. Area
KEY poper acdoca depr_period Posting Period
KEY slalittype acdoca slalittype SLALineItemType
KEY rldnr
KEY belnr acdoca belnr SD Document
KEY docln acdoca docln Matching Document Line Item
rldnrthenXelseendastech_ledger_d
t_poper acdoca poper Posting periods
poperthenXelseendaspoper_d
s_movcat plan_values movcat Trans.Type Cat.
t_movcat acdoca movcat Trans.Type Cat.
movcatthenXelseendasmovcat_d
s_hsl plan_values hsl Local Crcy Amt
t_hsl acdoca hsl Local Crcy Amt
hslthenXelseendashsl_d
s_ksl plan_values ksl GrpCurr
t_ksl acdoca ksl GrpCurr
ksl_d
s_osl plan_values osl Other Crcy Amnt
t_osl acdoca osl Other Crcy Amnt
osl_d
s_vsl plan_values vsl Amount in Currency 2
t_vsl acdoca vsl Amount in Currency 2
vsl_d
s_rhcur plan_values rhcur Local Currency
t_rhcur acdoca rhcur Local Currency
rhcurthenXelseendasrhcur_d
s_rkcur plan_values rkcur Ledger curr.
t_rkcur acdoca rkcur Ledger curr.
rkcur_d
s_rocur plan_values rocur Free Defined Crcy 1
t_rocur acdoca rocur Free Defined Crcy 1
rocur_d
s_rvcur plan_values rvcur Free Defined Crcy 4
t_rvcur acdoca rvcur Free Defined Crcy 4
rvcur_d
s_anlkl plan_values anlkl Asset Class
t_anlkl acdoca anlkl Asset Class
anlklthenXelseendasanlkl_d
s_ktogr plan_values ktogr Account Determ.
t_ktogr acdoca ktogr Account Determ.
ktogrthenXelseendasktogr_d
s_mig_source plan_values mig_source Migr. Source
t_mig_source acdoca mig_source Migr. Source
mig_source_d
s_recid plan_values recid Statistical Key Figure Item
t_recid acdoca recid Statistical Key Figure Item
recidthenXelseendasrecid_d
recidthenXelseendasdifferent Different
direction Migrated
anlkl acdoca anlkl Asset Class
movcat acdoca movcat Trans.Type Cat.

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 FAA_SDM_DOCIT_CP22.
-- 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: FAAVDOCITCP22

CREATE VIEW FAA_SDM_DOCIT_CP22 AS
SELECT
  acdoca.rbukrs AS bukrs,
  acdoca.anln1 AS anln1,
  acdoca.anln2 AS anln2,
  acdoca.gjahr AS gjahr,
  acdoca.afabe AS afabe,
  acdoca.depr_period AS poper,
  acdoca.slalittype AS slalittype,
  cast( acdoca.rldnr as fins_technical_ledger preserving type ) AS rldnr,
  acdoca.belnr AS belnr,
  acdoca.docln AS docln,
  case when plan_values.bukrs is null then 'X' when ledger_p.tech_ledger <> acdoca.rldnr then 'X' else '' end as tech_ledger_d AS rldnrthenXelseendastech_ledger_d,
  acdoca.poper AS t_poper,
  case when plan_values.bukrs is null then 'X' when ( ( plan_values.poper_shifted = '000' and plan_values.poper <> acdoca.poper ) or ( plan_values.poper_shifted <> '000' and plan_values.poper_shifted <> acdoca.poper ) ) then 'X' else '' end as poper_d AS poperthenXelseendaspoper_d,
  plan_values.movcat AS s_movcat,
  acdoca.movcat AS t_movcat,
  case when plan_values.bukrs is null then 'X' when ( plan_values.movcat = '46' and acdoca.movcat <> '06' ) or ( plan_values.movcat = '65' and acdoca.movcat <> '06' ) or ( plan_values.movcat <> '46' and plan_values.movcat <> '65' and plan_values.movcat <> acdoca.movcat ) then 'X' else '' end as movcat_d AS movcatthenXelseendasmovcat_d,
  plan_values.hsl AS s_hsl,
  acdoca.hsl AS t_hsl,
  case when plan_values.bukrs is null then 'X' when plan_values.hsl <> acdoca.hsl then 'X' else '' end as hsl_d AS hslthenXelseendashsl_d,
  plan_values.ksl AS s_ksl,
  acdoca.ksl AS t_ksl,
  '' AS ksl_d,
  plan_values.osl AS s_osl,
  acdoca.osl AS t_osl,
  '' AS osl_d,
  plan_values.vsl AS s_vsl,
  acdoca.vsl AS t_vsl,
  '' AS vsl_d,
  plan_values.rhcur AS s_rhcur,
  acdoca.rhcur AS t_rhcur,
  case when plan_values.bukrs is null then 'X' when plan_values.rhcur <> acdoca.rhcur then 'X' else '' end as rhcur_d AS rhcurthenXelseendasrhcur_d,
  plan_values.rkcur AS s_rkcur,
  acdoca.rkcur AS t_rkcur,
  '' AS rkcur_d,
  plan_values.rocur AS s_rocur,
  acdoca.rocur AS t_rocur,
  '' AS rocur_d,
  plan_values.rvcur AS s_rvcur,
  acdoca.rvcur AS t_rvcur,
  '' AS rvcur_d,
  plan_values.anlkl AS s_anlkl,
  acdoca.anlkl AS t_anlkl,
  case when plan_values.bukrs is null then 'X' when plan_values.anlkl = '' and acdoca.anlkl = '' then 'X' when plan_values.anlkl <> '' and plan_values.anlkl <> acdoca.anlkl then 'X' else '' end as anlkl_d AS anlklthenXelseendasanlkl_d,
  plan_values.ktogr AS s_ktogr,
  acdoca.ktogr AS t_ktogr,
  case when plan_values.bukrs is null then 'X' when plan_values.ktogr = '' and acdoca.ktogr = '' then 'X' when plan_values.ktogr <> '' and plan_values.ktogr <> acdoca.ktogr then 'X' else '' end as ktogr_d AS ktogrthenXelseendasktogr_d,
  plan_values.mig_source AS s_mig_source,
  acdoca.mig_source AS t_mig_source,
  '' AS mig_source_d,
  plan_values.recid AS s_recid,
  acdoca.recid AS t_recid,
  case when plan_values.bukrs is null then 'X' when plan_values.recid <> acdoca.recid then 'X' else '' end as recid_d AS recidthenXelseendasrecid_d,
  case when plan_values.bukrs is null then 'X' when ledger_p.tech_ledger <> acdoca.rldnr then 'X' when ( ( plan_values.poper_shifted = '000' and plan_values.poper <> acdoca.poper ) or ( plan_values.poper_shifted <> '000' and plan_values.poper_shifted <> acdoca.poper ) ) then 'X' when ( plan_values.movcat = '46' and acdoca.movcat <> '06' ) or ( plan_values.movcat = '65' and acdoca.movcat <> '06' ) or ( plan_values.movcat <> '46' and plan_values.movcat <> '65' and plan_values.movcat <> acdoca.movcat ) then 'X' when plan_values.hsl <> acdoca.hsl then 'X' when plan_values.rhcur <> acdoca.rhcur then 'X' when ( plan_values.anlkl = '' and acdoca.anlkl = '' ) or ( plan_values.anlkl <> '' and plan_values.anlkl <> acdoca.anlkl ) then 'X' when ( plan_values.ktogr = '' and acdoca.ktogr = '' ) or ( plan_values.ktogr <> '' and plan_values.ktogr <> acdoca.ktogr ) then 'X' when plan_values.recid <> acdoca.recid then 'X' else '' end as different AS recidthenXelseendasdifferent,
  cast( '-' as char01 preserving type ) AS direction,
  acdoca.anlkl AS anlkl,
  acdoca.movcat AS movcat
FROM acdoca
INNER JOIN fins_tech_ledger AS ledger_a ON /* join condition not captured in parsed metadata */
INNER JOIN FAA_CFG_DEPR_AREA AS cfg_depr_area ON /* join condition not captured in parsed metadata */
INNER JOIN fins_tech_ledger AS ledger_p ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN FAA_SDM_DOCIT_CP02 AS split_number ON /* join condition not captured in parsed metadata */
;