I_EarmarkedFunds_Basic

DDL: I_EARMARKEDFUNDS_BASIC SQL: IEFDOCUMENTB Type: view BASIC Package: FMRE

DEPRECATED -> use I_EarmarkedFundsDocument

I_EarmarkedFunds_Basic is a Basic CDS View that provides data about "DEPRECATED -> use I_EarmarkedFundsDocument" in SAP S/4HANA. It reads from 1 data source (kblk) and exposes 43 fields with key field EarmarkedFunds. It has 7 associations to related views. Part of development package FMRE.

Data Sources (1)

SourceAliasJoin Type
kblk Header from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_EarmarkedFunds_DocCategory _EarmarkedFunds_DocCategory $projection.EarmarkedFundsDocumentCategory = _EarmarkedFunds_DocCategory.EarmarkedFundsDocumentCategory
[0..1] I_EarmarkedFunds_DocType _EarmarkedFunds_DocType $projection.EarmarkedFundsDocumentType = _EarmarkedFunds_DocType.EarmarkedFundsDocumentType and $projection.EarmarkedFundsDocumentCategory = _EarmarkedFunds_DocType.EarmarkedFundsDocumentCategory
[0..1] I_EarmarkedFunds_MnlEditBlk _EarmarkedFunds_MnlEditBlk $projection.EarmarkedFundsManualEditBlock = _EarmarkedFunds_MnlEditBlk.EarmarkedFundsManualEditBlock
[0..1] I_EarmarkedFunds_DcsnReason _EarmarkedFunds_DcsnReason $projection.EarmarkedFundsDecisionReason = _EarmarkedFunds_DcsnReason.EarmarkedFundsDecisionReason
[0..1] I_ReferenceDocumentType _ReferenceDocumentType $projection.ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType
[0..1] I_Currency _TransCurrency $projection.TransactionCurrency = _TransCurrency.Currency
[0..1] I_Currency _CCCurrency $projection.CompanyCodeCurrency = _CCCurrency.Currency

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IEFDOCUMENTB view
AbapCatalog.compiler.compareFilter true view
EndUserText.label DEPRECATED -> use I_EarmarkedFundsDocument view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
VDM.lifecycle.successor I_EarmarkedFundsDocument view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY EarmarkedFunds kblk belnr SD Document
EarmarkedFundsDocumentCategory kblk bltyp Document Class
EarmarkedFundsDocumentType
CompanyCode kblk bukrs Value
FinancialManagementArea kblk fikrs FM Area
ControllingArea kblk kokrs Org. Value
TransactionCurrency kblk waers Transaction Currency
CompanyCodeCurrency kblk hwaer Local Currency
DocumentReferenceID kblk xblnr Reference
EarmarkedFundsHeaderText kblk ktext Text
EarmarkedFundsHasLongText kblk ltext Text exists
PostingDate kblk budat Posting Date
DocumentDate kblk bldat Journal Entry Date
ExchangeRateDate kblk wwert Translatn Date
ExchangeRate kblk kursf Exchange Rate
BusinessTransactionType kblk kvrgng Activity
CreatedByUser kblk kerfas Entered By
CreationDate kblk kerdat Entered On
LastChangeUser kblk kaende Last Changed By
LastChangeDate kblk kaedat Changed On
ReferenceDocumentType kblk rftyp Ref. procedure
ReferenceDocument kblk rfblnr Reference Doc.
ReferenceDocumentContext kblk rforg Refer. Org.Unit
ReferenceDocumentLogicalSystem kblk rfsys Logical System
EmrkdFndsIsMarkedForArchiving
EmrkdFndsHasNegativeAmounts kblk negval Negative Values
EmrkdFndsIsBlockedAgainstUsage kblk blkkz Doc.Blocked
EarmarkedFundsIsCompleted kblk fexec Doc.Completed
EarmarkedFundsIsApproved kblk wkapk Doc. Approved
EmrkdFndsWasAlreadyAprvdOnce kblk wkaok Already Apprvd
EmrkdFndsHasAddlCnsmpnLogic kblk additiv_cons_log Add. Rdctn Logic
EarmarkedFundsDecisionReason kblk fmreason Decision Reason
EarmarkedFundsStartWorkflow kblk wf_start Start Workflow
EarmarkedFundsManualEditBlock kblk doclock Document Block
EmrkdFndsHasValueAdjustments kblk pmdocs Value Adjustmts
EarmarkedFundsEntryStatus kblk mvstat Status
_EarmarkedFunds_DocCategory _EarmarkedFunds_DocCategory
_EarmarkedFunds_DocType _EarmarkedFunds_DocType
_EarmarkedFunds_MnlEditBlk _EarmarkedFunds_MnlEditBlk
_EarmarkedFunds_DcsnReason _EarmarkedFunds_DcsnReason
_ReferenceDocumentType _ReferenceDocumentType
_CCCurrency _CCCurrency
_TransCurrency _TransCurrency

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_EarmarkedFunds_Basic.
-- 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: IEFDOCUMENTB

