P_BudgetEntrAndChgDocBasic

DDL: P_BUDGETENTRANDCHGDOCBASIC SQL: PFMBDGECDOCB Type: view BASIC

P_BudgetEntrAndChgDocBasic is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (fmbdp, fmbh, fmbl) and exposes 53 fields with key fields BudgetChangeDocument, FinMgmtAreaFiscalYear, FinancialManagementArea, BudgetCategory, BudgetChangeDocumentItem. It has 2 associations to related views.

Data Sources (3)

SourceAliasJoin Type
fmbdp chg from
fmbh hdr inner
fmbl itm inner

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_FinancialManagementArea _FinMgmtArea $projection.FinancialManagementArea = _FinMgmtArea.FinancialManagementArea
[0..1] I_Currency _TransactionCurrency $projection.TransactionCurrency = _TransactionCurrency.Currency

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PFMBDGECDOCB view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view

Fields (53)

KeyFieldSource TableSource FieldDescription
KEY BudgetChangeDocument
KEY FinMgmtAreaFiscalYear fmbdp ryear Ref. Year1
KEY FinancialManagementArea fmbdp rfikrs FM Area
KEY BudgetCategory
KEY BudgetChangeDocumentItem
BudgetDocumentYear
BudgetEntryDocument Entry Document Number
BudgetEntryDocumentItem Entry Document Line
BudgetedFund
BudgetedFundsCenter
BudgetedCommitmentItem
BudgetedFunctionalArea
BudgetedGrantID
BudgetedFundedProgram
BudgetedBudgetPeriod
BudgetedFundsMgmtCustomerField
TransactionCurrency
FinancialManagementAreaCrcy _FinMgmtArea FinancialManagementAreaCrcy FM Area Currency
CommitmentItemCategory fmbdp ctem_category_9 Commitment Item Cat.
BdgtCashEffectivityFiscalYear
BudgetValueType fmbdp valtype_9 BCS Value Type
BudgetWorkFlowStatus fmbdp wfstate_9 Workflow Status
InternalBudgetingProcess fmbdp process_9 Budgeting Process
BudgetType fmbdp budtype_9 Budget Type
BudgetVersion
BudgetChangeDocCreationDate
BudgetEntryDocumentType fmbh doctype TSW Document type
BudgetEntryDocumentFamily fmbh docfam Document Family
OriginalBudgetingApplication fmbh techorg Original Application
CreationDate fmbh crtdate Created On
LastChangeDate fmbh chgdate Last Changed On
BudgetEntryDocumentDate fmbh docdate Document Date
BudgetEntryDocumentDescription fmbh text50 Text
BudgetEntryDocumentStatus fmbh docstate Document Status
BdgtEntryDocReversalStatus fmbh revstate Reversal Status
ReversalReason fmbh reason_rev Reversal Reason
ReversalRefBudgetEntryDocument fmbh rev_refnr Reversal Ref. Nr.
LogicalSystem fmbh logsys Source system
FiscalTreasuryLoanCohort fmbh cohort Year Cohort
PublicLaw fmbh publaw Public Law
FiscalTreasuryLegislationType fmbh legis Legislation
FiscalTreasuryAgency fmbh transfer_agency Transfer Agency
FiscalTreasuryBudgetAccount fmbh transfer_account Trnsf acct for c.pmt
PartnerCompany fmbh rcomp Trading Partner
BudgetEntryDocDistributionKey fmbl distkey Distribution Key
BudgetEntryDocItemIsAdditional fmbl flg_added Additional Line
ReferenceDocument fmbh docnr Well doc.no.
ReferenceDocumentFiscalYear
ReferenceDocumentItem fmbdp refdocln Reference Item
ReferenceDocumentType fmbdp awtyp Reference Document Type
ReferenceDocumentContext fmbdp aworg Refer. Org.Unit
_TransactionCurrency _TransactionCurrency
_FinMgmtArea _FinMgmtArea

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_BudgetEntrAndChgDocBasic.
-- 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: PFMBDGECDOCB

