P_DirectActivityAllocation

DDL: P_DIRECTACTIVITYALLOCATION SQL: PDRCTACTY Type: view COMPOSITE

P_DirectActivityAllocation is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_AccountAssignmentType, I_GLAccountLineItemRawData) and exposes 27 fields with key fields FiscalYear, ReferenceDocument, ControllingArea, LedgerGLLineItem.

Data Sources (2)

SourceAliasJoin Type
I_AccountAssignmentType _AAT inner
I_GLAccountLineItemRawData _Header from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PDRCTACTY view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY ReferenceDocument ReferenceDocument Reference Document
KEY ControllingArea ControllingArea Controlling Area
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
CompanyCode
SenderCompanyCode
AccountingDocument
AccountingDocumentHeaderText
DocumentDate DocumentDate Journal Entry Date
PostingDate PostingDate Posting Date for GR
FiscalPeriod
AccountingDocumentCreationDate
AccountingDocCreatedByUser User which created overhead document
IsReversal IsReversal Reversal doc.
IsReversed IsReversed Reversed?
ReferenceDocumentType ReferenceDocumentType Reference Document Type
ReferenceDocumentContext ReferenceDocumentContext Reference Document Context
ExchangeRateDate
PredecessorReferenceDocument PredecessorReferenceDocument Predecessor Reference Document
ReversalReferenceDocument ReversalReferenceDocument Reversal Reference Document
GlobalCurrency GlobalCurrency GM Billing Element: Global Currency
AmountInGlobalCurrency AmountInGlobalCurrency Amount in Global Currency
IsSettlement IsSettlement Is Settling
IsSettled IsSettled Is Settled
ControllingBusTransacType ControllingBusTransacType CO Bus. Transaction
AccountingDocumentType I_GLAccountLineItemRawData AccountingDocumentType Journal Entry Type
_ReferenceDocumentType _ReferenceDocumentType

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 P_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.
-- SQL view name: PDRCTACTY

CREATE VIEW P_DirectActivityAllocation AS
SELECT
  FiscalYear,
  ReferenceDocument,
  ControllingArea,
  LedgerGLLineItem,
  cast(_Header.CompanyCode as fis_bukrs) AS CompanyCode,
  cast(_Header.PartnerCompanyCode as sendercompanycode) AS SenderCompanyCode,
  cast(_Header.AccountingDocument as fis_belnr) AS AccountingDocument,
  _Header._JournalEntry.AccountingDocumentHeaderText AS AccountingDocumentHeaderText,
  DocumentDate,
  PostingDate,
  _Header._JournalEntry.FiscalPeriod AS FiscalPeriod,
  _Header._JournalEntry.AccountingDocumentCreationDate AS AccountingDocumentCreationDate,
  cast(AccountingDocCreatedByUser as fco_cc_createdby) AS AccountingDocCreatedByUser,
  IsReversal,
  IsReversed,
  ReferenceDocumentType,
  ReferenceDocumentContext,
  cast(_Header._JournalEntry.ExchangeRateDate as fin_currconvdat) AS ExchangeRateDate,
  PredecessorReferenceDocument,
  ReversalReferenceDocument,
  GlobalCurrency,
  AmountInGlobalCurrency,
  IsSettlement,
  IsSettled,
  ControllingBusTransacType,
  _Header.AccountingDocumentType AS AccountingDocumentType
FROM I_GLAccountLineItemRawData AS _Header
INNER JOIN I_AccountAssignmentType AS _AAT ON /* join condition not captured in parsed metadata */
;