P_ShrtTrmCshPosAccWithProfile
P_ShrtTrmCshPosAccWithProfile is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_ShrtTrmCshPosAccFilter, I_CashPositionProfile) and exposes 19 fields with key fields CashPositionProfile, BankAccountInternalID.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_ShrtTrmCshPosAccFilter | P_ShrtTrmCshPosAccFilter | from |
| I_CashPositionProfile | prof | cross |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| p_CashPositionProfile | fclm_cp_profile_name |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSTCPACCPROF | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CashPositionProfile | I_CashPositionProfile | CashPositionProfile | |
| KEY | BankAccountInternalID | account | BankAccountInternalID | |
| BankAccountCurrency | account | BankAccountCurrency | ||
| BankAccountNumber | account | BankAccountNumber | ||
| BankAccountType | account | BankAccountType | ||
| BankCountry | account | BankCountry | ||
| CompanyCode | account | CompanyCode | ||
| Bank | account | Bank | ||
| Country | account | Country | ||
| RiskPartnerNo | account | RiskPartnerNo | ||
| 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 |
@AbapCatalog.sqlViewName: 'PSTCPACCPROF'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_ShrtTrmCshPosAccWithProfile
with parameters
p_CashPositionProfile : fclm_cp_profile_name
as select from P_ShrtTrmCshPosAccFilter(p_SAPClient: $session.client, p_CashPositionProfile: $parameters.p_CashPositionProfile) as account
cross join I_CashPositionProfile as prof
{
key prof.CashPositionProfile,
key account.BankAccountInternalID,
account.BankAccountCurrency,
account.BankAccountNumber,
account.BankAccountType,
account.BankCountry,
account.CompanyCode,
account.Bank,
account.Country,
account.RiskPartnerNo,
prof.CashPositionHierLevel1,
prof.CashPositionHierLevel2,
prof.CashPositionHierLevel3,
prof.CashPositionHierSource,
prof.CashPositionRootNode,
prof.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,
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,
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
}
where
prof.CashPositionProfile = $parameters.p_CashPositionProfile
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CASHPOSITIONPROFILE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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