C_EarmarkedFunds_ObjP
Additional Selection - Earmarked Funds
C_EarmarkedFunds_ObjP is a Consumption CDS View that provides data about "Additional Selection - Earmarked Funds" in SAP S/4HANA. It reads from 1 data source (I_EarmarkedFundsDocument) and exposes 55 fields with key field EarmarkedFundsDocument. It has 15 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EarmarkedFundsDocument | I_EarmarkedFundsDocument | from |
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_EarmarkedFundsDocTotals | _EarmarkedFundsDocTotals | $projection.EarmarkedFundsDocument = _EarmarkedFundsDocTotals.EarmarkedFundsDocument |
| [0..*] | C_EarmarkedFundsPredecessorDoc | _EarmarkedFundsPredecessor | $projection.EarmarkedFundsDocument = _EarmarkedFundsPredecessor.EarmarkedFundsDocument |
| [0..*] | C_EarmarkedFundssucessorDoc | _EarmarkedFundsSuccessor | $projection.EarmarkedFundsDocument = _EarmarkedFundsSuccessor.EmrkdFndsItmPredecessor |
| [0..*] | C_EarmarkedFundsJournal | _AccountingJournal | $projection.EarmarkedFundsDocument = _AccountingJournal.EarmarkedFundsDocument |
| [0..*] | C_BudgetaryDocumentForObjP | _BudgetaryDocument | $projection.EarmarkedFundsDocument = _BudgetaryDocument.OriginalReferenceDocument and _BudgetaryDocument.ReferenceDocumentType = 'FMRES' |
| [0..*] | C_EmrkdFndsItmForObjPWST | _EarmarkedFundsItem | $projection.EarmarkedFundsDocument = _EarmarkedFundsItem.EarmarkedFundsDocument |
| [0..*] | C_FiscalYearChangeDocumentWST | _FiscalYearChange | $projection.EarmarkedFundsDocument = _FiscalYearChange.ReferenceDocument and $projection.FinancialManagementArea = _FiscalYearChange.FinancialManagementArea |
| [0..1] | I_ReferenceDocumentTypeText | _ReferenceDocumentTypeText | $projection.ReferenceDocumentType = _ReferenceDocumentTypeText.ReferenceDocumentType and _ReferenceDocumentTypeText.Language = $session.system_language |
| [0..1] | I_EarmarkedFunds_DocCatText | _EarmarkedFundsDocCatText | $projection.EarmarkedFundsDocumentCategory = _EarmarkedFundsDocCatText.EarmarkedFundsDocumentCategory and _EarmarkedFundsDocCatText.Language = $session.system_language |
| [0..1] | I_EarmarkedFunds_DocTypeText | _EarmarkedFundsDocTypeText | $projection.EarmarkedFundsDocumentCategory = _EarmarkedFundsDocTypeText.EarmarkedFundsDocumentCategory and $projection.EarmarkedFundsDocumentType = _EarmarkedFundsDocTypeText.EarmarkedFundsDocumentType and _EarmarkedFundsDocTypeText.Language = $session.system_language |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..*] | C_PurchaseOrderByFMAA | _PurchaseOrder | $projection.EarmarkedFundsDocument = _PurchaseOrder.EarmarkedFundsDocument and $projection.FinancialManagementArea = _PurchaseOrder.FinancialManagementArea |
| [0..*] | C_PurchaseRequisitionByFMAA | _PurchaseRequisition | $projection.EarmarkedFundsDocument = _PurchaseRequisition.EarmarkedFundsDocument and $projection.FinancialManagementArea = _PurchaseRequisition.FinancialManagementArea |
| [0..*] | C_EmrkdFndsBsdRevnIncrBdgtDoc | _EmrkdFndsBsdRevnIncrBdgtDoc | $projection.EarmarkedFundsDocument = _EmrkdFndsBsdRevnIncrBdgtDoc.EarmarkedFundsDocument |
| [0..1] | C_EmrkdFndsBsdRevnIncrBdgt | _EmrkdFndsBsdRevnIncrBdgt | $projection.EarmarkedFundsDocument = _EmrkdFndsBsdRevnIncrBdgt.EarmarkedFundsDocument |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.representativeKey | EarmarkedFundsDocument | view | |
| AbapCatalog.sqlViewName | CEARMFUNDS_OBJP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Additional Selection - Earmarked Funds | view | |
| UI.headerInfo.typeName | Earmarked Funds Document | view | |
| UI.headerInfo.typeNamePlural | Earmarked Funds Documents | view | |
| UI.headerInfo.title.value | EarmarkedFundsDocument | view | |
| UI.headerInfo.description.value | EarmarkedFundsDocCategoryText | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EarmarkedFundsDocument | Earmarked Funds | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| FinancialManagementArea | FinancialManagementArea | Financial Management Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| EarmarkedFundsDocumentType | EarmarkedFundsDocumentType | Document Type | ||
| EarmarkedFundsDocTypeText | _EarmarkedFundsDocTypeText | EarmarkedFundsDocTypeText | Document Type Description | |
| EarmarkedFundsDocReference | EarmarkedFundsDocReference | Reference | ||
| EarmarkedFundsDocReference2 | EarmarkedFundsDocReference2 | Reference 2 | ||
| EarmarkedFundsDocReference3 | EarmarkedFundsDocReference3 | Reference 3 | ||
| EarmarkedFundsHeaderText | EarmarkedFundsHeaderText | Document Text | ||
| EarmarkedFundsHasLongText | EarmarkedFundsHasLongText | Long Txt Exists | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| EarmarkedFundsDocumentCategory | EarmarkedFundsDocumentCategory | Document Category | ||
| EarmarkedFundsDocCategoryText | _EarmarkedFundsDocCatText | EarmarkedFundsDocCategoryText | Document Category Text | |
| ReferenceDocument | ReferenceDocument | Reference Document | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| ReferenceDocumentTypeName | _ReferenceDocumentTypeText | ReferenceDocumentTypeName | ||
| ReferenceDocumentContext | ReferenceDocumentContext | Reference Organizational Units | ||
| ReferenceDocumentLogicalSystem | ReferenceDocumentLogicalSystem | Logical System of Source Document | ||
| EarmarkedFundsDocEntryStatus | EarmarkedFundsDocEntryStatus | Status | ||
| EarmarkedFundsStartWorkflow | EarmarkedFundsStartWorkflow | Document Subject to Workflow | ||
| EarmarkedFundsIsCompleted | EarmarkedFundsIsCompleted | Doc.Completed | ||
| EmrkdFndsIsMarkedForArchiving | EmrkdFndsIsMarkedForArchiving | Document Can Be Archived | ||
| EmrkdFndsIsBlockedAgainstUsage | EmrkdFndsIsBlockedAgainstUsage | Doc.Blocked | ||
| EmrkdFndsDocCreatedByUser | EmrkdFndsDocCreatedByUser | Entered By | ||
| EmrkdFndsDocCreationDate | EmrkdFndsDocCreationDate | Entered On | ||
| EmrkdFndsDocLastChangedByUser | EmrkdFndsDocLastChangedByUser | Last Changed By | ||
| EmrkdFndsDocLastChangeDate | EmrkdFndsDocLastChangeDate | Changed On | ||
| EmrkdFndsTotalInCCCrcy | _EarmarkedFundsDocTotals | EmrkdFndsTotalInCCCrcy | Total Amount (TC) | |
| EmrkdFndsTotalInTransCrcy | _EarmarkedFundsDocTotals | EmrkdFndsTotalInTransCrcy | Total Amount (TC) | |
| EmrkdFndsRelTotalInCCCrcy | ||||
| EmrkdFndsRelTotalInTransCrcy | ||||
| EmrkdFndsOpenTotalInCCCrcy | _EarmarkedFundsDocTotals | EmrkdFndsOpenTotalInCCCrcy | Open Amount (LC) | |
| EmrkdFndsOpenTotalInTransCrcy | _EarmarkedFundsDocTotals | EmrkdFndsOpenTotalInTransCrcy | Open Amount (TC) | |
| EmrkdFndsChgdTotalInCCCrcy | _EarmarkedFundsDocTotals | EmrkdFndsChgdTotalInCCCrcy | Amount Changed (LC) | |
| EmrkdFndsChgdTotalInTransCrcy | _EarmarkedFundsDocTotals | EmrkdFndsChgdTotalInTransCrcy | Amount Changed (TC) | |
| EmrkdFndsCnsmdTotalInCCCrcy | _EarmarkedFundsDocTotals | EmrkdFndsCnsmdTotalInCCCrcy | Amount Consumed (LC) | |
| EmrkdFndsCnsmdTotalInTransCrcy | _EarmarkedFundsDocTotals | EmrkdFndsCnsmdTotalInTransCrcy | Amount Consumed (TC) | |
| EmrkdFndsOriglTotalInCCCrcy | _EarmarkedFundsDocTotals | EmrkdFndsOriglTotalInCCCrcy | Original Amount | |
| EmrkdFndsOriglTotalInTransCrcy | _EarmarkedFundsDocTotals | EmrkdFndsOriglTotalInTransCrcy | Original Amount | |
| _EarmarkedFundsItem | _EarmarkedFundsItem | |||
| _EarmarkedFundsPredecessor | _EarmarkedFundsPredecessor | |||
| _EarmarkedFundsSuccessor | _EarmarkedFundsSuccessor | |||
| _AccountingJournal | _AccountingJournal | |||
| _BudgetaryDocument | _BudgetaryDocument | |||
| _FiscalYearChange | _FiscalYearChange | |||
| _PurchaseOrder | _PurchaseOrder | |||
| _PurchaseRequisition | _PurchaseRequisition | |||
| _EmrkdFndsBsdRevnIncrBdgtDoc | _EmrkdFndsBsdRevnIncrBdgtDoc | |||
| _EarmarkedFundsDocCategory | _EarmarkedFundsDocCategory | |||
| _EarmarkedFundsDocType | _EarmarkedFundsDocType |
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 C_EarmarkedFunds_ObjP.
-- 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 C_EarmarkedFunds_ObjP AS
SELECT
cast( EarmarkedFundsDocument as kblnr_dy preserving type ) AS EarmarkedFundsDocument,
CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
FinancialManagementArea,
ControllingArea,
TransactionCurrency,
CompanyCodeCurrency,
EarmarkedFundsDocumentType,
_EarmarkedFundsDocTypeText.EarmarkedFundsDocTypeText AS EarmarkedFundsDocTypeText,
EarmarkedFundsDocReference,
EarmarkedFundsDocReference2,
EarmarkedFundsDocReference3,
EarmarkedFundsHeaderText,
EarmarkedFundsHasLongText,
PostingDate,
DocumentDate,
EarmarkedFundsDocumentCategory,
_EarmarkedFundsDocCatText.EarmarkedFundsDocCategoryText AS EarmarkedFundsDocCategoryText,
ReferenceDocument,
ReferenceDocumentType,
_ReferenceDocumentTypeText.ReferenceDocumentTypeName AS ReferenceDocumentTypeName,
ReferenceDocumentContext,
ReferenceDocumentLogicalSystem,
EarmarkedFundsDocEntryStatus,
EarmarkedFundsStartWorkflow,
EarmarkedFundsIsCompleted,
EmrkdFndsIsMarkedForArchiving,
EmrkdFndsIsBlockedAgainstUsage,
EmrkdFndsDocCreatedByUser,
EmrkdFndsDocCreationDate,
EmrkdFndsDocLastChangedByUser,
EmrkdFndsDocLastChangeDate,
_EarmarkedFundsDocTotals.EmrkdFndsTotalInCCCrcy AS EmrkdFndsTotalInCCCrcy,
_EarmarkedFundsDocTotals.EmrkdFndsTotalInTransCrcy AS EmrkdFndsTotalInTransCrcy,
cast(_EarmarkedFundsDocTotals.EmrkdFndsRelTotalInCCCrcy as fmis_efd_amtflwapprincccrcy preserving type ) AS EmrkdFndsRelTotalInCCCrcy,
cast(_EarmarkedFundsDocTotals.EmrkdFndsRelTotalInTransCrcy as fmis_efd_amtflwapprintrancrcy preserving type ) AS EmrkdFndsRelTotalInTransCrcy,
_EarmarkedFundsDocTotals.EmrkdFndsOpenTotalInCCCrcy AS EmrkdFndsOpenTotalInCCCrcy,
_EarmarkedFundsDocTotals.EmrkdFndsOpenTotalInTransCrcy AS EmrkdFndsOpenTotalInTransCrcy,
_EarmarkedFundsDocTotals.EmrkdFndsChgdTotalInCCCrcy AS EmrkdFndsChgdTotalInCCCrcy,
_EarmarkedFundsDocTotals.EmrkdFndsChgdTotalInTransCrcy AS EmrkdFndsChgdTotalInTransCrcy,
_EarmarkedFundsDocTotals.EmrkdFndsCnsmdTotalInCCCrcy AS EmrkdFndsCnsmdTotalInCCCrcy,
_EarmarkedFundsDocTotals.EmrkdFndsCnsmdTotalInTransCrcy AS EmrkdFndsCnsmdTotalInTransCrcy,
_EarmarkedFundsDocTotals.EmrkdFndsOriglTotalInCCCrcy AS EmrkdFndsOriglTotalInCCCrcy,
_EarmarkedFundsDocTotals.EmrkdFndsOriglTotalInTransCrcy AS EmrkdFndsOriglTotalInTransCrcy
FROM I_EarmarkedFundsDocument
LEFT OUTER JOIN I_EarmarkedFundsDocTotals AS _EarmarkedFundsDocTotals ON EarmarkedFundsDocument = _EarmarkedFundsDocTotals.EarmarkedFundsDocument -- association [0..1]
LEFT OUTER JOIN C_EarmarkedFundsPredecessorDoc AS _EarmarkedFundsPredecessor ON EarmarkedFundsDocument = _EarmarkedFundsPredecessor.EarmarkedFundsDocument -- association [0..*]
LEFT OUTER JOIN C_EarmarkedFundssucessorDoc AS _EarmarkedFundsSuccessor ON EarmarkedFundsDocument = _EarmarkedFundsSuccessor.EmrkdFndsItmPredecessor -- association [0..*]
LEFT OUTER JOIN C_EarmarkedFundsJournal AS _AccountingJournal ON EarmarkedFundsDocument = _AccountingJournal.EarmarkedFundsDocument -- association [0..*]
LEFT OUTER JOIN C_BudgetaryDocumentForObjP AS _BudgetaryDocument ON EarmarkedFundsDocument = _BudgetaryDocument.OriginalReferenceDocument AND _BudgetaryDocument.ReferenceDocumentType = 'FMRES' -- association [0..*]
LEFT OUTER JOIN C_EmrkdFndsItmForObjPWST AS _EarmarkedFundsItem ON EarmarkedFundsDocument = _EarmarkedFundsItem.EarmarkedFundsDocument -- association [0..*]
LEFT OUTER JOIN C_FiscalYearChangeDocumentWST AS _FiscalYearChange ON EarmarkedFundsDocument = _FiscalYearChange.ReferenceDocument AND FinancialManagementArea = _FiscalYearChange.FinancialManagementArea -- association [0..*]
LEFT OUTER JOIN I_ReferenceDocumentTypeText AS _ReferenceDocumentTypeText ON ReferenceDocumentType = _ReferenceDocumentTypeText.ReferenceDocumentType AND _ReferenceDocumentTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_EarmarkedFunds_DocCatText AS _EarmarkedFundsDocCatText ON EarmarkedFundsDocumentCategory = _EarmarkedFundsDocCatText.EarmarkedFundsDocumentCategory AND _EarmarkedFundsDocCatText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_EarmarkedFunds_DocTypeText AS _EarmarkedFundsDocTypeText ON EarmarkedFundsDocumentCategory = _EarmarkedFundsDocTypeText.EarmarkedFundsDocumentCategory AND EarmarkedFundsDocumentType = _EarmarkedFundsDocTypeText.EarmarkedFundsDocumentType AND _EarmarkedFundsDocTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN C_PurchaseOrderByFMAA AS _PurchaseOrder ON EarmarkedFundsDocument = _PurchaseOrder.EarmarkedFundsDocument AND FinancialManagementArea = _PurchaseOrder.FinancialManagementArea -- association [0..*]
LEFT OUTER JOIN C_PurchaseRequisitionByFMAA AS _PurchaseRequisition ON EarmarkedFundsDocument = _PurchaseRequisition.EarmarkedFundsDocument AND FinancialManagementArea = _PurchaseRequisition.FinancialManagementArea -- association [0..*]
LEFT OUTER JOIN C_EmrkdFndsBsdRevnIncrBdgtDoc AS _EmrkdFndsBsdRevnIncrBdgtDoc ON EarmarkedFundsDocument = _EmrkdFndsBsdRevnIncrBdgtDoc.EarmarkedFundsDocument -- association [0..*]
LEFT OUTER JOIN C_EmrkdFndsBsdRevnIncrBdgt AS _EmrkdFndsBsdRevnIncrBdgt ON EarmarkedFundsDocument = _EmrkdFndsBsdRevnIncrBdgt.EarmarkedFundsDocument -- 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