I_PubSecBudgetAccount

DDL: I_PUBSECBUDGETACCOUNT SQL: IPSMS4CBDACCT Type: view BASIC

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

CategoryCDS Views for Master Data
Data CategoryDimension
StatusReleased
Purpose
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.

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentPSM-FM-MD
CapabilitiesAnalytical Dimension
PackageCross Applications for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (3)

SourceAliasJoin Type
t001 CompanyCode inner
P_Glacct_In_Cc GLAccountInCompanyCode inner
I_BudgetAccountInChtAccts Main from

Associations (5)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;