P_ShrtTrmCshPosAcctDimnBAH
Short Term Cash Position Acc Dimension
P_ShrtTrmCshPosAcctDimnBAH is a Composite CDS View that provides data about "Short Term Cash Position Acc Dimension" in SAP S/4HANA. It reads from 1 data source (P_ShrtTrmCshPosAccHier) and exposes 33 fields with key fields CashPositionProfile, CashPositionHierNode, KeyDate, CashSnapshot. It has 11 associations to related views. Part of development package FCLM_CP_SHORTTERM.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_ShrtTrmCshPosAccHier | P_ShrtTrmCshPosAccHier | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| p_CashPositionProfile | fclm_cp_profile_name | |
| p_KeyDate | vdm_v_key_date | |
| p_CashSnapshot | fclm_snapshot_id |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_ShrtTrmCshPosHierNodeTypeTxt | _NodeTypeText | $projection.CashPositionHierNodeType = _NodeTypeText.CashPositionHierNodeType |
| [0..1] | I_CashPositionProfile | _CashPositionProfile | $projection.CashPositionProfile = _CashPositionProfile.CashPositionProfile |
| [0..1] | P_ShrtTrmCshPosAcctDimnBAH | _Parent | $projection.CashPositionProfile = _Parent.CashPositionProfile and $projection.CashPositionHierParentNode = _Parent.CashPositionHierNode and $projection.KeyDate = _Parent.KeyDate and $projection.CashSnapshot = _Parent.CashSnapshot |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Bank_2 | _Bank | $projection.BankCountry = _Bank.BankCountry and $projection.Bank = _Bank.BankInternalID |
| [0..1] | I_CurrencyText | _CurrencyText | $projection.BankAccountCurrency = _CurrencyText.Currency and _CurrencyText.Language = $session.system_language |
| [0..1] | I_BankAccount | _BankAccount | $projection.BankAccountInternalID = _BankAccount.BankAccountInternalID |
| [0..1] | I_BusinessPartner | _RiskPartner | $projection.RiskPartnerNo = _RiskPartner.BusinessPartner |
| [0..*] | I_CountryText | _BankCountryText | $projection.BankCountry = _BankCountryText.Country |
| [0..*] | I_CountryText | _CompanyCountryText | $projection.Country = _CompanyCountryText.Country |
| [0..1] | I_CashSnapshot | _Snapshot | _Snapshot.CashSnapshot = $parameters.p_CashSnapshot |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CashPositionProfile | CashPositionProfile | ||
| KEY | CashPositionHierNode | |||
| KEY | KeyDate | |||
| KEY | CashSnapshot | |||
| CashPositionHierParentNode | ||||
| CashPositionHierNodeValue | BankAccountHier | CashPositionHierNodeValue | Bank Account | |
| CashPositionHierNodeType | BankAccountHier | CashPositionHierNodeType | ||
| CashPositionHierNextNodeType | ||||
| CashPositionHierNodeTypeText | ||||
| _CashPositionProfile | _CashPositionProfile | |||
| _Parent | _Parent | |||
| CashPositionProfileDescription | _CashPositionProfile | CashPositionProfileDescription | ||
| CashPool | ||||
| CashPoolAssignmentText | ||||
| CashPoolAssgmtIsHeadBkAcct | ||||
| CashPositionDisplayCurrency | ||||
| CshPoolHierRootBkAcctIntID | BankAccountInternalID | Technical ID | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| Bank | Bank | Bank Number | ||
| BankCountry | BankCountry | Bank Ctry/Rgn. Key | ||
| BankAccountCurrency | BankAccountCurrency | Currency | ||
| BankAccountInternalID | BankAccountInternalID | Technical ID | ||
| BankAccountNumber | BankAccountNumber | Bank Account | ||
| RiskPartnerNo | RiskPartnerNo | Busn. Partner | ||
| Country | Country | Venue: Ctry/Reg | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| BankName | _Bank | BankName | Bank Name | |
| CurrencyName | _CurrencyText | CurrencyName | ||
| BankCountryName | ||||
| CompanyCountryName | ||||
| BankAccountDescription | ||||
| BusinessPartnerName | _RiskPartner | BusinessPartnerName | Extracted Customer Name | |
| CashSnapshotDescription | _Snapshot | CashSnapshotDescription |
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_ShrtTrmCshPosAcctDimnBAH.
-- 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_ShrtTrmCshPosAcctDimnBAH AS
SELECT
CashPositionProfile,
cast(BankAccountHier.CashPositionHierNode as fclm_cp_hiernode ) AS CashPositionHierNode,
$parameters.p_KeyDate AS KeyDate,
$parameters.p_CashSnapshot AS CashSnapshot,
cast(BankAccountHier.CashPositionHierParentNode as fclm_cp_hiernode ) AS CashPositionHierParentNode,
BankAccountHier.CashPositionHierNodeValue AS CashPositionHierNodeValue,
BankAccountHier.CashPositionHierNodeType AS CashPositionHierNodeType,
'' AS CashPositionHierNextNodeType,
_NodeTypeText[1:Language = $session.system_language].CashPositionHierNodeTypeText AS CashPositionHierNodeTypeText,
_CashPositionProfile.CashPositionProfileDescription AS CashPositionProfileDescription,
cast('' as fclm_cpl_name) AS CashPool,
cast('' as fclm_cpl_assgn_text) AS CashPoolAssignmentText,
cast('' as fclm_cpl_assgn_is_head_acc) AS CashPoolAssgmtIsHeadBkAcct,
cast('' as waers) AS CashPositionDisplayCurrency,
BankAccountInternalID AS CshPoolHierRootBkAcctIntID,
CompanyCode,
Bank,
BankCountry,
BankAccountCurrency,
BankAccountInternalID,
BankAccountNumber,
RiskPartnerNo,
Country,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
_Bank.BankName AS BankName,
_CurrencyText.CurrencyName AS CurrencyName,
_BankCountryText[1:Language=$session.system_language].CountryName AS BankCountryName,
_CompanyCountryText[1:Language=$session.system_language].CountryName AS CompanyCountryName,
_BankAccount._Text[1:Language=$session.system_language].BankAccountDescription AS BankAccountDescription,
_RiskPartner.BusinessPartnerName AS BusinessPartnerName,
_Snapshot.CashSnapshotDescription AS CashSnapshotDescription
FROM P_ShrtTrmCshPosAccHier
LEFT OUTER JOIN I_ShrtTrmCshPosHierNodeTypeTxt AS _NodeTypeText ON CashPositionHierNodeType = _NodeTypeText.CashPositionHierNodeType -- association [0..*]
LEFT OUTER JOIN I_CashPositionProfile AS _CashPositionProfile ON CashPositionProfile = _CashPositionProfile.CashPositionProfile -- association [0..1]
LEFT OUTER JOIN P_ShrtTrmCshPosAcctDimnBAH AS _Parent ON CashPositionProfile = _Parent.CashPositionProfile AND CashPositionHierParentNode = _Parent.CashPositionHierNode AND KeyDate = _Parent.KeyDate AND CashSnapshot = _Parent.CashSnapshot -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Bank_2 AS _Bank ON BankCountry = _Bank.BankCountry AND Bank = _Bank.BankInternalID -- association [0..1]
LEFT OUTER JOIN I_CurrencyText AS _CurrencyText ON BankAccountCurrency = _CurrencyText.Currency AND _CurrencyText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_BankAccount AS _BankAccount ON BankAccountInternalID = _BankAccount.BankAccountInternalID -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _RiskPartner ON RiskPartnerNo = _RiskPartner.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_CountryText AS _BankCountryText ON BankCountry = _BankCountryText.Country -- association [0..*]
LEFT OUTER JOIN I_CountryText AS _CompanyCountryText ON Country = _CompanyCountryText.Country -- association [0..*]
LEFT OUTER JOIN I_CashSnapshot AS _Snapshot ON _Snapshot.CashSnapshot = $parameters.p_CashSnapshot -- association [0..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