CREATE VIEW I_EarmarkedFunds_Basic AS
SELECT
  Header.belnr AS EarmarkedFunds,
  Header.bltyp AS EarmarkedFundsDocumentCategory,
  cast ( Header.blart as fmre_blart ) AS EarmarkedFundsDocumentType,
  Header.bukrs AS CompanyCode,
  Header.fikrs AS FinancialManagementArea,
  Header.kokrs AS ControllingArea,
  Header.waers AS TransactionCurrency,
  Header.hwaer AS CompanyCodeCurrency,
  Header.xblnr AS DocumentReferenceID,
  Header.ktext AS EarmarkedFundsHeaderText,
  Header.ltext AS EarmarkedFundsHasLongText,
  Header.budat AS PostingDate,
  Header.bldat AS DocumentDate,
  Header.wwert AS ExchangeRateDate,
  Header.kursf AS ExchangeRate,
  Header.kvrgng AS BusinessTransactionType,
  Header.kerfas AS CreatedByUser,
  Header.kerdat AS CreationDate,
  Header.kaende AS LastChangeUser,
  Header.kaedat AS LastChangeDate,
  Header.rftyp AS ReferenceDocumentType,
  Header.rfblnr AS ReferenceDocument,
  Header.rforg AS ReferenceDocumentContext,
  Header.rfsys AS ReferenceDocumentLogicalSystem,
  cast ( Header.kloekz as kblkloekz ) AS EmrkdFndsIsMarkedForArchiving,
  Header.negval AS EmrkdFndsHasNegativeAmounts,
  Header.blkkz AS EmrkdFndsIsBlockedAgainstUsage,
  Header.fexec AS EarmarkedFundsIsCompleted,
  Header.wkapk AS EarmarkedFundsIsApproved,
  Header.wkaok AS EmrkdFndsWasAlreadyAprvdOnce,
  Header.additiv_cons_log AS EmrkdFndsHasAddlCnsmpnLogic,
  Header.fmreason AS EarmarkedFundsDecisionReason,
  Header.wf_start AS EarmarkedFundsStartWorkflow,
  Header.doclock AS EarmarkedFundsManualEditBlock,
  Header.pmdocs AS EmrkdFndsHasValueAdjustments,
  Header.mvstat AS EarmarkedFundsEntryStatus
FROM kblk AS Header
LEFT OUTER JOIN I_EarmarkedFunds_DocCategory AS _EarmarkedFunds_DocCategory ON EarmarkedFundsDocumentCategory = _EarmarkedFunds_DocCategory.EarmarkedFundsDocumentCategory  -- association [1..1]
LEFT OUTER JOIN I_EarmarkedFunds_DocType AS _EarmarkedFunds_DocType ON EarmarkedFundsDocumentType = _EarmarkedFunds_DocType.EarmarkedFundsDocumentType AND EarmarkedFundsDocumentCategory = _EarmarkedFunds_DocType.EarmarkedFundsDocumentCategory  -- association [0..1]
LEFT OUTER JOIN I_EarmarkedFunds_MnlEditBlk AS _EarmarkedFunds_MnlEditBlk ON EarmarkedFundsManualEditBlock = _EarmarkedFunds_MnlEditBlk.EarmarkedFundsManualEditBlock  -- association [0..1]
LEFT OUTER JOIN I_EarmarkedFunds_DcsnReason AS _EarmarkedFunds_DcsnReason ON EarmarkedFundsDecisionReason = _EarmarkedFunds_DcsnReason.EarmarkedFundsDecisionReason  -- association [0..1]
LEFT OUTER JOIN I_ReferenceDocumentType AS _ReferenceDocumentType ON ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TransCurrency ON TransactionCurrency = _TransCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CCCurrency ON CompanyCodeCurrency = _CCCurrency.Currency  -- association [0..1]
;