R_EarmarkedFundsDocumentDraft
Earmarked Funds Document - Draft
R_EarmarkedFundsDocumentDraft is a Basic CDS View that provides data about "Earmarked Funds Document - Draft" in SAP S/4HANA. It reads from 1 data source (kblk_draft2) and exposes 62 fields with key fields EarmarkedFundsDocument, DraftUUID. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| kblk_draft2 | efdoc_draft | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | R_EarmarkedFundsDocItemDraft | _EarmarkedFundsDocItemDraft | $projection.EarmarkedFundsDocument = _EarmarkedFundsDocItemDraft.EarmarkedFundsDocument and $projection.DraftUUID = _EarmarkedFundsDocItemDraft.ParentDraftUUID |
| [1] | E_EarmarkedFundsDocumentDraft | _ExtensionDraft | $projection.EarmarkedFundsDocument = _ExtensionDraft.EarmarkedFundsDocument |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| AbapCatalog.extensibility.elementSuffix | EFD | view | |
| AbapCatalog.extensibility.quota.maximumFields | 200 | view | |
| AbapCatalog.extensibility.quota.maximumBytes | 20000 | view | |
| EndUserText.label | Earmarked Funds Document - Draft | view |
Fields (62)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EarmarkedFundsDocument | earmarkedfundsdocument | Earmarked Funds | |
| KEY | DraftUUID | draftuuid | UUID | |
| EarmarkedFundsDocumentForEdit | earmarkedfundsdocumentforedit | External Document Number | ||
| EarmarkedFundsDocumentCategory | earmarkedfundsdocumentcategory | Document Category | ||
| EarmarkedFundsDocumentType | earmarkedfundsdocumenttype | Document Type | ||
| CompanyCode | companycode | Receiver Company Code | ||
| FinancialManagementArea | financialmanagementarea | FM Area | ||
| ControllingArea | controllingarea | Controlling Area | ||
| TransactionCurrency | transactioncurrency | Transaction Currency | ||
| CompanyCodeCurrency | companycodecurrency | Local Currency | ||
| 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 | ||
| ExchangeRateDate | exchangeratedate | Translatn Date | ||
| AbsoluteExchangeRate | absoluteexchangerate | Absolute Exchange Rate | ||
| ExchRateIsIndirectQuotation | exchrateisindirectquotation | Exchange Rate Is Indirect Quotation | ||
| EmrkdFndsDocCreatedByUser | emrkdfndsdoccreatedbyuser | Entered By | ||
| EmrkdFndsDocCreationDate | emrkdfndsdoccreationdate | Entered On | ||
| EmrkdFndsDocLastChangedByUser | emrkdfndsdoclastchangedbyuser | Last Changed By | ||
| EmrkdFndsDocLastChangeDate | emrkdfndsdoclastchangedate | Changed On | ||
| EmrkdFndsDocLastChangeDateTime | emrkdfndsdoclastchangedatetime | Last Changed On | ||
| OrgnlBusinessTransactionType | orgnlbusinesstransactiontype | Original BTran. | ||
| ReferenceDocumentType | referencedocumenttype | Reference Document Type | ||
| ReferenceDocument | referencedocument | Reference Document | ||
| ReferenceDocumentContext | referencedocumentcontext | Reference Document Context | ||
| ReferenceDocumentLogicalSystem | referencedocumentlogicalsystem | Ref. Doc. Lgcl Syst. | ||
| EmrkdFndsIsMarkedForArchiving | emrkdfndsismarkedforarchiving | Can Be Archived | ||
| EmrkdFndsHasNegativeAmounts | emrkdfndshasnegativeamounts | Neg.Values | ||
| EmrkdFndsIsBlockedAgainstUsage | emrkdfndsisblockedagainstusage | Doc.Blocked | ||
| EarmarkedFundsIsCompleted | earmarkedfundsiscompleted | Doc.Completed | ||
| EarmarkedFundsIsApproved | earmarkedfundsisapproved | Doc. Approved | ||
| EmrkdFndsWasAlreadyAprvdOnce | emrkdfndswasalreadyaprvdonce | Already Apprvd | ||
| EmrkdFndsHasAddlCnsmpnLogic | emrkdfndshasaddlcnsmpnlogic | Add. Rdctn Logic | ||
| EarmarkedFundsDecisionReason | earmarkedfundsdecisionreason | Decision Reason | ||
| EarmarkedFundsStartWorkflow | earmarkedfundsstartworkflow | Start Approval by Workflow | ||
| EarmarkedFundsManualEditBlock | earmarkedfundsmanualeditblock | Document Block | ||
| EmrkdFndsMnlEditBlkForEdit | emrkdfndsmnleditblkforedit | Document Block | ||
| EmrkdFndsHasValueAdjustments | emrkdfndshasvalueadjustments | Value Adjustmts | ||
| EarmarkedFundsDocEntryStatus | earmarkedfundsdocentrystatus | Status | ||
| EmrkdFndsTotalInTransCrcy | emrkdfndstotalintranscrcy | Total Amount | ||
| EmrkdFndsRelTotalInTransCrcy | emrkdfndsreltotalintranscrcy | Release Amount | ||
| EmrkdFndsOpenTotalInTransCrcy | emrkdfndsopentotalintranscrcy | Open Amount | ||
| EmrkdFndsChgdTotalInTransCrcy | emrkdfndschgdtotalintranscrcy | Amount Changed | ||
| EmrkdFndsCnsmdTotalInTransCrcy | emrkdfndscnsmdtotalintranscrcy | Reduced Amount | ||
| EmrkdFndsOriglTotalInTransCrcy | emrkdfndsorigltotalintranscrcy | Original Amount | ||
| EmrkdFndsTotalInCCCrcy | emrkdfndstotalincccrcy | Total Amount in Local Currency | ||
| EmrkdFndsRelTotalInCCCrcy | emrkdfndsreltotalincccrcy | Amt for Release | ||
| EmrkdFndsOpenTotalInCCCrcy | emrkdfndsopentotalincccrcy | Open Amount in Local Currency | ||
| EmrkdFndsChgdTotalInCCCrcy | emrkdfndschgdtotalincccrcy | Amount Changed in Local Currency | ||
| EmrkdFndsCnsmdTotalInCCCrcy | emrkdfndscnsmdtotalincccrcy | Reduced Amount | ||
| EmrkdFndsOriglTotalInCCCrcy | emrkdfndsorigltotalincccrcy | Original Amount | ||
| HasActiveEntity | hasactiveentity | TRUE | ||
| DraftEntityCreationDateTime | draftentitycreationdatetime | Draft Created On | ||
| DraftEntityLastChangeDateTime | draftentitylastchangedatetime | Draft Last Changed On | ||
| DraftAdministrativeDataUUID | draftadministrativedatauuid | UUID | ||
| DraftEntityOperationCode | draftentityoperationcode | Draft - Operation Code | ||
| DraftFieldChanges | draftfieldchanges | Field Changes | ||
| _EarmarkedFundsDocItemDraft | _EarmarkedFundsDocItemDraft |
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 R_EarmarkedFundsDocumentDraft.
-- 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 R_EarmarkedFundsDocumentDraft AS
SELECT
EarmarkedFundsDocument,
DraftUUID,
EarmarkedFundsDocumentForEdit,
EarmarkedFundsDocumentCategory,
EarmarkedFundsDocumentType,
CompanyCode,
FinancialManagementArea,
ControllingArea,
TransactionCurrency,
CompanyCodeCurrency,
EarmarkedFundsDocReference,
EarmarkedFundsDocReference2,
EarmarkedFundsDocReference3,
EarmarkedFundsHeaderText,
EarmarkedFundsHasLongText,
PostingDate,
DocumentDate,
ExchangeRateDate,
AbsoluteExchangeRate,
ExchRateIsIndirectQuotation,
EmrkdFndsDocCreatedByUser,
EmrkdFndsDocCreationDate,
EmrkdFndsDocLastChangedByUser,
EmrkdFndsDocLastChangeDate,
EmrkdFndsDocLastChangeDateTime,
OrgnlBusinessTransactionType,
ReferenceDocumentType,
ReferenceDocument,
ReferenceDocumentContext,
ReferenceDocumentLogicalSystem,
EmrkdFndsIsMarkedForArchiving,
EmrkdFndsHasNegativeAmounts,
EmrkdFndsIsBlockedAgainstUsage,
EarmarkedFundsIsCompleted,
EarmarkedFundsIsApproved,
EmrkdFndsWasAlreadyAprvdOnce,
EmrkdFndsHasAddlCnsmpnLogic,
EarmarkedFundsDecisionReason,
EarmarkedFundsStartWorkflow,
EarmarkedFundsManualEditBlock,
EmrkdFndsMnlEditBlkForEdit,
EmrkdFndsHasValueAdjustments,
EarmarkedFundsDocEntryStatus,
EmrkdFndsTotalInTransCrcy,
EmrkdFndsRelTotalInTransCrcy,
EmrkdFndsOpenTotalInTransCrcy,
EmrkdFndsChgdTotalInTransCrcy,
EmrkdFndsCnsmdTotalInTransCrcy,
EmrkdFndsOriglTotalInTransCrcy,
EmrkdFndsTotalInCCCrcy,
EmrkdFndsRelTotalInCCCrcy,
EmrkdFndsOpenTotalInCCCrcy,
EmrkdFndsChgdTotalInCCCrcy,
EmrkdFndsCnsmdTotalInCCCrcy,
EmrkdFndsOriglTotalInCCCrcy,
HasActiveEntity,
DraftEntityCreationDateTime,
DraftEntityLastChangeDateTime,
DraftAdministrativeDataUUID,
DraftEntityOperationCode,
DraftFieldChanges
FROM kblk_draft2 AS efdoc_draft
LEFT OUTER JOIN R_EarmarkedFundsDocItemDraft AS _EarmarkedFundsDocItemDraft ON EarmarkedFundsDocument = _EarmarkedFundsDocItemDraft.EarmarkedFundsDocument AND DraftUUID = _EarmarkedFundsDocItemDraft.ParentDraftUUID -- association [0..*]
LEFT OUTER JOIN E_EarmarkedFundsDocumentDraft AS _ExtensionDraft ON EarmarkedFundsDocument = _ExtensionDraft.EarmarkedFundsDocument -- association [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