I_PubSecCmtmtAgingGroup

DDL: I_PUBSECCMTMTAGINGGROUP SQL: IPUBSECCMTAGING Type: view COMPOSITE

Open commitment aging grouping view

I_PubSecCmtmtAgingGroup is a Composite CDS View that provides data about "Open commitment aging grouping view" in SAP S/4HANA. It reads from 2 data sources (I_PubSecCmtmtAgingBasic, I_PubSecCmtmtActlItemCube) and exposes 72 fields with key fields Ledger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem.

Data Sources (2)

SourceAliasJoin Type
I_PubSecCmtmtAgingBasic Ext inner
I_PubSecCmtmtActlItemCube Item from

Parameters (3)

NameTypeDefault
P_CurrentDate sydats
P_PubSecOpnCmtmtTme1 psm_open_cmtmt_param_days
P_PubSecOpnCmtmtTme2 psm_open_cmtmt_param_slice

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IPUBSECCMTAGING view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Open commitment aging grouping view view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
AbapCatalog.preserveKey true view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (72)

KeyFieldSource TableSource FieldDescription
KEY Ledger I_PubSecCmtmtActlItemCube Ledger Ledger
KEY CompanyCode I_PubSecCmtmtActlItemCube CompanyCode Receiver Company Code
KEY FiscalYear I_PubSecCmtmtActlItemCube FiscalYear G/L Fiscal Year
KEY AccountingDocument I_PubSecCmtmtActlItemCube AccountingDocument Journal Entry
KEY LedgerGLLineItem I_PubSecCmtmtActlItemCube LedgerGLLineItem Journal Entry Item
FinancialManagementArea I_PubSecCmtmtActlItemCube FinancialManagementArea FM Area
ControllingArea I_PubSecCmtmtActlItemCube ControllingArea Controlling Area
Fund I_PubSecCmtmtActlItemCube Fund Sender Fund
FundType I_PubSecCmtmtActlItemCube FundType Fund Type
GLAccount I_PubSecCmtmtActlItemCube GLAccount General Ledger
ChartOfAccounts I_PubSecCmtmtActlItemCube ChartOfAccounts Node Class
CostCenter I_PubSecCmtmtActlItemCube CostCenter Cost Center
ProfitCenter I_PubSecCmtmtActlItemCube ProfitCenter Profit Center
FunctionalArea I_PubSecCmtmtActlItemCube FunctionalArea Sendr Fctl Area
BudgetPeriod I_PubSecCmtmtActlItemCube BudgetPeriod Budget Period
ReferencePurchaseOrderCategory I_PubSecCmtmtActlItemCube ReferencePurchaseOrderCategory
GrantID I_PubSecCmtmtActlItemCube GrantID Sender Grant
SponsoredProgram I_PubSecCmtmtActlItemCube SponsoredProgram Sponsored Program
SponsoredClass I_PubSecCmtmtActlItemCube SponsoredClass Sponsored Class
PubSecBudgetAccountCoCode I_PubSecCmtmtActlItemCube PubSecBudgetAccountCoCode Company Code for Budget Account
PubSecBudgetAccount I_PubSecCmtmtActlItemCube PubSecBudgetAccount Budget Account
PubSecBdgtAcctRevnExpnCode I_PubSecCmtmtActlItemCube PubSecBdgtAcctRevnExpnCode Expense/Revenue
WBSElementInternalID I_PubSecCmtmtActlItemCube WBSElementInternalID WBS Internal ID
WBSElementExternalID I_PubSecCmtmtActlItemCube WBSElementExternalID WBS Element External ID
PubSecBudgetCnsmpnType I_PubSecCmtmtActlItemCube PubSecBudgetCnsmpnType Budget Consumption Type
Segment I_PubSecCmtmtActlItemCube Segment Segment number
SourceReferenceDocument I_PubSecCmtmtActlItemCube SourceReferenceDocument Reference Doc.
SourceReferenceDocumentItem I_PubSecCmtmtActlItemCube SourceReferenceDocumentItem Ref. Doc. Item
SourceLogicalSystem I_PubSecCmtmtActlItemCube SourceLogicalSystem
SourceReferenceDocumentCntxt I_PubSecCmtmtActlItemCube SourceReferenceDocumentCntxt
SourceReferenceDocSubitem I_PubSecCmtmtActlItemCube SourceReferenceDocSubitem
SourceReferenceDocumentType I_PubSecCmtmtActlItemCube SourceReferenceDocumentType Ref. procedure
PubSecOpenCmtmtAgingDate I_PubSecCmtmtAgingBasic PubSecOpenCmtmtAgingDate
PurchasingDocument I_PubSecCmtmtActlItemCube PurchasingDocument Purchasing Document
PurchasingDocumentItem I_PubSecCmtmtActlItemCube PurchasingDocumentItem Purchasing Doc. Item
AccountAssignmentNumber I_PubSecCmtmtActlItemCube AccountAssignmentNumber Account Assgmt No.
TransactionCurrency I_PubSecCmtmtActlItemCube TransactionCurrency Transaction Currency
PubSecOpnCmtmtAmtInTransCrcy
CompanyCodeCurrency I_PubSecCmtmtActlItemCube CompanyCodeCurrency Local Currency
PubSecOpnCmtmtAmtInCoCodeCrcy
GlobalCurrency I_PubSecCmtmtActlItemCube GlobalCurrency GM Billing Element: Global Currency
PubSecOpnCmtmtAmtInGlobCrcy
_CompanyCode I_PubSecCmtmtActlItemCube _CompanyCode
_Fund I_PubSecCmtmtActlItemCube _Fund
_FundType I_PubSecCmtmtActlItemCube _FundType
_TransactionCurrency I_PubSecCmtmtActlItemCube _TransactionCurrency
_CompanyCodeCurrency I_PubSecCmtmtActlItemCube _CompanyCodeCurrency
_FiscalYear I_PubSecCmtmtActlItemCube _FiscalYear
_FinancialManagementArea I_PubSecCmtmtActlItemCube _FinancialManagementArea
_CostCenter I_PubSecCmtmtActlItemCube _CostCenter
_CurrentCostCenter I_PubSecCmtmtActlItemCube _CurrentCostCenter
_GlobalCurrency I_PubSecCmtmtActlItemCube _GlobalCurrency
_GLAccountInChartOfAccounts I_PubSecCmtmtActlItemCube _GLAccountInChartOfAccounts
_GLAccountInCompanyCode I_PubSecCmtmtActlItemCube _GLAccountInCompanyCode
_BudgetPeriod I_PubSecCmtmtActlItemCube _BudgetPeriod
_FunctionalArea I_PubSecCmtmtActlItemCube _FunctionalArea
_Grant I_PubSecCmtmtActlItemCube _Grant
_ProfitCenter I_PubSecCmtmtActlItemCube _ProfitCenter
_CurrentProfitCenter I_PubSecCmtmtActlItemCube _CurrentProfitCenter
_Segment I_PubSecCmtmtActlItemCube _Segment
_SourceReferenceDocumentType I_PubSecCmtmtActlItemCube _SourceReferenceDocumentType
_PubSecBdgtCnsmpnType I_PubSecCmtmtActlItemCube _PubSecBdgtCnsmpnType
_PubSecBudgetAccount I_PubSecCmtmtActlItemCube _PubSecBudgetAccount
_PubSecBdgtAcctRevnExpnCode I_PubSecCmtmtActlItemCube _PubSecBdgtAcctRevnExpnCode
_WBSElementBasicData I_PubSecCmtmtActlItemCube _WBSElementBasicData
_WBSElementExternalID I_PubSecCmtmtActlItemCube _WBSElementExternalID
PubSecOpnCmtmtDays
PubSecOpnCmtmtTme1
PubSecOpnCmtmtTme2
PubSecOpnCmtmtTme3
PubSecOpnCmtmtTme4
PubSecOpnCmtmtTme5

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_PubSecCmtmtAgingGroup.
-- 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: IPUBSECCMTAGING
-- Parameters: P_CurrentDate : sydats, P_PubSecOpnCmtmtTme1 : psm_open_cmtmt_param_days, P_PubSecOpnCmtmtTme2 : psm_open_cmtmt_param_slice

