FAA_SDM_DOCIT_CP11
Compare from DOC_IT to ACDOCA
FAA_SDM_DOCIT_CP11 is a CDS View that provides data about "Compare from DOC_IT to ACDOCA" in SAP S/4HANA. It reads from 5 data sources (acdoca, FAA_CFG_DEPR_AREA, FAA_SDM_DOCIT_CP111, finsc_ledger, FAA_SDM_DOCIT_CP02) and exposes 149 fields with key fields bukrs, anln1, anln2, gjahr, awtyp.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| acdoca | acdoca | left_outer |
| FAA_CFG_DEPR_AREA | cfg_depr_area | inner |
| FAA_SDM_DOCIT_CP111 | doc_comp | from |
| finsc_ledger | ledger | inner |
| FAA_SDM_DOCIT_CP02 | split_number | left_outer |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_SDM_STATUS | faa_sdm_status |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FAAVDOCITCP11 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Compare from DOC_IT to ACDOCA | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view |
Fields (149)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | bukrs | FAA_SDM_DOCIT_CP111 | bukrs | |
| KEY | anln1 | FAA_SDM_DOCIT_CP111 | anln1 | |
| KEY | anln2 | FAA_SDM_DOCIT_CP111 | anln2 | |
| KEY | gjahr | FAA_SDM_DOCIT_CP111 | gjahr | |
| KEY | awtyp | FAA_SDM_DOCIT_CP111 | awtyp | |
| KEY | awref | FAA_SDM_DOCIT_CP111 | awref | |
| KEY | aworg | FAA_SDM_DOCIT_CP111 | aworg | |
| KEY | awsys | FAA_SDM_DOCIT_CP111 | awsys | |
| KEY | subta | FAA_SDM_DOCIT_CP111 | subta | |
| KEY | afabe | FAA_SDM_DOCIT_CP111 | afabe | |
| KEY | slalittype | FAA_SDM_DOCIT_CP111 | slalittype | |
| KEY | drcrk | FAA_SDM_DOCIT_CP111 | drcrk | |
| KEY | rldnr | FAA_SDM_DOCIT_CP111 | rldnr | |
| KEY | belnr | FAA_SDM_DOCIT_CP111 | belnr | |
| KEY | docln | FAA_SDM_DOCIT_CP111 | docln | |
| split_number | FAA_SDM_DOCIT_CP111 | split_number | Number of splits | |
| s_awitem | FAA_SDM_DOCIT_CP111 | s_awitem | ||
| t_awitem | FAA_SDM_DOCIT_CP111 | t_awitem | ||
| awitem_d | FAA_SDM_DOCIT_CP111 | awitem_d | ||
| s_vorgn | FAA_SDM_DOCIT_CP111 | s_vorgn | ||
| t_vorgn | FAA_SDM_DOCIT_CP111 | t_vorgn | ||
| vorgn_d | FAA_SDM_DOCIT_CP111 | vorgn_d | ||
| s_budat | FAA_SDM_DOCIT_CP111 | s_budat | ||
| t_budat | FAA_SDM_DOCIT_CP111 | t_budat | ||
| budat_d | FAA_SDM_DOCIT_CP111 | budat_d | ||
| s_bzdat | FAA_SDM_DOCIT_CP111 | s_bzdat | ||
| t_bzdat | FAA_SDM_DOCIT_CP111 | t_bzdat | ||
| bzdat_d | FAA_SDM_DOCIT_CP111 | bzdat_d | ||
| s_poper | FAA_SDM_DOCIT_CP111 | s_poper | ||
| t_poper | FAA_SDM_DOCIT_CP111 | t_poper | ||
| poper_d | FAA_SDM_DOCIT_CP111 | poper_d | ||
| s_bwasl | FAA_SDM_DOCIT_CP111 | s_bwasl | ||
| t_bwasl | FAA_SDM_DOCIT_CP111 | t_bwasl | ||
| bwasl_d | FAA_SDM_DOCIT_CP111 | bwasl_d | ||
| s_movcat | FAA_SDM_DOCIT_CP111 | s_movcat | ||
| t_movcat | FAA_SDM_DOCIT_CP111 | t_movcat | ||
| movcat_d | FAA_SDM_DOCIT_CP111 | movcat_d | ||
| s_hsl | FAA_SDM_DOCIT_CP111 | s_hsl | ||
| t_hsl | FAA_SDM_DOCIT_CP111 | t_hsl | ||
| hsl_d | FAA_SDM_DOCIT_CP111 | hsl_d | ||
| s_ksl | FAA_SDM_DOCIT_CP111 | s_ksl | ||
| t_ksl | FAA_SDM_DOCIT_CP111 | t_ksl | ||
| ksl_d | FAA_SDM_DOCIT_CP111 | ksl_d | ||
| s_osl | FAA_SDM_DOCIT_CP111 | s_osl | ||
| t_osl | FAA_SDM_DOCIT_CP111 | t_osl | ||
| osl_d | FAA_SDM_DOCIT_CP111 | osl_d | ||
| s_vsl | FAA_SDM_DOCIT_CP111 | s_vsl | ||
| t_vsl | FAA_SDM_DOCIT_CP111 | t_vsl | ||
| vsl_d | FAA_SDM_DOCIT_CP111 | vsl_d | ||
| s_rhcur | FAA_SDM_DOCIT_CP111 | s_rhcur | ||
| t_rhcur | FAA_SDM_DOCIT_CP111 | t_rhcur | ||
| rhcur_d | FAA_SDM_DOCIT_CP111 | rhcur_d | ||
| s_rkcur | FAA_SDM_DOCIT_CP111 | s_rkcur | ||
| t_rkcur | FAA_SDM_DOCIT_CP111 | t_rkcur | ||
| rkcur_d | FAA_SDM_DOCIT_CP111 | rkcur_d | ||
| s_rocur | FAA_SDM_DOCIT_CP111 | s_rocur | ||
| t_rocur | FAA_SDM_DOCIT_CP111 | t_rocur | ||
| rocur_d | FAA_SDM_DOCIT_CP111 | rocur_d | ||
| s_rvcur | FAA_SDM_DOCIT_CP111 | s_rvcur | ||
| t_rvcur | FAA_SDM_DOCIT_CP111 | t_rvcur | ||
| rvcur_d | FAA_SDM_DOCIT_CP111 | rvcur_d | ||
| s_rfccur | FAA_SDM_DOCIT_CP111 | s_rfccur | ||
| t_rfccur | FAA_SDM_DOCIT_CP111 | t_rfccur | ||
| rfccur_d | FAA_SDM_DOCIT_CP111 | rfccur_d | ||
| s_xreversing | FAA_SDM_DOCIT_CP111 | s_xreversing | ||
| t_xreversing | FAA_SDM_DOCIT_CP111 | t_xreversing | ||
| xreversing_d | FAA_SDM_DOCIT_CP111 | xreversing_d | ||
| s_xreversed | FAA_SDM_DOCIT_CP111 | s_xreversed | ||
| t_xreversed | FAA_SDM_DOCIT_CP111 | t_xreversed | ||
| xreversed_d | FAA_SDM_DOCIT_CP111 | xreversed_d | ||
| s_xsettling | FAA_SDM_DOCIT_CP111 | s_xsettling | ||
| t_xsettling | FAA_SDM_DOCIT_CP111 | t_xsettling | ||
| xsettling_d | FAA_SDM_DOCIT_CP111 | xsettling_d | ||
| s_xsettled | FAA_SDM_DOCIT_CP111 | s_xsettled | ||
| t_xsettled | FAA_SDM_DOCIT_CP111 | t_xsettled | ||
| xsettled_d | FAA_SDM_DOCIT_CP111 | xsettled_d | ||
| s_prec_awtyp | FAA_SDM_DOCIT_CP111 | s_prec_awtyp | ||
| t_prec_awtyp | FAA_SDM_DOCIT_CP111 | t_prec_awtyp | ||
| prec_awtyp_d | FAA_SDM_DOCIT_CP111 | prec_awtyp_d | ||
| s_prec_aworg | FAA_SDM_DOCIT_CP111 | s_prec_aworg | ||
| t_prec_aworg | FAA_SDM_DOCIT_CP111 | t_prec_aworg | ||
| prec_aworg_d | FAA_SDM_DOCIT_CP111 | prec_aworg_d | ||
| s_prec_awref | FAA_SDM_DOCIT_CP111 | s_prec_awref | ||
| t_prec_awref | FAA_SDM_DOCIT_CP111 | t_prec_awref | ||
| prec_awref_d | FAA_SDM_DOCIT_CP111 | prec_awref_d | ||
| s_prec_subta | FAA_SDM_DOCIT_CP111 | s_prec_subta | ||
| t_prec_subta | FAA_SDM_DOCIT_CP111 | t_prec_subta | ||
| prec_subta_d | FAA_SDM_DOCIT_CP111 | prec_subta_d | ||
| s_awtyp_rev | FAA_SDM_DOCIT_CP111 | s_awtyp_rev | ||
| t_awtyp_rev | FAA_SDM_DOCIT_CP111 | t_awtyp_rev | ||
| awtyp_rev_d | FAA_SDM_DOCIT_CP111 | awtyp_rev_d | ||
| s_awref_rev | FAA_SDM_DOCIT_CP111 | s_awref_rev | ||
| t_awref_rev | FAA_SDM_DOCIT_CP111 | t_awref_rev | ||
| awref_rev_d | FAA_SDM_DOCIT_CP111 | awref_rev_d | ||
| s_aworg_rev | FAA_SDM_DOCIT_CP111 | s_aworg_rev | ||
| t_aworg_rev | FAA_SDM_DOCIT_CP111 | t_aworg_rev | ||
| aworg_rev_d | FAA_SDM_DOCIT_CP111 | aworg_rev_d | ||
| s_subta_rev | FAA_SDM_DOCIT_CP111 | s_subta_rev | ||
| t_subta_rev | FAA_SDM_DOCIT_CP111 | t_subta_rev | ||
| subta_rev_d | FAA_SDM_DOCIT_CP111 | subta_rev_d | ||
| s_anlkl | FAA_SDM_DOCIT_CP111 | s_anlkl | ||
| t_anlkl | FAA_SDM_DOCIT_CP111 | t_anlkl | ||
| anlkl_d | FAA_SDM_DOCIT_CP111 | anlkl_d | ||
| s_ktogr | FAA_SDM_DOCIT_CP111 | s_ktogr | ||
| t_ktogr | FAA_SDM_DOCIT_CP111 | t_ktogr | ||
| ktogr_d | FAA_SDM_DOCIT_CP111 | ktogr_d | ||
| s_panl1 | FAA_SDM_DOCIT_CP111 | s_panl1 | ||
| t_panl1 | FAA_SDM_DOCIT_CP111 | t_panl1 | ||
| panl1_d | FAA_SDM_DOCIT_CP111 | panl1_d | ||
| s_panl2 | FAA_SDM_DOCIT_CP111 | s_panl2 | ||
| t_panl2 | FAA_SDM_DOCIT_CP111 | t_panl2 | ||
| panl2_d | FAA_SDM_DOCIT_CP111 | panl2_d | ||
| s_mig_source | FAA_SDM_DOCIT_CP111 | s_mig_source | ||
| t_mig_source | FAA_SDM_DOCIT_CP111 | t_mig_source | ||
| mig_source_d | FAA_SDM_DOCIT_CP111 | mig_source_d | ||
| s_recid | FAA_SDM_DOCIT_CP111 | s_recid | ||
| t_recid | FAA_SDM_DOCIT_CP111 | t_recid | ||
| recid_d | FAA_SDM_DOCIT_CP111 | recid_d | ||
| s_bldat | FAA_SDM_DOCIT_CP111 | s_bldat | ||
| t_bldat | FAA_SDM_DOCIT_CP111 | t_bldat | ||
| bldat_d | FAA_SDM_DOCIT_CP111 | bldat_d | ||
| s_sgtxt | FAA_SDM_DOCIT_CP111 | s_sgtxt | ||
| t_sgtxt | FAA_SDM_DOCIT_CP111 | t_sgtxt | ||
| sgtxt_d | FAA_SDM_DOCIT_CP111 | sgtxt_d | ||
| s_zuonr | FAA_SDM_DOCIT_CP111 | s_zuonr | ||
| t_zuonr | FAA_SDM_DOCIT_CP111 | t_zuonr | ||
| zuonr_d | FAA_SDM_DOCIT_CP111 | zuonr_d | ||
| s_obart | FAA_SDM_DOCIT_CP111 | s_obart | ||
| t_obart | FAA_SDM_DOCIT_CP111 | t_obart | ||
| obart_d | FAA_SDM_DOCIT_CP111 | obart_d | ||
| s_objid | FAA_SDM_DOCIT_CP111 | s_objid | ||
| t_objid | FAA_SDM_DOCIT_CP111 | t_objid | ||
| objid_d | FAA_SDM_DOCIT_CP111 | objid_d | ||
| s_ubzdt_pn | FAA_SDM_DOCIT_CP111 | s_ubzdt_pn | ||
| t_ubzdt_pn | FAA_SDM_DOCIT_CP111 | t_ubzdt_pn | ||
| ubzdt_pn_d | FAA_SDM_DOCIT_CP111 | ubzdt_pn_d | ||
| s_xvabg_pn | FAA_SDM_DOCIT_CP111 | s_xvabg_pn | ||
| t_xvabg_pn | FAA_SDM_DOCIT_CP111 | t_xvabg_pn | ||
| xvabg_pn_d | FAA_SDM_DOCIT_CP111 | xvabg_pn_d | ||
| s_prozs_pn | FAA_SDM_DOCIT_CP111 | s_prozs_pn | ||
| t_prozs_pn | FAA_SDM_DOCIT_CP111 | t_prozs_pn | ||
| prozs_pn_d | FAA_SDM_DOCIT_CP111 | prozs_pn_d | ||
| xmanpropval_pn_dXthenXelseendasdifferent | Different | |||
| direction | FAA_SDM_DOCIT_CP111 | direction | ||
| anlkl | FAA_SDM_DOCIT_CP111 | anlkl | ||
| movcat | FAA_SDM_DOCIT_CP111 | movcat | ||
| bwasl | FAA_SDM_DOCIT_CP111 | bwasl | ||
| vorgn | FAA_SDM_DOCIT_CP111 | vorgn | ||
| sdm_status | FAA_SDM_DOCIT_CP111 | sdm_status |
@AbapCatalog.sqlViewName: 'FAAVDOCITCP11'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Compare from DOC_IT to ACDOCA'
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.sizeCategory: #XXL
define view FAA_SDM_DOCIT_CP11
as select from FAA_SDM_DOCIT_CP111 as doc_comp
{
key doc_comp.bukrs,
key doc_comp.anln1,
key doc_comp.anln2,
key doc_comp.gjahr,
key doc_comp.awtyp,
key doc_comp.awref,
key doc_comp.aworg,
key doc_comp.awsys,
key doc_comp.subta,
key doc_comp.afabe,
key doc_comp.slalittype,
key doc_comp.drcrk,
key doc_comp.rldnr,
key doc_comp.belnr,
key doc_comp.docln,
@EndUserText.label: 'Number of splits'
@EndUserText.quickInfo: 'Number of splits'
doc_comp.split_number,
doc_comp.s_awitem,
doc_comp.t_awitem,
doc_comp.awitem_d,
doc_comp.s_tech_ledger,
doc_comp.t_tech_ledger,
doc_comp.tech_ledger_d,
doc_comp.s_vorgn,
doc_comp.t_vorgn,
doc_comp.vorgn_d,
doc_comp.s_budat,
doc_comp.t_budat,
doc_comp.budat_d,
doc_comp.s_bzdat,
doc_comp.t_bzdat,
doc_comp.bzdat_d,
doc_comp.s_poper,
doc_comp.t_poper,
doc_comp.poper_d,
doc_comp.s_bwasl,
doc_comp.t_bwasl,
doc_comp.bwasl_d,
doc_comp.s_movcat,
doc_comp.t_movcat,
doc_comp.movcat_d,
@Semantics.amount.currencyCode: 's_rhcur'
doc_comp.s_hsl,
@Semantics.amount.currencyCode: 't_rhcur'
doc_comp.t_hsl,
doc_comp.hsl_d,
@Semantics.amount.currencyCode: 's_rkcur'
doc_comp.s_ksl,
@Semantics.amount.currencyCode: 't_rkcur'
doc_comp.t_ksl,
doc_comp.ksl_d,
@Semantics.amount.currencyCode: 's_rocur'
doc_comp.s_osl,
@Semantics.amount.currencyCode: 't_rocur'
doc_comp.t_osl,
doc_comp.osl_d,
@Semantics.amount.currencyCode: 's_rvcur'
doc_comp.s_vsl,
@Semantics.amount.currencyCode: 't_rvcur'
doc_comp.t_vsl,
doc_comp.vsl_d,
@Semantics.currencyCode: true
doc_comp.s_rhcur,
@Semantics.currencyCode: true
doc_comp.t_rhcur,
doc_comp.rhcur_d,
@Semantics.currencyCode: true
doc_comp.s_rkcur,
@Semantics.currencyCode: true
doc_comp.t_rkcur,
doc_comp.rkcur_d,
@Semantics.currencyCode: true
doc_comp.s_rocur,
@Semantics.currencyCode: true
doc_comp.t_rocur,
doc_comp.rocur_d,
@Semantics.currencyCode: true
doc_comp.s_rvcur,
@Semantics.currencyCode: true
doc_comp.t_rvcur,
doc_comp.rvcur_d,
@Semantics.currencyCode: true
doc_comp.s_rfccur,
@Semantics.currencyCode: true
doc_comp.t_rfccur,
doc_comp.rfccur_d,
doc_comp.s_xreversing,
doc_comp.t_xreversing,
doc_comp.xreversing_d,
doc_comp.s_xreversed,
doc_comp.t_xreversed,
doc_comp.xreversed_d,
doc_comp.s_xsettling,
doc_comp.t_xsettling,
doc_comp.xsettling_d,
doc_comp.s_xsettled,
doc_comp.t_xsettled,
doc_comp.xsettled_d,
doc_comp.s_prec_awtyp,
doc_comp.t_prec_awtyp,
doc_comp.prec_awtyp_d,
doc_comp.s_prec_aworg,
doc_comp.t_prec_aworg,
doc_comp.prec_aworg_d,
doc_comp.s_prec_awref,
doc_comp.t_prec_awref,
doc_comp.prec_awref_d,
doc_comp.s_prec_subta,
doc_comp.t_prec_subta,
doc_comp.prec_subta_d,
doc_comp.s_awtyp_rev,
doc_comp.t_awtyp_rev,
doc_comp.awtyp_rev_d,
doc_comp.s_awref_rev,
doc_comp.t_awref_rev,
doc_comp.awref_rev_d,
doc_comp.s_aworg_rev,
doc_comp.t_aworg_rev,
doc_comp.aworg_rev_d,
doc_comp.s_subta_rev,
doc_comp.t_subta_rev,
doc_comp.subta_rev_d,
doc_comp.s_anlkl,
doc_comp.t_anlkl,
doc_comp.anlkl_d,
doc_comp.s_ktogr,
doc_comp.t_ktogr,
doc_comp.ktogr_d,
doc_comp.s_panl1,
doc_comp.t_panl1,
doc_comp.panl1_d,
doc_comp.s_panl2,
doc_comp.t_panl2,
doc_comp.panl2_d,
doc_comp.s_mig_source,
doc_comp.t_mig_source,
doc_comp.mig_source_d,
doc_comp.s_recid,
doc_comp.t_recid,
doc_comp.recid_d,
doc_comp.s_bldat,
doc_comp.t_bldat,
doc_comp.bldat_d,
doc_comp.s_sgtxt,
doc_comp.t_sgtxt,
doc_comp.sgtxt_d,
doc_comp.s_zuonr,
doc_comp.t_zuonr,
doc_comp.zuonr_d,
doc_comp.s_obart,
doc_comp.t_obart,
doc_comp.obart_d,
doc_comp.s_objid,
doc_comp.t_objid,
doc_comp.objid_d,
doc_comp.s_ubzdt_pn,
doc_comp.t_ubzdt_pn,
doc_comp.ubzdt_pn_d,
doc_comp.s_xvabg_pn,
doc_comp.t_xvabg_pn,
doc_comp.xvabg_pn_d,
doc_comp.s_prozs_pn,
doc_comp.t_prozs_pn,
doc_comp.prozs_pn_d,
doc_comp.s_xmanpropval_pn,
doc_comp.t_xmanpropval_pn,
doc_comp.xmanpropval_pn_d,
@EndUserText.label: 'Different'
@EndUserText.quickInfo: 'Has some differences'
case
when doc_comp.different = 'Y' then 'Y'
when doc_comp.awitem_d = 'X' then 'X'
when doc_comp.tech_ledger_d = 'X' then 'X'
when doc_comp.vorgn_d = 'X' then 'X'
when doc_comp.budat_d = 'X' then 'X'
when doc_comp.bzdat_d = 'X' then 'X'
when doc_comp.poper_d = 'X' then 'X'
when doc_comp.bwasl_d = 'X' then 'X'
when doc_comp.movcat_d = 'X' then 'X'
when doc_comp.hsl_d = 'X' then 'X'
when doc_comp.ksl_d = 'X' then 'X'
when doc_comp.osl_d = 'X' then 'X'
when doc_comp.vsl_d = 'X' then 'X'
when doc_comp.rhcur_d = 'X' then 'X'
when doc_comp.rkcur_d = 'X' then 'X'
when doc_comp.rocur_d = 'X' then 'X'
when doc_comp.rvcur_d = 'X' then 'X'
when doc_comp.rfccur_d = 'X' then 'X'
when doc_comp.xreversing_d = 'X' then 'X'
when doc_comp.xreversed_d = 'X' then 'X'
when doc_comp.xsettling_d = 'X' then 'X'
when doc_comp.xsettled_d = 'X' then 'X'
when doc_comp.prec_awtyp_d = 'X' then 'X'
when doc_comp.prec_aworg_d = 'X' then 'X'
when doc_comp.prec_awref_d = 'X' then 'X'
when doc_comp.prec_subta_d = 'X' then 'X'
when doc_comp.awtyp_rev_d = 'X' then 'X'
when doc_comp.awref_rev_d = 'X' then 'X'
when doc_comp.aworg_rev_d = 'X' then 'X'
when doc_comp.subta_rev_d = 'X' then 'X'
when doc_comp.anlkl_d = 'X' then 'X'
when doc_comp.ktogr_d = 'X' then 'X'
when doc_comp.panl1_d = 'X' then 'X'
when doc_comp.panl2_d = 'X' then 'X'
when doc_comp.mig_source_d = 'X' then 'X'
when doc_comp.recid_d = 'X' then 'X'
when doc_comp.bldat_d = 'X' then 'X'
when doc_comp.sgtxt_d = 'X' then 'X'
when doc_comp.zuonr_d = 'X' then 'X'
when doc_comp.obart_d = 'X' then 'X'
when doc_comp.objid_d = 'X' then 'X'
when doc_comp.ubzdt_pn_d = 'X' then 'X'
when doc_comp.xvabg_pn_d = 'X' then 'X'
when doc_comp.prozs_pn_d = 'X' then 'X'
when doc_comp.xmanpropval_pn_d = 'X' then 'X'
else ''
end as different,
doc_comp.direction,
doc_comp.anlkl,
doc_comp.movcat,
doc_comp.bwasl,
doc_comp.vorgn,
doc_comp.sdm_status
}
/*define view FAA_SDM_DOCIT_CP11
with parameters
P_SDM_STATUS : faa_sdm_status
as select from faat_doc_it as doc_it
inner join FAA_CFG_DEPR_AREA as cfg_depr_area on doc_it.bukrs = cfg_depr_area.comp_code
and doc_it.afabe = cfg_depr_area.depr_area
inner join finsc_ledger as ledger on ledger.rldnr = cfg_depr_area.ledger
and ledger.tech_ledger <> ''
left outer join acdoca as acdoca on doc_it.bukrs = acdoca.rbukrs
and doc_it.anln1 = acdoca.anln1
and doc_it.anln2 = acdoca.anln2
and doc_it.gjahr = acdoca.gjahr
and doc_it.awtyp = acdoca.awtyp
and doc_it.awref = acdoca.awref
and doc_it.aworg = acdoca.aworg
and doc_it.awsys = acdoca.awsys
and doc_it.subta = acdoca.subta
and doc_it.afabe = acdoca.afabe
and doc_it.slalittype = acdoca.slalittype
and doc_it.drcrk = acdoca.drcrk
and ledger.tech_ledger = acdoca.rldnr
and acdoca.awtyp <> 'AMDP'
and acdoca.mig_source = 'A'
left outer join FAA_SDM_DOCIT_CP02 as split_number on split_number.bukrs = doc_it.bukrs
and split_number.anln1 = doc_it.anln1
and split_number.anln2 = doc_it.anln2
and split_number.gjahr = doc_it.gjahr
and split_number.awtyp = doc_it.awtyp
and split_number.awref = doc_it.awref
and split_number.aworg = doc_it.aworg
and split_number.awsys = doc_it.awsys
and split_number.subta = doc_it.subta
and split_number.afabe = doc_it.afabe
and split_number.slalittype = doc_it.slalittype
and split_number.drcrk = doc_it.drcrk
and split_number.source_table = 'DOC_IT'
left outer to one join acdoca as fi_doc on doc_it.has_fi_doc = 'X'
and fi_doc.rldnr = ledger.rldnr
and fi_doc.awtyp = doc_it.awtyp
and fi_doc.awref = doc_it.awref
and fi_doc.aworg = doc_it.aworg
and fi_doc.awsys = doc_it.awsys
and fi_doc.rbukrs = doc_it.bukrs
and fi_doc.anln1 = doc_it.anln1
and fi_doc.anln2 = doc_it.anln2
and fi_doc.gjahr = doc_it.gjahr
and fi_doc.subta = doc_it.subta
and fi_doc.afabe = doc_it.afabe_fi_doc
{
key doc_it.bukrs,
key doc_it.anln1,
key doc_it.anln2,
key doc_it.gjahr,
key doc_it.awtyp,
key doc_it.awref,
key doc_it.aworg,
key doc_it.awsys,
key doc_it.subta,
key doc_it.afabe,
key doc_it.slalittype,
key doc_it.drcrk,
key cast( acdoca.rldnr as fins_technical_ledger preserving type ) as rldnr,
key acdoca.belnr,
key acdoca.docln,
cast( case
when split_number.counter is null then 0
else split_number.counter
end as int4 preserving type ) as split_number,
doc_it.awitem as s_awitem,
acdoca.awitem as t_awitem,
case
when acdoca.rbukrs is null then 'X'
when doc_it.awitem <> acdoca.awitem then 'X'
else ''
end as awitem_d,
cast( ledger.tech_ledger as fins_technical_ledger preserving type ) as s_tech_ledger,
cast( acdoca.rldnr as fins_technical_ledger preserving type ) as t_tech_ledger,
case
when acdoca.rbukrs is null then 'X'
when ledger.tech_ledger <> acdoca.rldnr then 'X'
else ''
end as tech_ledger_d,
doc_it.vorgn as s_vorgn,
acdoca.vorgn as t_vorgn,
case
when acdoca.rbukrs is null then 'X'
when doc_it.vorgn <> acdoca.vorgn then 'X'
else ''
end as vorgn_d,
doc_it.budat as s_budat,
acdoca.budat as t_budat,
case
when acdoca.rbukrs is null then 'X'
when doc_it.budat <> acdoca.budat then 'X'
else ''
end as budat_d,
doc_it.bzdat as s_bzdat,
acdoca.bzdat as t_bzdat,
case
when acdoca.rbukrs is null then 'X'
when doc_it.bzdat <> acdoca.bzdat then 'X'
else ''
end as bzdat_d,
doc_it.poper as s_poper,
acdoca.poper as t_poper,
case
when acdoca.rbukrs is null then 'X'
when doc_it.movcat <> '00' and doc_it.poper is initial and acdoca.poper is initial then 'X'
when doc_it.movcat <> '00' and doc_it.poper is not initial and doc_it.poper <> acdoca.poper then 'X'
when doc_it.movcat = '00' and doc_it.poper <> acdoca.poper then 'X'
else ''
end as poper_d,
doc_it.bwasl as s_bwasl,
cast( acdoca.anbwa as bwasl preserving type ) as t_bwasl,
case
when acdoca.rbukrs is null then 'X'
when doc_it.bwasl <> acdoca.anbwa then 'X'
else ''
end as bwasl_d,
doc_it.movcat as s_movcat,
acdoca.movcat as t_movcat,
case
when acdoca.rbukrs is null then 'X'
when doc_it.movcat <> acdoca.movcat then 'X'
else ''
end as movcat_d,
@Semantics.amount.currencyCode: 's_rhcur'
doc_it.hsl as s_hsl,
@Semantics.amount.currencyCode: 't_rhcur'
acdoca.hsl as t_hsl,
case
when acdoca.rbukrs is null then 'X'
when doc_it.hsl <> acdoca.hsl then 'X'
else ''
end as hsl_d,
@Semantics.amount.currencyCode: 's_rkcur'
doc_it.ksl as s_ksl,
@Semantics.amount.currencyCode: 't_rkcur'
acdoca.ksl as t_ksl,
case
when acdoca.rbukrs is null then 'X'
when doc_it.ksl <> acdoca.ksl then 'X'
else ''
end as ksl_d,
@Semantics.amount.currencyCode: 's_rocur'
doc_it.osl as s_osl,
@Semantics.amount.currencyCode: 't_rocur'
acdoca.osl as t_osl,
case
when acdoca.rbukrs is null then 'X'
when doc_it.osl <> acdoca.osl then 'X'
else ''
end as osl_d,
@Semantics.amount.currencyCode: 's_rvcur'
doc_it.vsl as s_vsl,
@Semantics.amount.currencyCode: 't_rvcur'
acdoca.vsl as t_vsl,
case
when acdoca.rbukrs is null then 'X'
when doc_it.vsl <> acdoca.vsl then 'X'
else ''
end as vsl_d,
@Semantics.currencyCode: true
doc_it.rhcur as s_rhcur,
@Semantics.currencyCode: true
acdoca.rhcur as t_rhcur,
case
when acdoca.rbukrs is null then 'X'
when doc_it.rhcur <> acdoca.rhcur then 'X'
else ''
end as rhcur_d,
@Semantics.currencyCode: true
doc_it.rkcur as s_rkcur,
@Semantics.currencyCode: true
acdoca.rkcur as t_rkcur,
case
when acdoca.rkcur is null then 'X'
when doc_it.rkcur is initial and acdoca.rkcur is initial then 'X'
when doc_it.rkcur is not initial and doc_it.rkcur <> acdoca.rkcur then 'X'
else ''
end as rkcur_d,
@Semantics.currencyCode: true
doc_it.rocur as s_rocur,
@Semantics.currencyCode: true
acdoca.rocur as t_rocur,
case
when acdoca.rbukrs is null then 'X'
when doc_it.rocur <> acdoca.rocur then 'X'
else ''
end as rocur_d,
@Semantics.currencyCode: true
doc_it.rvcur as s_rvcur,
@Semantics.currencyCode: true
acdoca.rvcur as t_rvcur,
case
when acdoca.rbukrs is null then 'X'
when doc_it.rvcur <> acdoca.rvcur then 'X'
else ''
end as rvcur_d,
@Semantics.currencyCode: true
cast( '' as fins_currfc ) as s_rfccur,
@Semantics.currencyCode: true
acdoca.rfccur as t_rfccur,
case
when acdoca.rbukrs is null then 'X'
when acdoca.rfccur is initial then 'X'
else ''
end as rfccur_d,
doc_it.xreversing as s_xreversing,
acdoca.xreversing as t_xreversing,
case
when acdoca.rbukrs is null then 'X'
when doc_it.xreversing <> acdoca.xreversing then 'X'
else ''
end as xreversing_d,
doc_it.xreversed as s_xreversed,
acdoca.xreversed as t_xreversed,
case
when acdoca.rbukrs is null then 'X'
when doc_it.xreversed <> acdoca.xreversed then 'X'
else ''
end as xreversed_d,
doc_it.xsettling as s_xsettling,
acdoca.xsettling as t_xsettling,
case
when acdoca.rbukrs is null then 'X'
when doc_it.xsettling <> acdoca.xsettling then 'X'
else ''
end as xsettling_d,
doc_it.xsettled as s_xsettled,
acdoca.xsettled as t_xsettled,
case
when acdoca.rbukrs is null then 'X'
when doc_it.xsettled <> acdoca.xsettled then 'X'
else ''
end as xsettled_d,
doc_it.prec_awtyp as s_prec_awtyp,
acdoca.prec_awtyp as t_prec_awtyp,
case
when acdoca.rbukrs is null then 'X'
when ( doc_it.prec_awtyp = '!BCF!' and acdoca.prec_awtyp <> '') or
( doc_it.prec_awtyp <> '!BCF!' and doc_it.prec_awtyp <> acdoca.prec_awtyp ) then 'X'
else ''
end as prec_awtyp_d,
doc_it.prec_aworg as s_prec_aworg,
acdoca.prec_aworg as t_prec_aworg,
case
when acdoca.rbukrs is null then 'X'
when doc_it.prec_aworg <> acdoca.prec_aworg then 'X'
else ''
end as prec_aworg_d,
doc_it.prec_awref as s_prec_awref,
acdoca.prec_awref as t_prec_awref,
case
when acdoca.rbukrs is null then 'X'
when doc_it.prec_awref <> acdoca.prec_awref then 'X'
else ''
end as prec_awref_d,
doc_it.prec_subta as s_prec_subta,
acdoca.prec_subta as t_prec_subta,
case
when acdoca.rbukrs is null then 'X'
when doc_it.prec_subta <> acdoca.prec_subta then 'X'
else ''
end as prec_subta_d,
doc_it.awtyp_rev as s_awtyp_rev,
acdoca.awtyp_rev as t_awtyp_rev,
case
when acdoca.rbukrs is null then 'X'
when doc_it.awtyp_rev <> acdoca.awtyp_rev then 'X'
else ''
end as awtyp_rev_d,
doc_it.awref_rev as s_awref_rev,
acdoca.awref_rev as t_awref_rev,
case
when acdoca.rbukrs is null then 'X'
when doc_it.awref_rev <> acdoca.awref_rev then 'X'
else ''
end as awref_rev_d,
doc_it.aworg_rev as s_aworg_rev,
acdoca.aworg_rev as t_aworg_rev,
case
when acdoca.rbukrs is null then 'X'
when doc_it.aworg_rev <> acdoca.aworg_rev then 'X'
else ''
end as aworg_rev_d,
doc_it.subta_rev as s_subta_rev,
acdoca.subta_rev as t_subta_rev,
case
when acdoca.rbukrs is null then 'X'
when doc_it.subta_rev <> acdoca.subta_rev then 'X'
else ''
end as subta_rev_d,
doc_it.anlkl as s_anlkl,
acdoca.anlkl as t_anlkl,
case
when acdoca.rbukrs is null then 'X'
when doc_it.anlkl <> acdoca.anlkl then 'X'
else ''
end as anlkl_d,
doc_it.ktogr as s_ktogr,
acdoca.ktogr as t_ktogr,
case
when acdoca.rbukrs is null then 'X'
when doc_it.ktogr <> acdoca.ktogr then 'X'
else ''
end as ktogr_d,
doc_it.panl1 as s_panl1,
acdoca.panl1 as t_panl1,
case
when acdoca.rbukrs is null then 'X'
when doc_it.panl1 <> acdoca.panl1 then 'X'
else ''
end as panl1_d,
doc_it.panl2 as s_panl2,
acdoca.panl2 as t_panl2,
case
when acdoca.rbukrs is null then 'X'
when doc_it.panl2 <> acdoca.panl2 then 'X'
else ''
end as panl2_d,
doc_it.mig_source as s_mig_source,
acdoca.mig_source as t_mig_source,
case
when acdoca.rbukrs is null then 'X'
when ( doc_it.sdm_status = '19' and acdoca.mig_source <> 'A') or
( doc_it.sdm_status <> '19' and doc_it.mig_source <> acdoca.mig_source ) then 'X'
else ''
end as mig_source_d,
doc_it.recid as s_recid,
acdoca.recid as t_recid,
case
when acdoca.rbukrs is null then 'X'
when doc_it.recid <> acdoca.recid then 'X'
else ''
end as recid_d,
case
when fi_doc.rbukrs is null then doc_it.bldat
else fi_doc.bldat
end as s_bldat,
//doc_it.bldat as s_bldat,
acdoca.bldat as t_bldat,
case
when acdoca.rbukrs is null then 'X'
when fi_doc.rbukrs is null and doc_it.bldat <> acdoca.bldat then 'X'
when fi_doc.rbukrs is not null and fi_doc.bldat <> acdoca.bldat then 'X'
else ''
end as bldat_d,
//case
// when acdoca.rbukrs is null then 'X'
// when doc_it.movcat <> '00' and doc_it.bldat is initial and acdoca.bldat is initial then 'X'
// when doc_it.movcat <> '00' and doc_it.bldat is not initial and doc_it.bldat <> acdoca.bldat then 'X'
// when doc_it.movcat = '00' and doc_it.bldat <> acdoca.bldat then 'X'
// else ''
//end as bldat_d,
case
when fi_doc.rbukrs is null then doc_it.sgtxt
else fi_doc.sgtxt
end as s_sgtxt,
//doc_it.sgtxt as s_sgtxt,
acdoca.sgtxt as t_sgtxt,
case
when acdoca.rbukrs is null then 'X'
when fi_doc.rbukrs is null and doc_it.sgtxt <> acdoca.sgtxt then 'X'
when fi_doc.rbukrs is not null and fi_doc.sgtxt <> acdoca.sgtxt then 'X'
else ''
end
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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