I_EarmarkedFundsDocument
Earmarked Funds Document
I_EarmarkedFundsDocument (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Earmarked Funds · Accounting and Financial Close
I_EarmarkedFundsDocument is a Basic CDS View (Dimension) that provides data about "Earmarked Funds Document" in SAP S/4HANA. It reads from 1 data source (kblk) and exposes 62 fields with key field EarmarkedFundsDocument. It has 23 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Accounting and Financial Close |
| Application Component | FI-FM |
| Capabilities | Analytical Dimension, Data Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities |
| Package | Accounting and Financial Close 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 (1)
| Source | Alias | Join Type |
|---|---|---|
| kblk | efdoc | from |
Associations (23)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_EarmarkedFundsDocTotals | _EarmarkedFundsDocTotals | $projection.EarmarkedFundsDocument = _EarmarkedFundsDocTotals.EarmarkedFundsDocument |
| [0..1] | I_FiscalCalDateForFinMgmtArea | _FiscalCalDateForFinMgmtArea | $projection.FinancialManagementArea = _FiscalCalDateForFinMgmtArea.FinancialManagementArea and $projection.PostingDate = _FiscalCalDateForFinMgmtArea.CalendarDate |
| [0..1] | I_FiscalYearForFinMgmtArea | _FiscalYearForFinMgmtArea | $projection.FinancialManagementArea = _FiscalYearForFinMgmtArea.FinancialManagementArea and _FiscalYearForFinMgmtArea.FinMgmtAreaFiscalYearStartDate <= $projection.PostingDate and _FiscalYearForFinMgmtArea.FinMgmtAreaFiscalYearEndDate >= $projection.PostingDate |
| [0..1] | I_FiscalYearForCompanyCode | _FiscalYearForCompanyCode | $projection.CompanyCode = _FiscalYearForCompanyCode.CompanyCode and _FiscalYearForCompanyCode.FiscalYearStartDate <= $projection.PostingDate and _FiscalYearForCompanyCode.FiscalYearEndDate >= $projection.PostingDate |
| [1..1] | I_EarmarkedFunds_DocCategory | _EarmarkedFundsDocCategory | $projection.EarmarkedFundsDocumentCategory = _EarmarkedFundsDocCategory.EarmarkedFundsDocumentCategory |
| [0..*] | I_EarmarkedFunds_DocCatText | _EarmarkedFundsDocCatText | $projection.EarmarkedFundsDocumentCategory = _EarmarkedFundsDocCatText.EarmarkedFundsDocumentCategory |
| [0..1] | I_EarmarkedFunds_DocType | _EarmarkedFundsDocType | $projection.EarmarkedFundsDocumentType = _EarmarkedFundsDocType.EarmarkedFundsDocumentType and $projection.EarmarkedFundsDocumentCategory = _EarmarkedFundsDocType.EarmarkedFundsDocumentCategory |
| [0..*] | I_EarmarkedFunds_DocTypeText | _EarmarkedFundsDocTypeText | $projection.EarmarkedFundsDocumentCategory = _EarmarkedFundsDocTypeText.EarmarkedFundsDocumentCategory and $projection.EarmarkedFundsDocumentType = _EarmarkedFundsDocTypeText.EarmarkedFundsDocumentType |
| [0..1] | I_EarmarkedFunds_MnlEditBlk | _EarmarkedFundsMnlEditBlk | $projection.EarmarkedFundsManualEditBlock = _EarmarkedFundsMnlEditBlk.EarmarkedFundsManualEditBlock |
| [0..1] | I_EarmarkedFunds_DcsnReason | _EarmarkedFundsDcsnReason | $projection.EarmarkedFundsDecisionReason = _EarmarkedFundsDcsnReason.EarmarkedFundsDecisionReason |
| [0..1] | I_EarmarkedFundsDocEntryStatus | _EarmarkedFundsDocEntryStatus | $projection.EarmarkedFundsDocEntryStatus = _EarmarkedFundsDocEntryStatus.EarmarkedFundsDocEntryStatus |
| [0..1] | I_ReferenceDocumentType | _ReferenceDocumentType | $projection.ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType |
| [0..*] | I_ReferenceDocumentTypeText | _ReferenceDocumentTypeText | $projection.ReferenceDocumentType = _ReferenceDocumentTypeText.ReferenceDocumentType |
| [0..1] | I_Currency | _TransactionCurrency | $projection.TransactionCurrency = _TransactionCurrency.Currency |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_FinancialManagementArea | _FinancialManagementArea | $projection.FinancialManagementArea = _FinancialManagementArea.FinancialManagementArea |
| [0..1] | I_User | _EmrkdFndsDocCreatedByUser | $projection.EmrkdFndsDocCreatedByUser = _EmrkdFndsDocCreatedByUser.UserID |
| [0..1] | I_User | _EmrkdFndsDocLastChangedByUser | $projection.EmrkdFndsDocLastChangedByUser = _EmrkdFndsDocLastChangedByUser.UserID |
| [0..1] | I_LogicalSystem | _RefDocumentLogicalSystem | $projection.ReferenceDocumentLogicalSystem = _RefDocumentLogicalSystem.LogicalSystem |
| [1] | E_EarmarkedFundsDocument | _Extension | $projection.EarmarkedFundsDocument = _Extension.EarmarkedFundsDocument |
| [0..*] | I_EarmarkedFundsDocumentItem | _EarmarkedFundsDocumentItem | |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| Analytics.internalName | #LOCAL | view | |
| Analytics.technicalName | IEMRKDFNDSDOC | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.representativeKey | EarmarkedFundsDocument | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AbapCatalog.extensibility.elementSuffix | EFD | view | |
| AbapCatalog.extensibility.quota.maximumFields | 200 | view | |
| AbapCatalog.extensibility.quota.maximumBytes | 20000 | view | |
| ObjectModel.sapObjectNodeType.name | EarmarkedFundsDocument | view | |
| EndUserText.label | Earmarked Funds Document | view |
Fields (62)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EarmarkedFundsDocument | Document Number for Earmarked Funds | ||
| EarmarkedFundsDocumentCategory | Document Category of an Earmarked Funds Document | |||
| EarmarkedFundsDocumentType | Earmarked Fund Document Type | |||
| CompanyCode | bukrs | Company Code | ||
| FinancialManagementArea | fikrs | Financial Management Area | ||
| ControllingArea | kokrs | Controlling Area | ||
| TransactionCurrency | waers | Transaction Currency | ||
| CompanyCodeCurrency | hwaer | Local currency key | ||
| EarmarkedFundsDocReference | xblnr | Reference Document Number | ||
| EarmarkedFundsDocReference2 | fmre_xblnr2 | Reference 2 | ||
| EarmarkedFundsDocReference3 | fmre_xblnr3 | Reference 3 | ||
| EarmarkedFundsHeaderText | ktext | Document Header Text | ||
| EarmarkedFundsHasLongText | ltext | Long Text Exists | ||
| PostingDate | budat | Posting Date in the Document | ||
| DocumentDate | bldat | Document Date in Document | ||
| ExchangeRateDate | wwert | Translation Date | ||
| AbsoluteExchangeRate | Absolute Exchange Rate | |||
| ExchRateIsIndirectQuotation | Exchange Rate Is Indirect Quotation | |||
| EmrkdFndsDocCreatedByUser | kerfas | Entered By | ||
| EmrkdFndsDocCreationDate | kerdat | Entered On | ||
| EmrkdFndsDocLastChangedByUser | kaende | Last Changed By | ||
| EmrkdFndsDocLastChangeDate | kaedat | Date of Last Change | ||
| EmrkdFndsDocLastChangeDateTime | lastchangedatetime | Change Date and Time | ||
| OrgnlBusinessTransactionType | orgvg | Original CO Business Transaction | ||
| ReferenceDocumentType | rftyp | Reference procedure | ||
| ReferenceDocument | rfblnr | Reference Doc. Number | ||
| ReferenceDocumentContext | rforg | Reference Organizational Units | ||
| ReferenceDocumentLogicalSystem | rfsys | Logical system of source document | ||
| EmrkdFndsIsMarkedForArchiving | Indicator: Earmarked for Archiving | |||
| EmrkdFndsHasNegativeAmounts | negval | Indicator: Document Has Negative Amounts | ||
| EmrkdFndsIsBlockedAgainstUsage | blkkz | Blocking Indicator (Header) | ||
| EarmarkedFundsIsCompleted | fexec | Indicator: Final Completion (Paid) | ||
| EarmarkedFundsIsApproved | wkapk | Indicator: Document Is Approved | ||
| EmrkdFndsWasAlreadyAprvdOnce | wkaok | Document Already Approved Once | ||
| EmrkdFndsHasAddlCnsmpnLogic | additiv_cons_log | Additive Consumption Logic of Earmarked Funds | ||
| EarmarkedFundsDecisionReason | fmreason | Reason for Decision for Workflow | ||
| EarmarkedFundsStartWorkflow | Start Approval by Workflow | |||
| EarmarkedFundsManualEditBlock | doclock | Funds Precommitment Document Block | ||
| EmrkdFndsHasValueAdjustments | pmdocs | Changes to Doc. Amounts Only Using Value Adjustment Docs | ||
| EarmarkedFundsDocEntryStatus | mvstat | Document Entry Status (Posted, Parked) | ||
| _EarmarkedFundsDocumentItem | _EarmarkedFundsDocumentItem | |||
| _EarmarkedFundsDocTotals | _EarmarkedFundsDocTotals | |||
| _FiscalCalDateForFinMgmtArea | _FiscalCalDateForFinMgmtArea | |||
| _FiscalYearForFinMgmtArea | _FiscalYearForFinMgmtArea | |||
| _FiscalYearForCompanyCode | _FiscalYearForCompanyCode | |||
| _EarmarkedFundsDocCategory | _EarmarkedFundsDocCategory | |||
| _EarmarkedFundsDocCatText | _EarmarkedFundsDocCatText | |||
| _EarmarkedFundsDocType | _EarmarkedFundsDocType | |||
| _EarmarkedFundsDocTypeText | _EarmarkedFundsDocTypeText | |||
| _EarmarkedFundsMnlEditBlk | _EarmarkedFundsMnlEditBlk | |||
| _EarmarkedFundsDcsnReason | _EarmarkedFundsDcsnReason | |||
| _EarmarkedFundsDocEntryStatus | _EarmarkedFundsDocEntryStatus | |||
| _ReferenceDocumentType | _ReferenceDocumentType | |||
| _ReferenceDocumentTypeText | _ReferenceDocumentTypeText | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _CompanyCode | _CompanyCode | |||
| _FinancialManagementArea | _FinancialManagementArea | |||
| _ControllingArea | _ControllingArea | |||
| _EmrkdFndsDocLastChangedByUser | _EmrkdFndsDocLastChangedByUser | |||
| _EmrkdFndsDocCreatedByUser | _EmrkdFndsDocCreatedByUser | |||
| _RefDocumentLogicalSystem | _RefDocumentLogicalSystem |
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_EarmarkedFundsDocument.
-- 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.
CREATE VIEW I_EarmarkedFundsDocument AS
SELECT
cast ( belnr as fmis_earmarkedfundsdoc preserving type ) AS EarmarkedFundsDocument,
cast ( bltyp as fmis_efd_doccategory preserving type ) AS EarmarkedFundsDocumentCategory,
cast ( blart as fmre_blart preserving type ) AS EarmarkedFundsDocumentType,
bukrs AS CompanyCode,
fikrs AS FinancialManagementArea,
kokrs AS ControllingArea,
waers AS TransactionCurrency,
hwaer AS CompanyCodeCurrency,
xblnr AS EarmarkedFundsDocReference,
fmre_xblnr2 AS EarmarkedFundsDocReference2,
fmre_xblnr3 AS EarmarkedFundsDocReference3,
ktext AS EarmarkedFundsHeaderText,
ltext AS EarmarkedFundsHasLongText,
budat AS PostingDate,
bldat AS DocumentDate,
wwert AS ExchangeRateDate,
cast( abs ( kursf ) as fis_absolute_exchangerate preserving type) AS AbsoluteExchangeRate,
cast( case when kursf < 0 then 'X' else ' ' end as fis_indirect_quotation preserving type) AS ExchRateIsIndirectQuotation,
kerfas AS EmrkdFndsDocCreatedByUser,
kerdat AS EmrkdFndsDocCreationDate,
kaende AS EmrkdFndsDocLastChangedByUser,
kaedat AS EmrkdFndsDocLastChangeDate,
lastchangedatetime AS EmrkdFndsDocLastChangeDateTime,
orgvg AS OrgnlBusinessTransactionType,
rftyp AS ReferenceDocumentType,
rfblnr AS ReferenceDocument,
rforg AS ReferenceDocumentContext,
rfsys AS ReferenceDocumentLogicalSystem,
cast ( kloekz as kblkloekz preserving type ) AS EmrkdFndsIsMarkedForArchiving,
negval AS EmrkdFndsHasNegativeAmounts,
blkkz AS EmrkdFndsIsBlockedAgainstUsage,
fexec AS EarmarkedFundsIsCompleted,
wkapk AS EarmarkedFundsIsApproved,
wkaok AS EmrkdFndsWasAlreadyAprvdOnce,
additiv_cons_log AS EmrkdFndsHasAddlCnsmpnLogic,
fmreason AS EarmarkedFundsDecisionReason,
cast ( wf_start as fmis_efd_start_approval_wf preserving type ) AS EarmarkedFundsStartWorkflow,
doclock AS EarmarkedFundsManualEditBlock,
pmdocs AS EmrkdFndsHasValueAdjustments,
mvstat AS EarmarkedFundsDocEntryStatus
FROM kblk AS efdoc
LEFT OUTER JOIN I_EarmarkedFundsDocTotals AS _EarmarkedFundsDocTotals ON EarmarkedFundsDocument = _EarmarkedFundsDocTotals.EarmarkedFundsDocument -- association [0..1]
LEFT OUTER JOIN I_FiscalCalDateForFinMgmtArea AS _FiscalCalDateForFinMgmtArea ON FinancialManagementArea = _FiscalCalDateForFinMgmtArea.FinancialManagementArea AND PostingDate = _FiscalCalDateForFinMgmtArea.CalendarDate -- association [0..1]
LEFT OUTER JOIN I_FiscalYearForFinMgmtArea AS _FiscalYearForFinMgmtArea ON FinancialManagementArea = _FiscalYearForFinMgmtArea.FinancialManagementArea AND _FiscalYearForFinMgmtArea.FinMgmtAreaFiscalYearStartDate <= PostingDate AND _FiscalYearForFinMgmtArea.FinMgmtAreaFiscalYearEndDate >= PostingDate -- association [0..1]
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYearForCompanyCode ON CompanyCode = _FiscalYearForCompanyCode.CompanyCode AND _FiscalYearForCompanyCode.FiscalYearStartDate <= PostingDate AND _FiscalYearForCompanyCode.FiscalYearEndDate >= PostingDate -- association [0..1]
LEFT OUTER JOIN I_EarmarkedFunds_DocCategory AS _EarmarkedFundsDocCategory ON EarmarkedFundsDocumentCategory = _EarmarkedFundsDocCategory.EarmarkedFundsDocumentCategory -- association [1..1]
LEFT OUTER JOIN I_EarmarkedFunds_DocCatText AS _EarmarkedFundsDocCatText ON EarmarkedFundsDocumentCategory = _EarmarkedFundsDocCatText.EarmarkedFundsDocumentCategory -- association [0..*]
LEFT OUTER JOIN I_EarmarkedFunds_DocType AS _EarmarkedFundsDocType ON EarmarkedFundsDocumentType = _EarmarkedFundsDocType.EarmarkedFundsDocumentType AND EarmarkedFundsDocumentCategory = _EarmarkedFundsDocType.EarmarkedFundsDocumentCategory -- association [0..1]
LEFT OUTER JOIN I_EarmarkedFunds_DocTypeText AS _EarmarkedFundsDocTypeText ON EarmarkedFundsDocumentCategory = _EarmarkedFundsDocTypeText.EarmarkedFundsDocumentCategory AND EarmarkedFundsDocumentType = _EarmarkedFundsDocTypeText.EarmarkedFundsDocumentType -- association [0..*]
LEFT OUTER JOIN I_EarmarkedFunds_MnlEditBlk AS _EarmarkedFundsMnlEditBlk ON EarmarkedFundsManualEditBlock = _EarmarkedFundsMnlEditBlk.EarmarkedFundsManualEditBlock -- association [0..1]
LEFT OUTER JOIN I_EarmarkedFunds_DcsnReason AS _EarmarkedFundsDcsnReason ON EarmarkedFundsDecisionReason = _EarmarkedFundsDcsnReason.EarmarkedFundsDecisionReason -- association [0..1]
LEFT OUTER JOIN I_EarmarkedFundsDocEntryStatus AS _EarmarkedFundsDocEntryStatus ON EarmarkedFundsDocEntryStatus = _EarmarkedFundsDocEntryStatus.EarmarkedFundsDocEntryStatus -- association [0..1]
LEFT OUTER JOIN I_ReferenceDocumentType AS _ReferenceDocumentType ON ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType -- association [0..1]
LEFT OUTER JOIN I_ReferenceDocumentTypeText AS _ReferenceDocumentTypeText ON ReferenceDocumentType = _ReferenceDocumentTypeText.ReferenceDocumentType -- association [0..*]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_FinancialManagementArea AS _FinancialManagementArea ON FinancialManagementArea = _FinancialManagementArea.FinancialManagementArea -- association [0..1]
LEFT OUTER JOIN I_User AS _EmrkdFndsDocCreatedByUser ON EmrkdFndsDocCreatedByUser = _EmrkdFndsDocCreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _EmrkdFndsDocLastChangedByUser ON EmrkdFndsDocLastChangedByUser = _EmrkdFndsDocLastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_LogicalSystem AS _RefDocumentLogicalSystem ON ReferenceDocumentLogicalSystem = _RefDocumentLogicalSystem.LogicalSystem -- association [0..1]
LEFT OUTER JOIN E_EarmarkedFundsDocument AS _Extension ON EarmarkedFundsDocument = _Extension.EarmarkedFundsDocument -- association [1]
LEFT OUTER JOIN I_EarmarkedFundsDocumentItem AS _EarmarkedFundsDocumentItem ON /* condition not available in parsed metadata */ -- association [0..*]
;
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