P_ShrtTrmCshPosAccWithProfile

DDL: P_SHRTTRMCSHPOSACCWITHPROFILE Type: view_entity COMPOSITE Package: FCLM_CP_SHORTTERM

Short Term Cash Position Acc Filter

P_ShrtTrmCshPosAccWithProfile is a Composite CDS View that provides data about "Short Term Cash Position Acc Filter" in SAP S/4HANA. It reads from 5 data sources (P_ShrtTrmCshPosAccFilter, P_ShrtTrmCshPosAccFilter, I_CashPositionProfile, I_CashPositionProfile, I_CashSnapshotWthCshPosPrpsVH) and exposes 40 fields with key fields CashPositionProfile, BankAccountInternalID, BankAccountInternalID. Part of development package FCLM_CP_SHORTTERM.

Data Sources (5)

SourceAliasJoin Type
P_ShrtTrmCshPosAccFilter P_ShrtTrmCshPosAccFilter from
P_ShrtTrmCshPosAccFilter P_ShrtTrmCshPosAccFilter union_all
I_CashPositionProfile prof cross
I_CashPositionProfile prof cross
I_CashSnapshotWthCshPosPrpsVH snapshot left_outer

Parameters (3)

NameTypeDefault
p_CashPositionProfile fclm_cp_profile_name
p_KeyDate vdm_v_key_date
P_CashSnapshot fclm_snapshot_id

Annotations (4)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
Metadata.ignorePropagatedAnnotations true view

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY CashPositionProfile I_CashPositionProfile CashPositionProfile
KEY BankAccountInternalID account BankAccountInternalID Technical ID
BankAccountCurrency account BankAccountCurrency Currency
BankAccountNumber account BankAccountNumber Bank Account
BankAccountType account BankAccountType Account Type
BankCountry account BankCountry Bank Ctry/Rgn. Key
CompanyCode account CompanyCode Receiver Company Code
Bank account Bank Bank Number
Country account Country Venue: Ctry/Reg
RiskPartnerNo account RiskPartnerNo Busn. Partner
CashPositionHierLevel1 I_CashPositionProfile CashPositionHierLevel1
CashPositionHierLevel2 I_CashPositionProfile CashPositionHierLevel2
CashPositionHierLevel3 I_CashPositionProfile CashPositionHierLevel3
CashPositionHierSource I_CashPositionProfile CashPositionHierSource
CashPositionRootNode I_CashPositionProfile CashPositionRootNode
CashPositionRootNodeIsNeeded I_CashPositionProfile CashPositionRootNodeIsNeeded
RiskPartnerNoelseendasGroupValue1
RiskPartnerNoelseendasGroupValue2
client
p_CashPositionProfile
p_KeyDate
CashPositionProfile
KEY BankAccountInternalID account BankAccountInternalID Technical ID
BankAccountCurrency account BankAccountCurrency Currency
BankAccountNumber account BankAccountNumber Bank Account
BankAccountType account BankAccountType Account Type
BankCountry account BankCountry Bank Ctry/Rgn. Key
CompanyCode account CompanyCode Receiver Company Code
Bank account Bank Bank Number
Country account Country Venue: Ctry/Reg
RiskPartnerNo account RiskPartnerNo Busn. Partner
CashPositionHierLevel1 I_CashPositionProfile CashPositionHierLevel1
CashPositionHierLevel2 I_CashPositionProfile CashPositionHierLevel2
CashPositionHierLevel3 I_CashPositionProfile CashPositionHierLevel3
CashPositionHierSource I_CashPositionProfile CashPositionHierSource
CashPositionRootNode I_CashPositionProfile CashPositionRootNode
CashPositionRootNodeIsNeeded I_CashPositionProfile CashPositionRootNodeIsNeeded
RiskPartnerNoelseendasGroupValue1
RiskPartnerNoelseendasGroupValue2
RiskPartnerNoelseendasGroupValue3

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_ShrtTrmCshPosAccWithProfile.
-- 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_CashPositionProfile : fclm_cp_profile_name, p_KeyDate : vdm_v_key_date, P_CashSnapshot : fclm_snapshot_id

