FAA_SDM_DOCIT_CP02
Compare splitting number of line items
FAA_SDM_DOCIT_CP02 is a CDS View that provides data about "Compare splitting number of line items" in SAP S/4HANA. It reads from 8 data sources and exposes 29 fields with key fields bukrs, anln1, anln2, gjahr, awtyp.
Data Sources (8)
| Source | Alias | Join Type |
|---|---|---|
| acdoca | acdoca | inner |
| acdoca | acdoca | inner |
| FAA_CFG_DEPR_AREA | cfg_depr_area | inner |
| FAA_CFG_DEPR_AREA | cfg_depr_area | inner |
| faat_doc_it | doc_it | from |
| fins_tech_ledger | ledger | inner |
| fins_tech_ledger | ledger | inner |
| faagtt_plan_val | plan_values | union_all |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FAAVDOCITCP02 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Compare splitting number of line items | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | bukrs | faat_doc_it | bukrs | |
| KEY | anln1 | faat_doc_it | anln1 | |
| KEY | anln2 | faat_doc_it | anln2 | |
| KEY | gjahr | faat_doc_it | gjahr | |
| KEY | awtyp | faat_doc_it | awtyp | |
| KEY | awref | faat_doc_it | awref | |
| KEY | aworg | faat_doc_it | aworg | |
| KEY | awsys | faat_doc_it | awsys | |
| KEY | subta | faat_doc_it | subta | |
| KEY | afabe | faat_doc_it | afabe | |
| KEY | slalittype | faat_doc_it | slalittype | |
| KEY | drcrk | faat_doc_it | drcrk | |
| KEY | poper | |||
| KEY | source_table | Source table | ||
| bukrs | ||||
| KEY | anln1 | faagtt_plan_val | anln1 | |
| KEY | anln2 | faagtt_plan_val | anln2 | |
| KEY | gjahr | faagtt_plan_val | gjahr | |
| KEY | awtyp | |||
| KEY | awref | |||
| KEY | aworg | |||
| KEY | awsys | |||
| KEY | subta | |||
| KEY | afabe | faagtt_plan_val | afabe | |
| KEY | slalittype | faagtt_plan_val | slalittype | |
| KEY | drcrk | |||
| KEY | poper | faagtt_plan_val | poper | |
| KEY | source_table | Source table | ||
| counter |
@AbapCatalog.sqlViewName: 'FAAVDOCITCP02'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Compare splitting number of line items'
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.sizeCategory: #XXL
define view FAA_SDM_DOCIT_CP02
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
and doc_it.sdm_status = '19'
inner join fins_tech_ledger as ledger on ledger.rldnr = cfg_depr_area.ledger
and ledger.tech_ledger <> ''
inner 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
{
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( '000' as poper preserving type ) as poper,
@EndUserText.label: 'Source table'
@EndUserText.quickInfo: 'Source table'
key cast( 'DOC_IT ' as char20 preserving type ) as source_table,
cast( count( * ) as int4 preserving type ) as counter
}
group by
doc_it.bukrs,
doc_it.anln1,
doc_it.anln2,
doc_it.gjahr,
doc_it.awtyp,
doc_it.awref,
doc_it.aworg,
doc_it.awsys,
doc_it.subta,
doc_it.afabe,
doc_it.slalittype,
doc_it.drcrk
union all select from faagtt_plan_val as plan_values
inner join FAA_CFG_DEPR_AREA as cfg_depr_area on plan_values.bukrs = cfg_depr_area.comp_code
and plan_values.afabe = cfg_depr_area.depr_area
and cfg_depr_area.POSTING_TYPE = '0'
//and plan_values.sdm_status = '19'
inner join fins_tech_ledger as ledger on ledger.rldnr = cfg_depr_area.ledger
and ledger.tech_ledger <> ''
inner join acdoca as acdoca on plan_values.bukrs = acdoca.rbukrs
and plan_values.anln1 = acdoca.anln1
and plan_values.anln2 = acdoca.anln2
and plan_values.gjahr = acdoca.gjahr
and plan_values.afabe = acdoca.afabe
// and plan_values.poper = acdoca.poper
and plan_values.poper = acdoca.depr_period
and plan_values.slalittype = acdoca.slalittype
and ledger.tech_ledger = acdoca.rldnr
{
key plan_values.bukrs,
key plan_values.anln1,
key plan_values.anln2,
key plan_values.gjahr,
key cast( ' ' as awtyp preserving type ) as awtyp,
key cast( ' ' as awref preserving type ) as awref,
key cast( ' ' as aworg preserving type ) as aworg,
key cast( ' ' as awsys preserving type ) as awsys,
key cast( '000000' as fins_subta preserving type ) as subta,
key plan_values.afabe,
key plan_values.slalittype,
key cast( ' ' as shkzg preserving type ) as drcrk,
key plan_values.poper,
@EndUserText.label: 'Source table'
@EndUserText.quickInfo: 'Source table'
key cast( 'PLAN_VALUES ' as char20 preserving type ) as source_table,
cast( count( * ) as int4 preserving type ) as counter
}
group by
plan_values.bukrs,
plan_values.anln1,
plan_values.anln2,
plan_values.gjahr,
plan_values.afabe,
plan_values.slalittype,
plan_values.poper
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"FAA_CFG_DEPR_AREA",
"ACDOCA",
"FAAGTT_PLAN_VAL",
"FAAT_DOC_IT",
"FINS_TECH_LEDGER"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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