P_Matrix_CP_GroupDerived_2

DDL: P_MATRIX_CP_GROUPDERIVED_2 Type: view COMPOSITE

P_Matrix_CP_GroupDerived_2 is a Composite CDS View in SAP S/4HANA. It reads from 7 data sources and exposes 243 fields.

Data Sources (7)

SourceAliasJoin 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)

NameTypeDefault
P_FromFiscalYearPeriod fincs_fiscyearper
P_ToFiscalYearPeriod fincs_fiscyearper

Annotations (11)

NameValueLevelField
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 (243)

KeyFieldSource TableSource FieldDescription
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
tsl_csign tsl_csign
hsl_csign hsl_csign
ksl_csign ksl_csign
msl_csign msl_csign
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
bunnr bunnr Document Bundle No.
branch_id branch_id Branch (FS)
ghgcategory ghgcategory
ghgscope ghgscope
ghgenergymix ghgenergymix
fikrs fikrs FM Area
rfund rfund Sender Fund
rgrant_nbr rgrant_nbr Sender Grant
re_ktopl re_ktopl
re_account re_account Cash Origin Account
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
tsl_csign CnsldtnCstmSignAmtInTransCrcy
hsl_csign CnsldtnCstmSignAmtInLoclCrcy
ksl_csign CnsldtnCstmSignAmtInGrpCrcy
msl_csign CnsldtnCstmSignLongQtyInBsUnit
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.
branch_id FinancialServicesBranch Branch (FS)
ghgcategory GHGScope
ghgscope GHGCategory
ghgenergymix GHGEnergyMix
fikrs FinancialManagementArea FM Area
rfund Fund Sender Fund
rgrant_nbr GrantID Sender Grant
re_ktopl CnsldtnCashLedgerChartOfAccts
re_account CashLedgerAccount Cash Origin Account
bp_p_geber PartnerFund Receiver Fund

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,
  tsl_csign,
  hsl_csign,
  ksl_csign,
  msl_csign,
  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,
  branch_id,
  ghgcategory,
  ghgscope,
  ghgenergymix,
  fikrs,
  rfund,
  rgrant_nbr,
  re_ktopl,
  re_account,
  bp_p_geber AS P_FromFiscalYearPeriod,
  PartnerFund AS bp_p_geber
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
;