CREATE VIEW I_PubSecCmtmtAgingGroup AS
SELECT
  Item.Ledger AS Ledger,
  Item.CompanyCode AS CompanyCode,
  Item.FiscalYear AS FiscalYear,
  Item.AccountingDocument AS AccountingDocument,
  Item.LedgerGLLineItem AS LedgerGLLineItem,
  Item.FinancialManagementArea AS FinancialManagementArea,
  Item.ControllingArea AS ControllingArea,
  Item.Fund AS Fund,
  Item.FundType AS FundType,
  Item.GLAccount AS GLAccount,
  Item.ChartOfAccounts AS ChartOfAccounts,
  Item.CostCenter AS CostCenter,
  Item.ProfitCenter AS ProfitCenter,
  Item.FunctionalArea AS FunctionalArea,
  Item.BudgetPeriod AS BudgetPeriod,
  Item.ReferencePurchaseOrderCategory AS ReferencePurchaseOrderCategory,
  Item.GrantID AS GrantID,
  Item.SponsoredProgram AS SponsoredProgram,
  Item.SponsoredClass AS SponsoredClass,
  Item.PubSecBudgetAccountCoCode AS PubSecBudgetAccountCoCode,
  Item.PubSecBudgetAccount AS PubSecBudgetAccount,
  Item.PubSecBdgtAcctRevnExpnCode AS PubSecBdgtAcctRevnExpnCode,
  Item.WBSElementInternalID AS WBSElementInternalID,
  Item.WBSElementExternalID AS WBSElementExternalID,
  Item.PubSecBudgetCnsmpnType AS PubSecBudgetCnsmpnType,
  Item.Segment AS Segment,
  Item.SourceReferenceDocument AS SourceReferenceDocument,
  Item.SourceReferenceDocumentItem AS SourceReferenceDocumentItem,
  Item.SourceLogicalSystem AS SourceLogicalSystem,
  Item.SourceReferenceDocumentCntxt AS SourceReferenceDocumentCntxt,
  Item.SourceReferenceDocSubitem AS SourceReferenceDocSubitem,
  Item.SourceReferenceDocumentType AS SourceReferenceDocumentType,
  Ext.PubSecOpenCmtmtAgingDate AS PubSecOpenCmtmtAgingDate,
  Item.PurchasingDocument AS PurchasingDocument,
  Item.PurchasingDocumentItem AS PurchasingDocumentItem,
  Item.AccountAssignmentNumber AS AccountAssignmentNumber,
  Item.TransactionCurrency AS TransactionCurrency,
  cast(sum(Item.AmountInTransactionCurrency) as psm_open_cmtmt_amt_trans) AS PubSecOpnCmtmtAmtInTransCrcy,
  Item.CompanyCodeCurrency AS CompanyCodeCurrency,
  cast(sum(Item.AmountInCompanyCodeCurrency) as psm_open_cmtmt_amt_cc) AS PubSecOpnCmtmtAmtInCoCodeCrcy,
  Item.GlobalCurrency AS GlobalCurrency,
  cast(sum(Item.AmountInGlobalCurrency) as psm_open_cmtmt_amt_gc) AS PubSecOpnCmtmtAmtInGlobCrcy,
  Item._CompanyCode AS _CompanyCode,
  Item._Fund AS _Fund,
  Item._FundType AS _FundType,
  Item._TransactionCurrency AS _TransactionCurrency,
  Item._CompanyCodeCurrency AS _CompanyCodeCurrency,
  Item._FiscalYear AS _FiscalYear,
  Item._FinancialManagementArea AS _FinancialManagementArea,
  Item._CostCenter AS _CostCenter,
  Item._CurrentCostCenter AS _CurrentCostCenter,
  Item._GlobalCurrency AS _GlobalCurrency,
  Item._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
  Item._GLAccountInCompanyCode AS _GLAccountInCompanyCode,
  Item._BudgetPeriod AS _BudgetPeriod,
  Item._FunctionalArea AS _FunctionalArea,
  Item._Grant AS _Grant,
  Item._ProfitCenter AS _ProfitCenter,
  Item._CurrentProfitCenter AS _CurrentProfitCenter,
  Item._Segment AS _Segment,
  Item._SourceReferenceDocumentType AS _SourceReferenceDocumentType,
  Item._PubSecBdgtCnsmpnType AS _PubSecBdgtCnsmpnType,
  Item._PubSecBudgetAccount AS _PubSecBudgetAccount,
  Item._PubSecBdgtAcctRevnExpnCode AS _PubSecBdgtAcctRevnExpnCode,
  Item._WBSElementBasicData AS _WBSElementBasicData,
  Item._WBSElementExternalID AS _WBSElementExternalID,
  cast(DATS_DAYS_BETWEEN( Ext.PubSecOpenCmtmtAgingDate, :P_CurrentDate) as psm_open_cmtmt_total_days) AS PubSecOpnCmtmtDays,
  cast(:P_PubSecOpnCmtmtTme1 + :P_PubSecOpnCmtmtTme2 as psm_open_cmtmt_time1) AS PubSecOpnCmtmtTme1,
  cast(:P_PubSecOpnCmtmtTme1 + :P_PubSecOpnCmtmtTme2 + :P_PubSecOpnCmtmtTme2 as psm_open_cmtmt_time2) AS PubSecOpnCmtmtTme2,
  cast(:P_PubSecOpnCmtmtTme1 + :P_PubSecOpnCmtmtTme2 + :P_PubSecOpnCmtmtTme2 +:P_PubSecOpnCmtmtTme2 as psm_open_cmtmt_time3) AS PubSecOpnCmtmtTme3,
  cast(:P_PubSecOpnCmtmtTme1 + :P_PubSecOpnCmtmtTme2 + :P_PubSecOpnCmtmtTme2 +:P_PubSecOpnCmtmtTme2 +:P_PubSecOpnCmtmtTme2 as psm_open_cmtmt_time4 ) AS PubSecOpnCmtmtTme4,
  cast(:P_PubSecOpnCmtmtTme1 + :P_PubSecOpnCmtmtTme2 + :P_PubSecOpnCmtmtTme2 +:P_PubSecOpnCmtmtTme2 +:P_PubSecOpnCmtmtTme2 + :P_PubSecOpnCmtmtTme2 as psm_open_cmtmt_time5) AS PubSecOpnCmtmtTme5
FROM I_PubSecCmtmtActlItemCube AS Item
INNER JOIN I_PubSecCmtmtAgingBasic AS Ext ON /* join condition not captured in parsed metadata */
;