P_GrantIntrstApprtmt

DDL: P_GRANTINTRSTAPPRTMT Type: view COMPOSITE

WUGRANT Interest Apportionment Master

P_GrantIntrstApprtmt is a Composite CDS View that provides data about "WUGRANT Interest Apportionment Master" in SAP S/4HANA. It reads from 4 data sources (I_PubSecIntrstApprtmt, I_PubSecIntrstApprtmt, I_PubSecPrtcpntAcctAssgmt, I_PubSecPrtcpntAcctAssgmt) and exposes 22 fields with key fields GrantWhereUsedObjType, InvestmentPoolUUID, InvestmentPoolID, GrantID, CompanyCode. It has 1 association to related views.

Data Sources (4)

SourceAliasJoin Type
I_PubSecIntrstApprtmt _IntrstApprtmt inner
I_PubSecIntrstApprtmt _IntrstApprtmt inner
I_PubSecPrtcpntAcctAssgmt _PrtcpntAcctAssgmt from
I_PubSecPrtcpntAcctAssgmt _PrtcpntAcctAssgmt union

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_Grant _Grant $projection.GrantID = _Grant.GrantID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PWUGRANTINTAPRMT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label WUGRANT Interest Apportionment Master view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #MASTER view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY GrantWhereUsedObjType
KEY InvestmentPoolUUID I_PubSecIntrstApprtmt InvestmentPoolUUID UUID
KEY InvestmentPoolID I_PubSecIntrstApprtmt InvestmentPoolID Pool ID
KEY GrantID I_PubSecPrtcpntAcctAssgmt ParticipantGrant Destination Grant
KEY CompanyCode I_PubSecIntrstApprtmt CompanyCode Receiver Company Code
KEY InvestmentGrantRole
InvestmentPoolIDCreatedBy I_PubSecIntrstApprtmt InvestmentPoolIDCreatedBy Version Created By
InvestmentPoolIDChangedBy I_PubSecIntrstApprtmt InvestmentPoolIDChangedBy User Name
clientNULLasInvestmentPoolIDCreateDate
clientNULLasInvestmentPoolIDChangeDate
CompanyCodeName
KEY InvestmentPoolUUID I_PubSecIntrstApprtmt InvestmentPoolUUID UUID
KEY InvestmentPoolID I_PubSecIntrstApprtmt InvestmentPoolID Pool ID
KEY GrantID I_PubSecPrtcpntAcctAssgmt DestinationGrant Destination Grant
KEY CompanyCode I_PubSecIntrstApprtmt CompanyCode Receiver Company Code
KEY InvestmentGrantRole
InvestmentPoolIDCreatedBy I_PubSecIntrstApprtmt InvestmentPoolIDCreatedBy Version Created By
InvestmentPoolIDChangedBy I_PubSecIntrstApprtmt InvestmentPoolIDChangedBy User Name
clientNULLasInvestmentPoolIDCreateDate
clientNULLasInvestmentPoolIDChangeDate
CompanyCodeName
_Grant _Grant

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_GrantIntrstApprtmt.
-- 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.

CREATE VIEW P_GrantIntrstApprtmt AS
SELECT
  cast ('13IAM' as psm_s4c_gm_grant_wu_obj_typ_vh) AS GrantWhereUsedObjType,
  _IntrstApprtmt.InvestmentPoolUUID AS InvestmentPoolUUID,
  _IntrstApprtmt.InvestmentPoolID AS InvestmentPoolID,
  _PrtcpntAcctAssgmt.ParticipantGrant AS GrantID,
  _IntrstApprtmt.CompanyCode AS CompanyCode,
  cast ('Participating Grant' as psm_s4c_gm_grant_wu_iam_role ) AS InvestmentGrantRole,
  _IntrstApprtmt.InvestmentPoolIDCreatedBy AS InvestmentPoolIDCreatedBy,
  _IntrstApprtmt.InvestmentPoolIDChangedBy AS InvestmentPoolIDChangedBy,
  tstmp_to_dats( _IntrstApprtmt.InvestmentPoolIDCreateDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as InvestmentPoolIDCreateDate AS clientNULLasInvestmentPoolIDCreateDate,
  tstmp_to_dats( _IntrstApprtmt.InvestmentPoolIDChangeDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as InvestmentPoolIDChangeDate AS clientNULLasInvestmentPoolIDChangeDate,
  _IntrstApprtmt._CompanyCode.CompanyCodeName AS CompanyCodeName
FROM I_PubSecPrtcpntAcctAssgmt AS _PrtcpntAcctAssgmt
INNER JOIN I_PubSecIntrstApprtmt AS _IntrstApprtmt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Grant AS _Grant ON GrantID = _Grant.GrantID  -- association [1..1]
-- UNION with additional select branch(es): I_PubSecPrtcpntAcctAssgmt
;