P_Matrix_VecElim
P_Matrix_VecElim is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_CnsldtnGroupStructure, P_ConsolidatedData, I_CnsldtnGroupStructure, I_CnsldtnVersion) and exposes 99 fields.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_CnsldtnGroupStructure | punit_structure | inner |
| P_ConsolidatedData | transaction_data | from |
| I_CnsldtnGroupStructure | unit_structure | inner |
| I_CnsldtnVersion | version_assignment | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| p_ryear | gjahr | |
| p_poper | poper |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMCVECELIM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (99)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| rclnt | rclnt | |||
| rldnr | rldnr | |||
| rdimen | rdimen | |||
| ryear | ryear | |||
| docnr | docnr | |||
| docln | docln | |||
| rrcty | rrcty | |||
| rvers | rvers | |||
| rtcur | rtcur | |||
| rhcur | rhcur | |||
| rkcur | rkcur | |||
| runit | runit | |||
| drcrk | drcrk | |||
| poper | poper | |||
| fiscyearper | fiscyearper | |||
| period_mode | ||||
| docct | docct | |||
| rcomp | rcomp | |||
| rbunit | rbunit | |||
| ritclg | ritclg | |||
| ritem | ritem | |||
| rbuptr | rbuptr | |||
| rcongr | I_CnsldtnGroupStructure | ConsolidationGroup | ||
| robukrs | robukrs | |||
| sityp | sityp | |||
| subit | subit | |||
| plevl | plevl | |||
| rpflg | rpflg | |||
| rtflg | rtflg | |||
| docty | docty | |||
| yracq | yracq | |||
| pracq | pracq | |||
| coicu | coicu | |||
| tsl | tsl | |||
| hsl | hsl | |||
| ksl | ksl | |||
| msl | msl | |||
| sgtxt | sgtxt | |||
| autom | autom | |||
| activ | activ | |||
| bvorg | bvorg | |||
| budat | budat | |||
| wsdat | wsdat | |||
| refdocnr | refdocnr | |||
| refryear | refryear | |||
| refdocln | refdocln | |||
| refdocct | refdocct | |||
| refactiv | refactiv | |||
| timestamp | timestamp | |||
| cpudt | cpudt | |||
| cputm | cputm | |||
| usnam | usnam | |||
| rvsdocnr | rvsdocnr | |||
| orndocnr | orndocnr | |||
| coiac | coiac | |||
| coinr | coinr | |||
| revyear | revyear | |||
| awtyp | awtyp | |||
| aworg | aworg | |||
| logsys | logsys | |||
| ktopl | ktopl | |||
| racct | racct | |||
| xblnr | xblnr | |||
| zuonr | zuonr | |||
| rcntr | rcntr | |||
| prctr | prctr | |||
| rfarea | rfarea | |||
| rbusa | rbusa | |||
| kokrs | kokrs | |||
| segment | segment | |||
| scntr | scntr | |||
| pprctr | pprctr | |||
| sfarea | sfarea | |||
| sbusa | sbusa | |||
| rassc | rassc | |||
| psegment | psegment | |||
| aufnr | aufnr | |||
| kunnr | kunnr | |||
| lifnr | lifnr | |||
| matnr | matnr | |||
| matkl_mm | matkl_mm | |||
| werks | werks | |||
| rmvct | rmvct | |||
| ps_psp_pnr | ps_psp_pnr | |||
| ps_posid | ps_posid | |||
| ps_pspid | ps_pspid | |||
| fkart | fkart | |||
| vkorg | vkorg | |||
| vtweg | vtweg | |||
| spart | spart | |||
| matnr_copa | matnr_copa | |||
| matkl | matkl | |||
| kdgrp | kdgrp | |||
| land1 | land1 | |||
| brsch | brsch | |||
| bzirk | bzirk | |||
| kunre | kunre | |||
| kunwe | kunwe | |||
| konzs | konzs |
@AbapCatalog.sqlViewName: 'PMCVECELIM'
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private:true
@ClientHandling.algorithm:#SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.sizeCategory: #XL
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
define view P_Matrix_VecElim
with parameters
p_ryear : gjahr,
p_poper : poper
as select from P_ConsolidatedData as transaction_data
inner join I_CnsldtnVersion as version_assignment on transaction_data.rvers = version_assignment.ConsolidationVersion
inner join I_CnsldtnGroupStructure as unit_structure on transaction_data.rdimen = unit_structure.ConsolidationDimension
and version_assignment.ConsolidationStructureVersion = unit_structure.ConsolidationStructureVersion
and transaction_data.rbunit = unit_structure.ConsolidationUnit
and unit_structure.FromFiscalYearPeriod <= concat( $parameters.p_ryear,$parameters.p_poper )
and unit_structure.ToFiscalYearPeriod >= concat( $parameters.p_ryear,$parameters.p_poper )
inner join I_CnsldtnGroupStructure as punit_structure on transaction_data.rdimen = punit_structure.ConsolidationDimension
and version_assignment.ConsolidationStructureVersion = punit_structure.ConsolidationStructureVersion
and transaction_data.rbuptr = punit_structure.ConsolidationUnit
and punit_structure.FromFiscalYearPeriod <= concat( $parameters.p_ryear,$parameters.p_poper )
and punit_structure.ToFiscalYearPeriod >= concat( $parameters.p_ryear,$parameters.p_poper )
and unit_structure.ConsolidationGroup = punit_structure.ConsolidationGroup
// inner join P_Matrix_GroupStructurePerYear as unit_structure on transaction_data.rdimen = unit_structure.ConsolidationDimension
// and version_assignment.ConsolidationVersion = unit_structure.ConsolidationStructureVersion
// and transaction_data.rbunit = unit_structure.ConsolidationUnit
// and transaction_data.ryear = unit_structure.FiscalYear
// inner join P_Matrix_GroupStructurePerYear as punit_structure on transaction_data.rdimen = punit_structure.ConsolidationDimension
// and version_assignment.ConsolidationVersion = punit_structure.ConsolidationStructureVersion
// and transaction_data.rbuptr = punit_structure.ConsolidationUnit
// and transaction_data.ryear = punit_structure.FiscalYear
// and unit_structure.ConsolidationGroup = punit_structure.ConsolidationGroup
{
// Key Fields
rclnt,
rldnr,
rdimen,
ryear,
docnr,
docln,
// Common Fields
rrcty,
rvers,
rtcur,
rhcur,
rkcur,
runit,
drcrk,
poper,
fiscyearper,
cast('PER' as fincs_period_mode) as period_mode,
poper as poper_posting,
docct,
rcomp,
rbunit,
ritclg,
ritem,
rbuptr,
unit_structure.ConsolidationGroup as rcongr,
robukrs,
sityp,
subit,
plevl,
rpflg,
rtflg,
docty,
yracq,
pracq,
coicu,
tsl,
hsl,
ksl,
msl,
sgtxt,
autom,
activ,
bvorg,
budat,
wsdat,
refdocnr,
refryear,
refdocln,
refdocct,
refactiv,
timestamp,
cpudt,
cputm,
usnam,
rvsdocnr,
orndocnr,
coiac,
coinr,
revyear,
awtyp,
aworg,
logsys,
// Additional Fields
ktopl,
racct,
xblnr,
zuonr,
// Additional Fields - Universal Journal Entry: G/L additional account assignments
rcntr,
prctr,
rfarea,
rbusa,
kokrs,
segment,
scntr,
pprctr,
sfarea,
sbusa,
rassc,
psegment,
aufnr,
kunnr,
lifnr,
matnr,
matkl_mm,
werks,
rmvct,
ps_psp_pnr,
ps_posid,
ps_pspid,
// Additional Fields - SFIN: Universal Journal Entry - Fixed CO-PA fields
fkart,
vkorg,
vtweg,
spart,
matnr_copa,
matkl,
kdgrp,
land1,
brsch,
bzirk,
kunre,
kunwe,
konzs
}
where
plevl = '20'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CNSLDTNGROUPSTRUCTURE",
"I_CNSLDTNVERSION",
"P_CONSOLIDATEDDATA"
],
"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