P_IntApportnmntBasic
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)
| Source | Alias | Join Type |
|---|---|---|
| I_PubSecPrtcpntAccts | _PrtcpntAccts | inner |
| I_GLAccountLineItem | GLAcctLineItem | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_PoolID | psm_pool_id | |
| P_Year | num4 | |
| P_Period | num2 |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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