R_DirectActivityAllocation

DDL: R_DIRECTACTIVITYALLOCATION Type: view_entity COMPOSITE Package: ODATA_MANAGE_DRCT_ACTY_ALLOC_2

Direct Activity Allocation

R_DirectActivityAllocation is a Composite CDS View that provides data about "Direct Activity Allocation" in SAP S/4HANA. It reads from 1 data source (R_CostAccountingDocument_2) and exposes 33 fields with key fields FiscalYear, ReferenceDocument, ControllingArea, ReferenceDocumentType, ReferenceDocumentContext. Part of development package ODATA_MANAGE_DRCT_ACTY_ALLOC_2.

Data Sources (1)

SourceAliasJoin Type
R_CostAccountingDocument_2 R_CostAccountingDocument_2 from

Annotations (9)

NameValueLevelField
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Direct Activity Allocation view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY ReferenceDocument ReferenceDocument Reference Document
KEY ControllingArea ControllingArea Controlling Area
KEY ReferenceDocumentType ReferenceDocumentType Reference Document Type
KEY ReferenceDocumentContext ReferenceDocumentContext Reference Document Context
CompanyCode
SenderCompanyCode
AccountingDocument
AccountingDocumentHeaderText AccountingDocumentHeaderText Doc.Header Text
DocumentDate DocumentDate Journal Entry Date
PostingDate PostingDate Posting Date for GR
FiscalPeriod FiscalPeriod Tax period
FiscalYearPeriod FiscalYearPeriod Period/Year
AccountingDocumentCreationDate AccountingDocumentCreationDate Journal Entry Date
AccountingDocCreatedByUser AccountingDocCreatedByUser User which created overhead document
IsReversal IsReversal Reversal doc.
IsReversed IsReversed Reversed?
ExchangeRateDate ExchangeRateDate Translatn Date
PredecessorReferenceDocument PredecessorReferenceDocument Predecessor Reference Document
PredecessorReferenceDocType PredecessorReferenceDocType Predecessor Reference Document Type
PredecessorReferenceDocCntxt PredecessorReferenceDocCntxt Predecessor Reference Document Context
ReversalReferenceDocument ReversalReferenceDocument Reversal Reference Document
ReversedReferenceDocument ReversedReferenceDocument Reversed Reference Document
AllocationPostingType AllocationPostingType Posting Type
ControllingDocumentStatus ControllingDocumentStatus Status
CtrlgOverheadStatusCriticality CtrlgOverheadStatusCriticality Status Criticality
GlobalCurrency GlobalCurrency GM Billing Element: Global Currency
TotalAmountInGlobalCurrency TotalAmountInGlobalCurrency Amount in Global Currency
ControllingBusTransacType ControllingBusTransacType CO Bus. Transaction
BusinessTransactionCategory BusinessTransactionCategory Business Transaction Category
DirectActivityAllocationAction
OperatingConcern
AccountingDocumentType

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_DirectActivityAllocation.
-- 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_DirectActivityAllocation AS
SELECT
  FiscalYear,
  ReferenceDocument,
  ControllingArea,
  ReferenceDocumentType,
  ReferenceDocumentContext,
  cast('' as fis_bukrs) AS CompanyCode,
  cast('' as sendercompanycode) AS SenderCompanyCode,
  cast('' as fis_belnr) AS AccountingDocument,
  AccountingDocumentHeaderText,
  DocumentDate,
  PostingDate,
  FiscalPeriod,
  FiscalYearPeriod,
  AccountingDocumentCreationDate,
  AccountingDocCreatedByUser,
  IsReversal,
  IsReversed,
  ExchangeRateDate,
  PredecessorReferenceDocument,
  PredecessorReferenceDocType,
  PredecessorReferenceDocCntxt,
  ReversalReferenceDocument,
  ReversedReferenceDocument,
  AllocationPostingType,
  ControllingDocumentStatus,
  CtrlgOverheadStatusCriticality,
  GlobalCurrency,
  TotalAmountInGlobalCurrency,
  ControllingBusTransacType,
  BusinessTransactionCategory,
  cast('' as directactivityallocationaction) AS DirectActivityAllocationAction,
  cast('' as erkrs) AS OperatingConcern,
  cast('' as fis_blart) AS AccountingDocumentType
FROM R_CostAccountingDocument_2
;