P_Matrix_CP_GroupDerived_2
P_Matrix_CP_GroupDerived_2 is a Composite CDS View in SAP S/4HANA. It reads from 7 data sources and exposes 215 fields.
Data Sources (7)
| Source | Alias | Join Type |
|---|---|---|
| I_CnsldtnGroupStructure | group_structure | inner |
| P_CnsldtnGroupJrnlEntryItem | P_CnsldtnGroupJrnlEntryItem | union_all |
| P_StandardizedDataWithParam | P_StandardizedDataWithParam | from |
| I_CnsldtnGroupStructure | punit_structure | inner |
| I_CnsldtnGroupStructure | unit_structure | inner |
| I_CnsldtnVersion | version_assignment | inner |
| I_CnsldtnVersion | version_assignment | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_FromFiscalYearPeriod | fincs_fiscyearper | |
| P_ToFiscalYearPeriod | fincs_fiscyearper |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMCPGRPD2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (215)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| mandt | ||||
| rclnt | ||||
| rldnr | rldnr | Ledger | ||
| rdimen | rdimen | Dimension | ||
| ryear | ryear | G/L Fiscal Year | ||
| docnr | docnr | |||
| docln | docln | |||
| rrcty | rrcty | Record Type | ||
| rvers | rvers | Version | ||
| rtcur | rtcur | Transaction Currency | ||
| rhcur | rhcur | Local Currency | ||
| rkcur | rkcur | Ledger curr. | ||
| runit | runit | Unit of Measure | ||
| drcrk | drcrk | Debit/Credit | ||
| poper | poper | Tax period | ||
| fiscyearper | fiscyearper | Period/Year | ||
| period_mode | ||||
| docct | docct | Document Category | ||
| rcomp | rcomp | Owner | ||
| rbunit | rbunit | Consolidation Unit | ||
| ritclg | ritclg | Cons. COA | ||
| ritem | ritem | FS Item | ||
| rbuptr | rbuptr | Partner Unit | ||
| rcongr | I_CnsldtnGroupStructure | ConsolidationGroup | Cons. Group | |
| robukrs | robukrs | Receiver Company Code | ||
| sityp | sityp | Subitem Category | ||
| subit | subit | Subitem Number | ||
| plevl | plevl | Posting Level | ||
| rpflg | rpflg | Apportionment | ||
| rtflg | rtflg | CT Indicator | ||
| docty | docty | Document Type | ||
| yracq | yracq | Acquis. Year | ||
| pracq | pracq | Period of Acq. | ||
| coicu | coicu | Investee Unit | ||
| uppcu | uppcu | |||
| tsl | tsl | Pt Crcy Amt | ||
| hsl | hsl | Local Crcy Amt | ||
| ksl | ksl | Amnt in GrpCrcy | ||
| msl | msl | |||
| sgtxt | sgtxt | Text | ||
| autom | autom | Auto. ID | ||
| activ | activ | Bus.transaction | ||
| bvorg | bvorg | Intercompany Transac | ||
| budat | budat | Posting Date for GR | ||
| wsdat | wsdat | Value Date | ||
| refdocnr | refdocnr | Document Number | ||
| refryear | refryear | Original FY | ||
| refdocln | refdocln | Item | ||
| refdocct | refdocct | Document Categ. | ||
| refactiv | refactiv | Bus.transaction | ||
| timestamp | timestamp | Timestamp | ||
| cpudt | cpudt | Time Stamp | ||
| cputm | cputm | Time of Change | ||
| usnam | usnam | User Name | ||
| rvsdocnr | rvsdocnr | Reversed With | ||
| orndocnr | orndocnr | Reversed doc. | ||
| coiac | coiac | C/I Activity | ||
| coinr | coinr | Activity Number | ||
| revyear | revyear | Year of reversal doc | ||
| awtyp | awtyp | Reference Document Type | ||
| aworg | aworg | Reference Document Context | ||
| logsys | logsys | Logical System | ||
| ktopl | ktopl | Node Class | ||
| racct | racct | General Ledger | ||
| xblnr | xblnr | Reference | ||
| zuonr | zuonr | Assignment Reference | ||
| rcntr | rcntr | Cost Center | ||
| prctr | prctr | Profit Center | ||
| rfarea | rfarea | Sendr Fctl Area | ||
| rbusa | rbusa | Business Area | ||
| kokrs | kokrs | Controlling Area | ||
| segment | segment | Segment number | ||
| scntr | scntr | Sender Cost Ctr | ||
| pprctr | pprctr | Profit Center | ||
| sfarea | sfarea | Rec. Fntcl Area | ||
| sbusa | sbusa | Trdg Part.BA | ||
| rassc | rassc | Trading Partner | ||
| psegment | psegment | Partner Segment | ||
| aufnr | aufnr | Order ID | ||
| kunnr | kunnr | Sold-to Party | ||
| lifnr | lifnr | Supplier | ||
| matnr | matnr | Vehicle Model | ||
| matkl_mm | matkl_mm | Product Group | ||
| werks | werks | Valuation Area | ||
| rmvct | rmvct | Transact. Type | ||
| ps_psp_pnr | ps_psp_pnr | WBS Internal ID | ||
| ps_posid | ps_posid | WBS Element External ID | ||
| ps_pspid | ps_pspid | WBS Element | ||
| fkart | fkart | Billing Type | ||
| vkorg | vkorg | Sales Organization | ||
| vtweg | vtweg | RefDistCh-Cust/Mat. | ||
| spart | spart | Org. Division | ||
| matnr_copa | matnr_copa | Product Sold | ||
| matkl | matkl | Product Sold Group | ||
| kdgrp | kdgrp | Customer Group | ||
| land1 | land1 | Customer or Supplier Country/Region | ||
| brsch | brsch | Industry | ||
| bzirk | bzirk | Sales District | ||
| kunre | kunre | Inv. Recipient | ||
| kunwe | kunwe | Ship-To Party (obsolete) | ||
| konzs | konzs | Group | ||
| adhocitem | adhocitem | |||
| adhocset | adhocset | |||
| adhocsetitem | adhocsetitem | |||
| rcode | rcode | |||
| orig_type | orig_type | |||
| orig_ref | orig_ref | |||
| P_FromFiscalYearPeriod | ||||
| rclnt | ||||
| rldnr | transaction_data | ConsolidationLedger | Ledger | |
| rdimen | transaction_data | ConsolidationDimension | Dimension | |
| ryear | FiscalYear | G/L Fiscal Year | ||
| docnr | CnsldtnGroupJrnlEntry | |||
| docln | CnsldtnGroupJrnlEntryItem | |||
| rrcty | GLRecordType | Record Type | ||
| rvers | transaction_data | ConsolidationVersion | Version | |
| rtcur | TransactionCurrency | Transaction Currency | ||
| rhcur | LocalCurrency | Local Currency | ||
| rkcur | transaction_data | GroupCurrency | Ledger curr. | |
| runit | BaseUnit | Unit of Measure | ||
| drcrk | Debit/Credit | |||
| poper | FiscalPeriod | Tax period | ||
| fiscyearper | FiscalYearPeriod | Period/Year | ||
| period_mode | ||||
| docct | DocumentCategory | Document Category | ||
| rcomp | Company | Owner | ||
| rbunit | transaction_data | ConsolidationUnit | Consolidation Unit | |
| ritclg | ConsolidationChartOfAccounts | Cons. COA | ||
| ritem | FinancialStatementItem | FS Item | ||
| rbuptr | PartnerConsolidationUnit | Partner Unit | ||
| rcongr | I_CnsldtnGroupStructure | ConsolidationGroup | Cons. Group | |
| robukrs | CompanyCode | Receiver Company Code | ||
| sityp | SubItemCategory | Subitem Category | ||
| subit | SubItem | Subitem Number | ||
| plevl | PostingLevel | Posting Level | ||
| rpflg | ConsolidationApportionment | Apportionment | ||
| rtflg | CurrencyConversionsDiffType | CT Indicator | ||
| docty | ConsolidationDocumentType | Document Type | ||
| yracq | ConsolidationAcquisitionYear | Acquis. Year | ||
| pracq | ConsolidationAcquisitionPeriod | Period of Acq. | ||
| coicu | InvesteeConsolidationUnit | Investee Unit | ||
| uppcu | InvestorConsolidationUnit | |||
| tsl | AmountInTransactionCurrency | Pt Crcy Amt | ||
| hsl | AmountInLocalCurrency | Local Crcy Amt | ||
| ksl | AmountInGroupCurrency | Amnt in GrpCrcy | ||
| msl | CnsldtnQuantityInBaseUnit | |||
| sgtxt | DocumentItemText | Text | ||
| autom | ConsolidationPostgItemAutoFlag | Auto. ID | ||
| activ | BusinessTransactionType | Bus.transaction | ||
| bvorg | Intercompany Transac | |||
| budat | PostingDate | Posting Date for GR | ||
| wsdat | CurrencyTranslationDate | Value Date | ||
| refdocnr | RefConsolidationDocumentNumber | Document Number | ||
| refryear | ReferenceFiscalYear | Original FY | ||
| refdocln | RefConsolidationPostingItem | Item | ||
| refdocct | RefConsolidationDocumentType | Document Categ. | ||
| refactiv | RefBusinessTransactionType | Bus.transaction | ||
| timestamp | CreationDateTime | Timestamp | ||
| cpudt | CreationDate | Time Stamp | ||
| cputm | CreationTime | Time of Change | ||
| usnam | UserID | User Name | ||
| rvsdocnr | ReverseDocument | Reversed With | ||
| orndocnr | ReversedDocument | Reversed doc. | ||
| coiac | InvestmentActivityType | C/I Activity | ||
| coinr | InvestmentActivity | Activity Number | ||
| revyear | ConsolidationDocReversalYear | Year of reversal doc | ||
| awtyp | ReferenceDocumentType | Reference Document Type | ||
| aworg | ReferenceDocumentContext | Reference Document Context | ||
| logsys | LogicalSystem | Logical System | ||
| ktopl | ChartOfAccounts | Node Class | ||
| racct | GLAccount | General Ledger | ||
| xblnr | Reference | |||
| zuonr | AssignmentReference | Assignment Reference | ||
| rcntr | CostCenter | Cost Center | ||
| prctr | ProfitCenter | Profit Center | ||
| rfarea | FunctionalArea | Sendr Fctl Area | ||
| rbusa | BusinessArea | Business Area | ||
| kokrs | ControllingArea | Controlling Area | ||
| segment | Segment | Segment number | ||
| scntr | PartnerCostCenter | Sender Cost Ctr | ||
| pprctr | PartnerProfitCenter | Profit Center | ||
| sfarea | PartnerFunctionalArea | Rec. Fntcl Area | ||
| sbusa | PartnerBusinessArea | Trdg Part.BA | ||
| rassc | PartnerCompany | Trading Partner | ||
| psegment | PartnerSegment | Partner Segment | ||
| aufnr | OrderID | Order ID | ||
| kunnr | Customer | Sold-to Party | ||
| lifnr | Supplier | Supplier | ||
| matnr | Material | Vehicle Model | ||
| matkl_mm | MaterialGroup | Product Group | ||
| werks | Plant | Valuation Area | ||
| rmvct | FinancialTransactionType | Transact. Type | ||
| ps_psp_pnr | WBSElementInternalID | WBS Internal ID | ||
| ps_posid | WBSElementExternalID | WBS Element External ID | ||
| ps_pspid | Project | WBS Element | ||
| fkart | BillingDocumentType | Billing Type | ||
| vkorg | SalesOrganization | Sales Organization | ||
| vtweg | DistributionChannel | RefDistCh-Cust/Mat. | ||
| spart | OrganizationDivision | Org. Division | ||
| matnr_copa | SoldMaterial | Product Sold | ||
| matkl | SoldProductGroup | Product Sold Group | ||
| kdgrp | CustomerGroup | Customer Group | ||
| land1 | CustomerSupplierCountry | Customer or Supplier Country/Region | ||
| brsch | CustomerSupplierIndustry | Industry | ||
| bzirk | SalesDistrict | Sales District | ||
| kunre | BillToParty | Inv. Recipient | ||
| kunwe | ShipToParty | Ship-To Party (obsolete) | ||
| konzs | CustomerSupplierCorporateGroup | Group | ||
| adhocitem | CnsldtnAdhocItem | |||
| adhocset | CnsldtnAdhocSet | |||
| adhocsetitem | CnsldtnAdhocSetItem | |||
| rcode | MatchingReasonCode | |||
| orig_type | OriginType | |||
| orig_ref | OriginReference | |||
| bunnr | CnsldtnGroupJrnlEntryBundle | Document Bundle No. |
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_Matrix_CP_GroupDerived_2.
-- 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.
-- Parameters: P_FromFiscalYearPeriod : fincs_fiscyearper, P_ToFiscalYearPeriod : fincs_fiscyearper
CREATE VIEW P_Matrix_CP_GroupDerived_2 AS
SELECT
$session.client AS mandt,
$session.client AS rclnt,
rldnr,
rdimen,
ryear,
docnr,
docln,
rrcty,
rvers,
rtcur,
rhcur,
rkcur,
runit,
drcrk,
poper,
fiscyearper,
cast('PER' as fincs_period_mode) AS period_mode,
docct,
rcomp,
rbunit,
ritclg,
ritem,
rbuptr,
group_structure.ConsolidationGroup AS rcongr,
robukrs,
sityp,
subit,
plevl,
rpflg,
rtflg,
docty,
yracq,
pracq,
coicu,
uppcu,
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,
ktopl,
racct,
xblnr,
zuonr,
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,
fkart,
vkorg,
vtweg,
spart,
matnr_copa,
matkl,
kdgrp,
land1,
brsch,
bzirk,
kunre,
kunwe,
konzs,
adhocitem,
adhocset,
adhocsetitem,
rcode,
orig_type,
orig_ref,
bunnr AS P_FromFiscalYearPeriod,
CnsldtnGroupJrnlEntryBundle AS bunnr
FROM P_StandardizedDataWithParam
INNER JOIN I_CnsldtnVersion AS version_assignment ON /* join condition not captured in parsed metadata */
INNER JOIN I_CnsldtnGroupStructure AS group_structure ON /* join condition not captured in parsed metadata */
INNER JOIN I_CnsldtnGroupStructure AS unit_structure ON /* join condition not captured in parsed metadata */
INNER JOIN I_CnsldtnGroupStructure AS punit_structure ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_CnsldtnGroupJrnlEntryItem
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA