R_DirectActivityAllocation
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)
| Source | Alias | Join Type |
|---|---|---|
| R_CostAccountingDocument_2 | R_CostAccountingDocument_2 | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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