CREATE VIEW P_ShrtTrmCshPosAccWithProfile AS
SELECT
  prof.CashPositionProfile AS CashPositionProfile,
  account.BankAccountInternalID AS BankAccountInternalID,
  account.BankAccountCurrency AS BankAccountCurrency,
  account.BankAccountNumber AS BankAccountNumber,
  account.BankAccountType AS BankAccountType,
  account.BankCountry AS BankCountry,
  account.CompanyCode AS CompanyCode,
  account.Bank AS Bank,
  account.Country AS Country,
  account.RiskPartnerNo AS RiskPartnerNo,
  prof.CashPositionHierLevel1 AS CashPositionHierLevel1,
  prof.CashPositionHierLevel2 AS CashPositionHierLevel2,
  prof.CashPositionHierLevel3 AS CashPositionHierLevel3,
  prof.CashPositionHierSource AS CashPositionHierSource,
  prof.CashPositionRootNode AS CashPositionRootNode,
  prof.CashPositionRootNodeIsNeeded AS CashPositionRootNodeIsNeeded,
  case when prof.CashPositionHierLevel1 = '01' then account.CompanyCode when prof.CashPositionHierLevel1 = '02' then account.BankCountry when prof.CashPositionHierLevel1 = '03' then concat( account.BankCountry, account.Bank ) when prof.CashPositionHierLevel1 = '04' then account.BankAccountCurrency when prof.CashPositionHierLevel1 = '05' then account.Country when prof.CashPositionHierLevel1 = '06' then account.RiskPartnerNo else '' end as GroupValue1 AS RiskPartnerNoelseendasGroupValue1,
  case when prof.CashPositionHierLevel2 = '01' then account.CompanyCode when prof.CashPositionHierLevel2 = '02' then account.BankCountry when prof.CashPositionHierLevel2 = '03' then concat( account.BankCountry, account.Bank ) when prof.CashPositionHierLevel2 = '04' then account.BankAccountCurrency when prof.CashPositionHierLevel2 = '05' then account.Country when prof.CashPositionHierLevel2 = '06' then account.RiskPartnerNo else '' end as GroupValue2 AS RiskPartnerNoelseendasGroupValue2,
  case when prof.CashPositionHierLevel3 = '01' then account.CompanyCode when prof.CashPositionHierLevel3 = '02' then account.BankCountry when prof.CashPositionHierLevel3 = '03' then concat( account.BankCountry, account.Bank ) when prof.CashPositionHierLevel3 = '04' then account.BankAccountCurrency when prof.CashPositionHierLevel3 = '05' then account.Country when prof.CashPositionHierLevel3 = '06' then account.RiskPartnerNo else '' end as GroupValue3 AS client,
  p_CashPositionProfile: $parameters.p_CashPositionProfile AS p_CashPositionProfile,
  p_KeyDate: $parameters.p_KeyDate AS p_KeyDate,
  case when prof.CashPositionHierLevel3 = '01' then account.CompanyCode when prof.CashPositionHierLevel3 = '02' then account.BankCountry when prof.CashPositionHierLevel3 = '03' then concat( account.BankCountry, account.Bank ) when prof.CashPositionHierLevel3 = '04' then account.BankAccountCurrency when prof.CashPositionHierLevel3 = '05' then account.Country when prof.CashPositionHierLevel3 = '06' then account.RiskPartnerNo else '' end as GroupValue3 AS RiskPartnerNoelseendasGroupValue3
FROM P_ShrtTrmCshPosAccFilter
CROSS JOIN I_CashPositionProfile AS prof
LEFT OUTER JOIN I_CashSnapshotWthCshPosPrpsVH AS snapshot ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_ShrtTrmCshPosAccFilter
;