CREATE VIEW P_BudgetEntrAndChgDocBasic AS
SELECT
  cast( chg.docnr as buku_chg_docnr preserving type ) AS BudgetChangeDocument,
  chg.ryear AS FinMgmtAreaFiscalYear,
  chg.rfikrs AS FinancialManagementArea,
  cast( chg.rldnr as buku_budcat preserving type ) AS BudgetCategory,
  cast( chg.docln as buku_chg_docln preserving type ) AS BudgetChangeDocumentItem,
  cast( hdr.docyear as bued_entr_docyear preserving type ) AS BudgetDocumentYear,
  cast( hdr.docnr as bued_entr_docnr preserving type ) AS BudgetEntryDocument,
  cast( itm.docln as bued_entr_docln preserving type ) AS BudgetEntryDocumentItem,
  cast( chg.rfund as fmis_budgeted_fund preserving type ) AS BudgetedFund,
  cast( chg.rfundsctr as fmis_budgeted_funds_center preserving type ) AS BudgetedFundsCenter,
  cast( chg.rcmmtitem as fmis_budgeted_cmtmt_item preserving type ) AS BudgetedCommitmentItem,
  cast( chg.rfuncarea as fmis_budgeted_functional_area preserving type ) AS BudgetedFunctionalArea,
  cast( chg.rgrant_nbr as fmis_budgeted_grant_nbr preserving type ) AS BudgetedGrantID,
  cast( chg.rmeasure as fmis_budgeted_funded_program preserving type ) AS BudgetedFundedProgram,
  cast( chg.budget_pd_9 as fmis_budgeted_budget_period preserving type ) AS BudgetedBudgetPeriod,
  cast( chg.ruserdim as fmis_budgeted_userdim preserving type ) AS BudgetedFundsMgmtCustomerField,
  cast( chg.rtcur as fis_rwcur preserving type ) AS TransactionCurrency,
  _FinMgmtArea.FinancialManagementAreaCrcy AS FinancialManagementAreaCrcy,
  chg.ctem_category_9 AS CommitmentItemCategory,
  cast( chg.ceffyear_9 as fm_ceffyear_bcs preserving type ) AS BdgtCashEffectivityFiscalYear,
  chg.valtype_9 AS BudgetValueType,
  chg.wfstate_9 AS BudgetWorkFlowStatus,
  chg.process_9 AS InternalBudgetingProcess,
  chg.budtype_9 AS BudgetType,
  cast( chg.rvers as buku_version preserving type ) AS BudgetVersion,
  cast( chg.cpudt as buku_chg_cpudt preserving type ) AS BudgetChangeDocCreationDate,
  hdr.doctype AS BudgetEntryDocumentType,
  hdr.docfam AS BudgetEntryDocumentFamily,
  hdr.techorg AS OriginalBudgetingApplication,
  hdr.crtdate AS CreationDate,
  hdr.chgdate AS LastChangeDate,
  hdr.docdate AS BudgetEntryDocumentDate,
  hdr.text50 AS BudgetEntryDocumentDescription,
  hdr.docstate AS BudgetEntryDocumentStatus,
  hdr.revstate AS BdgtEntryDocReversalStatus,
  hdr.reason_rev AS ReversalReason,
  hdr.rev_refnr AS ReversalRefBudgetEntryDocument,
  hdr.logsys AS LogicalSystem,
  hdr.cohort AS FiscalTreasuryLoanCohort,
  hdr.publaw AS PublicLaw,
  hdr.legis AS FiscalTreasuryLegislationType,
  hdr.transfer_agency AS FiscalTreasuryAgency,
  hdr.transfer_account AS FiscalTreasuryBudgetAccount,
  hdr.rcomp AS PartnerCompany,
  itm.distkey AS BudgetEntryDocDistributionKey,
  itm.flg_added AS BudgetEntryDocItemIsAdditional,
  hdr.docnr AS ReferenceDocument,
  cast( hdr.docyear as bued_entr_docyear preserving type ) AS ReferenceDocumentFiscalYear,
  chg.refdocln AS ReferenceDocumentItem,
  chg.awtyp AS ReferenceDocumentType,
  chg.aworg AS ReferenceDocumentContext
FROM fmbdp AS chg
INNER JOIN fmbh AS hdr ON /* join condition not captured in parsed metadata */
INNER JOIN fmbl AS itm ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FinancialManagementArea AS _FinMgmtArea ON FinancialManagementArea = _FinMgmtArea.FinancialManagementArea  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency  -- association [0..1]
;