P_IntApportnmntBasic

DDL: P_INTAPPORTNMNTBASIC SQL: PINTAPPRTMTBASIC Type: view COMPOSITE

P_IntApportnmntBasic is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_PubSecPrtcpntAccts, I_GLAccountLineItem) and exposes 28 fields with key fields CompanyCode, Fund, GrantID, ProfitCenter, Segment. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_PubSecPrtcpntAccts _PrtcpntAccts inner
I_GLAccountLineItem GLAcctLineItem from

Parameters (3)

NameTypeDefault
P_PoolID psm_pool_id
P_Year num4
P_Period num2

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_ProfitCenter _RealProfitCenter $projection.ControllingArea = _RealProfitCenter.ControllingArea and $projection.ProfitCenter = _RealProfitCenter.ProfitCenter and $projection.PostingDate >= _RealProfitCenter.ValidityStartDate and $projection.PostingDate <= _RealProfitCenter.ValidityEndDate

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PINTAPPRTMTBASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #S view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_GLAccountLineItem CompanyCode Receiver Company Code
KEY Fund I_GLAccountLineItem Fund Sender Fund
KEY GrantID I_GLAccountLineItem GrantID Sender Grant
KEY ProfitCenter I_GLAccountLineItem ProfitCenter Profit Center
KEY Segment I_GLAccountLineItem Segment Segment number
InvestmentPooledFund _IntrstApprtmt InvestmentPooledFund
PYear
PPeriod
InvestmentPoolUUID I_PubSecPrtcpntAccts InvestmentPoolUUID UUID
ChartOfAccounts I_GLAccountLineItem ChartOfAccounts Node Class
FinancialManagementArea I_GLAccountLineItem FinancialManagementArea FM Area
ControllingArea I_GLAccountLineItem ControllingArea Controlling Area
InvestmentParticipantAccount I_GLAccountLineItem GLAccount General Ledger
PostingDate I_GLAccountLineItem PostingDate Posting Date for GR
CalendarDayelse00endasPoolDay
LastDay _CalendarYearMonth NumberOfDays Number of Days
AmountInCompanyCodeCurrency I_GLAccountLineItem AmountInCompanyCodeCurrency Local Crcy Amt
CompanyCodeCurrency I_GLAccountLineItem CompanyCodeCurrency Local Currency
_ChartOfAccounts I_GLAccountLineItem _ChartOfAccounts
_CompanyCode I_GLAccountLineItem _CompanyCode
_FinancialManagementArea I_GLAccountLineItem _FinancialManagementArea
_ControllingArea I_GLAccountLineItem _ControllingArea
_Fund I_GLAccountLineItem _Fund
_Grant I_GLAccountLineItem _Grant
_RealProfitCenter _RealProfitCenter
_Segment I_GLAccountLineItem _Segment
_GLAccountInChartOfAccounts I_GLAccountLineItem _GLAccountInChartOfAccounts
_CompanyCodeCurrency I_GLAccountLineItem _CompanyCodeCurrency

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_IntApportnmntBasic.
-- 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.
-- SQL view name: PINTAPPRTMTBASIC
-- Parameters: P_PoolID : psm_pool_id, P_Year : num4, P_Period : num2

CREATE VIEW P_IntApportnmntBasic AS
SELECT
  GLAcctLineItem.CompanyCode AS CompanyCode,
  GLAcctLineItem.Fund AS Fund,
  GLAcctLineItem.GrantID AS GrantID,
  GLAcctLineItem.ProfitCenter AS ProfitCenter,
  GLAcctLineItem.Segment AS Segment,
  _IntrstApprtmt.InvestmentPooledFund AS InvestmentPooledFund,
  $parameters.P_Year AS PYear,
  $parameters.P_Period AS PPeriod,
  _PrtcpntAccts.InvestmentPoolUUID AS InvestmentPoolUUID,
  GLAcctLineItem.ChartOfAccounts AS ChartOfAccounts,
  GLAcctLineItem.FinancialManagementArea AS FinancialManagementArea,
  GLAcctLineItem.ControllingArea AS ControllingArea,
  GLAcctLineItem.GLAccount AS InvestmentParticipantAccount,
  GLAcctLineItem.PostingDate AS PostingDate,
  case when ( _CalendarDateByPostingDate.CalendarMonth = $parameters.P_Period and GLAcctLineItem.AccountingDocumentCategory <> 'C' ) then _CalendarDateByPostingDate.CalendarDay else '00' end as PoolDay AS CalendarDayelse00endasPoolDay,
  _CalendarYearMonth.NumberOfDays AS LastDay,
  GLAcctLineItem.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  GLAcctLineItem.CompanyCodeCurrency AS CompanyCodeCurrency,
  GLAcctLineItem._ChartOfAccounts AS _ChartOfAccounts,
  GLAcctLineItem._CompanyCode AS _CompanyCode,
  GLAcctLineItem._FinancialManagementArea AS _FinancialManagementArea,
  GLAcctLineItem._ControllingArea AS _ControllingArea,
  GLAcctLineItem._Fund AS _Fund,
  GLAcctLineItem._Grant AS _Grant,
  GLAcctLineItem._Segment AS _Segment,
  GLAcctLineItem._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
  GLAcctLineItem._CompanyCodeCurrency AS _CompanyCodeCurrency
FROM I_GLAccountLineItem AS GLAcctLineItem
INNER JOIN I_PubSecPrtcpntAccts AS _PrtcpntAccts ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProfitCenter AS _RealProfitCenter ON ControllingArea = _RealProfitCenter.ControllingArea AND ProfitCenter = _RealProfitCenter.ProfitCenter AND PostingDate >= _RealProfitCenter.ValidityStartDate AND PostingDate <= _RealProfitCenter.ValidityEndDate  -- association [1..1]
;