I_PubSecBudgetAccount
Budget Account
I_PubSecBudgetAccount (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PublicSectorBudgetAccount · Cross Applications
I_PubSecBudgetAccount is a Basic CDS View (Dimension) that provides data about "Budget Account" in SAP S/4HANA. It reads from 3 data sources (t001, P_Glacct_In_Cc, I_BudgetAccountInChtAccts) and exposes 23 fields with key fields PubSecBudgetAccount, PubSecBudgetAccountCoCode. It has 5 associations to related views.
SAP Help Documentation
| Category | CDS Views for Master Data |
|---|---|
| Data Category | Dimension |
| Status | Released |
This CDS view provides the prerequisites for answering the following business questions: How many budget accounts are defined? What are the G/L accounts used as budget accounts for entering budget? How many expense or revenue type budget accounts are defined?
Prerequisites
You are authorized to access the G/L account within a company code (authorization object F_SKA1_BUK ). You are authorized to access the G/L account within a charts of accounts (authorization object F_SKA1_KTP ).
Structure
Measures and attributes Some important measures and attributes are: Budget account for Expenses or Revenues Budget account to enter budget and/or post commitments and actuals. In case entries are not allowed then the budget account would most likely be used as a collector of budget accounts hierarchically ordered below.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | PSM-FM-MD |
| Capabilities | Analytical Dimension |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| t001 | CompanyCode | inner |
| P_Glacct_In_Cc | GLAccountInCompanyCode | inner |
| I_BudgetAccountInChtAccts | Main | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_ChartOfAccountsText | _ChartOfAccountsText | $projection.ChartOfAccounts = _ChartOfAccountsText.ChartOfAccounts |
| [0..1] | I_ChartOfAccounts | _ChartOfAccounts | $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts |
| [0..*] | I_PubSecBudgetAccountText | _BudgetAccountText | $projection.PubSecBudgetAccount = _BudgetAccountText.PubSecBudgetAccount and $projection.PubSecBudgetAccountCoCode = _BudgetAccountText.PubSecBudgetAccountCoCode |
| [0..*] | I_GlAccountTextInCompanycode | _PubSecBudgetAccountText | $projection.PubSecBudgetAccount = _PubSecBudgetAccountText.GLAccount and $projection.PubSecBudgetAccountCoCode = _PubSecBudgetAccountText.CompanyCode |
| [0..1] | I_CompanyCode | _PubSecBudgetAccountCoCode | $projection.PubSecBudgetAccountCoCode = _PubSecBudgetAccountCoCode.CompanyCode |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPSMS4CBDACCT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Budget Account | view | |
| VDM.viewType | #BASIC | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.representativeKey | PubSecBudgetAccount | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.sapObjectNodeType.name | PublicSectorBudgetAccount | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PubSecBudgetAccount | I_BudgetAccountInChtAccts | PubSecBudgetAccount | Budget Account |
| KEY | PubSecBudgetAccountCoCode | Budget Account Company Code | ||
| ChartOfAccounts | I_BudgetAccountInChtAccts | ChartOfAccounts | Chart of Accounts | |
| PubSecBudgetCnsmpnType | I_BudgetAccountInChtAccts | PubSecBudgetCnsmpnType | Budget Consumption Type | |
| PubSecBdgtAcctRevnExpnCode | I_BudgetAccountInChtAccts | PubSecBdgtAcctRevnExpnCode | Expense or Revenue on Budget Account | |
| PubSecBudgetIsRelevant | I_BudgetAccountInChtAccts | PubSecBudgetIsRelevant | Budget-Relevant Indicator | |
| PubSecBdgtAcctIsPostgAllowed | I_BudgetAccountInChtAccts | PubSecBdgtAcctIsPostgAllowed | Posting to Budget Account Allowed | |
| PubSecBdgtAcctIsBdgtAllowed | I_BudgetAccountInChtAccts | PubSecBdgtAcctIsBdgtAllowed | Budgeting Allowed for Budget Account | |
| PubSecBdgtAcctIsCarryFwd | I_BudgetAccountInChtAccts | PubSecBdgtAcctIsCarryFwd | Use Budget Account as Carryforward Account | |
| PubSecBdgtAcctCarryFwdTo | I_BudgetAccountInChtAccts | PubSecBdgtAcctCarryFwdTo | Carry Forward Budget Account To Account | |
| CashLedgerAccount | I_BudgetAccountInChtAccts | CashLedgerAccount | Cash Origin Account | |
| _Text | I_BudgetAccountInChtAccts | _Text | ||
| _PubSecBdgtCnsmpnType | I_BudgetAccountInChtAccts | _PubSecBdgtCnsmpnType | ||
| _PubSecBdgtAcctRevnExpnCode | I_BudgetAccountInChtAccts | _PubSecBdgtAcctRevnExpnCode | ||
| _PubSecBdgtAcctCarryFwdTo | I_BudgetAccountInChtAccts | _PubSecBdgtAcctCarryFwdTo | ||
| _CarryForwardBudgetAccount | I_BudgetAccountInChtAccts | _CarryForwardBudgetAccount | ||
| _CashLedgerAccount | I_BudgetAccountInChtAccts | _CashLedgerAccount | ||
| _BudgetAccountHierarchyNode | I_BudgetAccountInChtAccts | _BudgetAccountHierarchyNode | ||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _ChartOfAccountsText | _ChartOfAccountsText | |||
| _PubSecBudgetAccountText | _PubSecBudgetAccountText | |||
| _BudgetAccountText | _BudgetAccountText | |||
| _PubSecBudgetAccountCoCode | _PubSecBudgetAccountCoCode |
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 I_PubSecBudgetAccount.
-- 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: IPSMS4CBDACCT
CREATE VIEW I_PubSecBudgetAccount AS
SELECT
Main.PubSecBudgetAccount AS PubSecBudgetAccount,
cast( GLAccountInCompanyCode.CompanyCode as psm_bdgt_account_cocode preserving type ) AS PubSecBudgetAccountCoCode,
Main.ChartOfAccounts AS ChartOfAccounts,
Main.PubSecBudgetCnsmpnType AS PubSecBudgetCnsmpnType,
Main.PubSecBdgtAcctRevnExpnCode AS PubSecBdgtAcctRevnExpnCode,
Main.PubSecBudgetIsRelevant AS PubSecBudgetIsRelevant,
Main.PubSecBdgtAcctIsPostgAllowed AS PubSecBdgtAcctIsPostgAllowed,
Main.PubSecBdgtAcctIsBdgtAllowed AS PubSecBdgtAcctIsBdgtAllowed,
Main.PubSecBdgtAcctIsCarryFwd AS PubSecBdgtAcctIsCarryFwd,
Main.PubSecBdgtAcctCarryFwdTo AS PubSecBdgtAcctCarryFwdTo,
Main.CashLedgerAccount AS CashLedgerAccount,
Main._Text AS _Text,
Main._PubSecBdgtCnsmpnType AS _PubSecBdgtCnsmpnType,
Main._PubSecBdgtAcctRevnExpnCode AS _PubSecBdgtAcctRevnExpnCode,
Main._PubSecBdgtAcctCarryFwdTo AS _PubSecBdgtAcctCarryFwdTo,
Main._CarryForwardBudgetAccount AS _CarryForwardBudgetAccount,
Main._CashLedgerAccount AS _CashLedgerAccount,
Main._BudgetAccountHierarchyNode AS _BudgetAccountHierarchyNode
FROM I_BudgetAccountInChtAccts AS Main
INNER JOIN P_Glacct_In_Cc AS GLAccountInCompanyCode ON /* join condition not captured in parsed metadata */
INNER JOIN t001 AS CompanyCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ChartOfAccountsText AS _ChartOfAccountsText ON ChartOfAccounts = _ChartOfAccountsText.ChartOfAccounts -- association [0..*]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_PubSecBudgetAccountText AS _BudgetAccountText ON PubSecBudgetAccount = _BudgetAccountText.PubSecBudgetAccount AND PubSecBudgetAccountCoCode = _BudgetAccountText.PubSecBudgetAccountCoCode -- association [0..*]
LEFT OUTER JOIN I_GlAccountTextInCompanycode AS _PubSecBudgetAccountText ON PubSecBudgetAccount = _PubSecBudgetAccountText.GLAccount AND PubSecBudgetAccountCoCode = _PubSecBudgetAccountText.CompanyCode -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _PubSecBudgetAccountCoCode ON PubSecBudgetAccountCoCode = _PubSecBudgetAccountCoCode.CompanyCode -- 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