C_DirectActivityAllocation
Header of Manage Direct Activity Allocation
C_DirectActivityAllocation is a Consumption CDS View that provides data about "Header of Manage Direct Activity Allocation" in SAP S/4HANA. It reads from 1 data source (I_DirectActivityAllocationTP) and exposes 95 fields with key fields FiscalYear, ReferenceDocument, ControllingArea. It has 12 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_DirectActivityAllocationTP | _Header | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_DirectActivityAllocationItem | _Item | $projection.FiscalYear = _Item.FiscalYear and $projection.ReferenceDocument = _Item.ReferenceDocument and $projection.ControllingArea = _Item.ControllingArea |
| [1..*] | C_DrctActyAllocationActiveItem | _OriginalItem | $projection.PostingFiscalYear = _OriginalItem.FiscalYearForEdit and $projection.ReversalReferenceDocument = _OriginalItem.ReferenceDocumentForEdit and $projection.ControllingAreaForEdit = _OriginalItem.ControllingAreaForEdit |
| [1..*] | C_DrctActyAllocJournalEntry | _JournalEntry | $projection.ControllingAreaForEdit = _JournalEntry.ControllingArea and $projection.ReferenceDocumentForEdit = _JournalEntry.ReferenceDocument and $projection.ReferenceDocumentType = _JournalEntry.ReferenceDocumentType and $projection.ReferenceDocumentContext = _JournalEntry.ReferenceDocumentContext |
| [1..*] | C_DrctActyAllocCompanyCode | _DrctActyAllocCompanyCode | $projection.ControllingAreaForEdit = _DrctActyAllocCompanyCode.ControllingArea and $projection.FiscalYearForEdit = _DrctActyAllocCompanyCode.FiscalYear and $projection.ReferenceDocumentForEdit = _DrctActyAllocCompanyCode.ReferenceDocument |
| [1..*] | C_DrctActyAllocSndrCompanyCode | _DrctActyAllocSndrCompanyCode | $projection.ControllingAreaForEdit = _DrctActyAllocSndrCompanyCode.ControllingArea and $projection.FiscalYearForEdit = _DrctActyAllocSndrCompanyCode.FiscalYear and $projection.ReferenceDocumentForEdit = _DrctActyAllocSndrCompanyCode.ReferenceDocument |
| [0..1] | I_UserContactCard | _CreatedByContactCard | $projection.AccountingDocCreatedByUser = _CreatedByContactCard.ContactCardID |
| [0..*] | I_DrctActyAllocSuccssrRefItem | _SuccessorReferenceDocument | $projection.ControllingAreaForEdit = _SuccessorReferenceDocument.ControllingArea and $projection.ReferenceDocumentForEdit = _SuccessorReferenceDocument.PredecessorReferenceDocument |
| [1..1] | I_CostRevnReassgmtDocStatusTxt | _CostRevnReassgmtDocStatusTxt | $projection.Status = _CostRevnReassgmtDocStatusTxt.Status and _CostRevnReassgmtDocStatusTxt.Language = $session.system_language |
| [1..1] | I_CostRevnReassgmtPostgTypeTxt | _CostRevnReassgmtPostgTypeTxt | $projection.AllocationPostingType = _CostRevnReassgmtPostgTypeTxt.AllocationPostingType and _CostRevnReassgmtPostgTypeTxt.Language = $session.system_language |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingAreaForEdit = _ControllingArea.ControllingArea |
| [1..1] | I_AccountingDocumentTypeText | _AccountingDocumentTypeText | $projection.AccountingDocumentType = _AccountingDocumentTypeText.AccountingDocumentType and _AccountingDocumentTypeText.Language = $session.system_language |
| [1..1] | I_ReferenceDocumentTypeText | _ReferenceDocumentTypeText | $projection.ReferenceDocumentType = _ReferenceDocumentTypeText.ReferenceDocumentType and _ReferenceDocumentTypeText.Language = $session.system_language |
Annotations (23)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDRCTACTY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Header of Manage Direct Activity Allocation | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.draftEnabled | true | view | |
| UI.headerInfo.typeName | Document | view | |
| UI.headerInfo.typeNamePlural | Documents | view | |
| UI.headerInfo.title.value | ReferenceDocumentForEdit | view | |
| UI.headerInfo.title.label | Reference Document | view | |
| UI.headerInfo.description.type | #STANDARD | view | |
| UI.headerInfo.description.value | AccountingDocumentHeaderText | view | |
| UI.presentationVariant.text | Activity Allocations | view | |
| UI.presentationVariant.qualifier | VAR_AA | view |
Fields (95)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | ReferenceDocument | ReferenceDocument | Reference Document | |
| KEY | ControllingArea | ControllingArea | Controlling Area | |
| FiscalYearForEdit | FiscalYearForEdit | Fiscal Year | ||
| ReferenceDocumentForEdit | Reference Document | |||
| ControllingAreaForEdit | ControllingAreaForEdit | Controlling Area | ||
| CompanyCode | ||||
| CompanyCodeName | CompanyCodeName | Receiver Company Code Name | ||
| SenderCompanyCode | SenderCompanyCode | Sender Company Code | ||
| SourceCompanyCodeName | SourceCompanyCodeName | Sender Company Code Name | ||
| AccountingDocument | ||||
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | Doc.Header Text | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| ExchangeRateDate | ExchangeRateDate | Translatn Date | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| AccountingDocumentCreationDate | AccountingDocumentCreationDate | Journal Entry Date | ||
| AccountingDocCreatedByUser | AccountingDocCreatedByUser | User which created overhead document | ||
| IsReversal | IsReversal | Reversal doc. | ||
| IsReversed | IsReversed | Reversed? | ||
| Status | Status | Workflow Status | ||
| AllocationPostingType | AllocationPostingType | Posting Type | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| ReferenceDocumentContext | ReferenceDocumentContext | Reference Document Context | ||
| ReversalReferenceDocument | ReversalReferenceDocument | Reversal Reference Document | ||
| ReversedReferenceDocument | ReversedReferenceDocument | Reversed Reference Document | ||
| PredecessorReferenceDocument | PredecessorReferenceDocument | Reposted Reference Document | ||
| SuccessorReferenceDocument | SuccessorReferenceDocument | Reposting Reference Document | ||
| DirectActivityAllocationAction | DirectActivityAllocationAction | |||
| PostingFiscalYear | PostingFiscalYear | Fiscal Year | ||
| ControllingBusTransacType | ControllingBusTransacType | CO Bus. Transaction | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| AccountAssignmentType | AccountAssignmentType | Sender Object Type | ||
| PartnerAccountAssignmentType | PartnerAccountAssignmentType | Partner Account Assignment Type | ||
| CostCtrActivityType | CostCtrActivityType | Sender Activity Type | ||
| OriginCostCenter | OriginCostCenter | |||
| PartnerCostCenter | PartnerCostCenter | Receiver Cost Center | ||
| PartnerWBSElementExternalID | PartnerWBSElementExternalID | Receiver WBS Element | ||
| PartnerWBSElement | PartnerWBSElement | Receiver WBS Element (Deprecated) | ||
| PartnerProjectExternalID | PartnerProjectExternalID | Receiver Project | ||
| PartnerProject | PartnerProject | Receiver Project (Deprecated) | ||
| PartnerServiceDocumentType | PartnerServiceDocumentType | Receiver Service Doc. Type | ||
| PartnerServiceDocument | PartnerServiceDocument | Receiver Service Document | ||
| PartnerServiceDocumentItem | PartnerServiceDocumentItem | Receiver Service Doc. Item | ||
| PartnerProjectNetwork | PartnerProjectNetwork | Receiver Project Network | ||
| PartnerOrder | PartnerOrder | Receiver Order | ||
| PartnerProjectNetworkActivity | PartnerProjectNetworkActivity | Receiver Project Network Activity | ||
| PartnerCostCtrActivityType | PartnerCostCtrActivityType | Receiver Activity Type | ||
| PartnerCostObject | PartnerCostObject | Receiver Cost Object | ||
| PartnerSalesDocument | PartnerSalesDocument | Receiver Sales Document | ||
| PartnerSalesDocumentItem | PartnerSalesDocumentItem | Receiver Sales Doc. Item | ||
| WorkItem | WorkItem | Work Item ID | ||
| PersonnelNumber | PersonnelNumber | Personnel No. | ||
| PartnerBusinessProcess | PartnerBusinessProcess | Receiver Business Process | ||
| Fund | Fund | Sender Fund | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| GrantID | GrantID | Sender Grant | ||
| BudgetPeriod | BudgetPeriod | Sender Budget Period | ||
| PartnerFund | PartnerFund | Receiver Fund | ||
| PartnerFunctionalArea | PartnerFunctionalArea | Receiver Functional Area | ||
| PartnerGrant | PartnerGrant | Receiver Grant | ||
| PartnerBudgetPeriod | PartnerBudgetPeriod | Receiver Budget Period | ||
| GLAccount | GLAccount | General Ledger | ||
| Plant | Plant | Valuation Area | ||
| Material | Material | Vehicle Model | ||
| BillableControl | BillableControl | Receiver Accounting Indicator | ||
| JointVentureCostRecoveryCode | JointVentureCostRecoveryCode | Receiver Recovery Indicator | ||
| SenderCostRecoveryCode | SenderCostRecoveryCode | Sender Recovery Indicator | ||
| PartProfitabilitySgmtIsAssgd | PartProfitabilitySgmtIsAssgd | Receiver Profitability Sgmt Is Assigned | ||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| TotalAmountInGlobalCurrency | TotalAmountInGlobalCurrency | Total Amount in Glob. Crcy | ||
| OrderOperation | OrderOperation | Receiver Order Operation | ||
| ReceiverRECompanyCode | ReceiverRECompanyCode | Receiver Real Estate Company Code | ||
| REPartnerBusinessEntity | REPartnerBusinessEntity | Receiver Real Estate Business Entity | ||
| RealEstatePartnerBuilding | RealEstatePartnerBuilding | Receiver Real Estate Building | ||
| RealEstatePartnerProperty | RealEstatePartnerProperty | Receiver Real Estate Property | ||
| REPartnerRentalObject | REPartnerRentalObject | Receiver Real Estate Rental Object | ||
| RealEstatePartnerContract | RealEstatePartnerContract | Receiver Real Estate Contract | ||
| REPartnerServiceChargeKey | REPartnerServiceChargeKey | Receiver Real Estate Service Charge Key | ||
| REPartnerSettlementUnitID | REPartnerSettlementUnitID | Receiver Real Estate Settlement Unit | ||
| PartnerSettlementReferenceDate | PartnerSettlementReferenceDate | Receiver Real Estate Settlement Reference Date | ||
| ParallelAccountingIsActive | ||||
| _Item | _Item | |||
| _OriginalItem | _OriginalItem | |||
| _JournalEntry | _JournalEntry | |||
| _DrctActyAllocCompanyCode | _DrctActyAllocCompanyCode | |||
| _DrctActyAllocSndrCompanyCode | _DrctActyAllocSndrCompanyCode | |||
| _SuccessorReferenceDocument | _SuccessorReferenceDocument | |||
| _CreatedByContactCard | _CreatedByContactCard | |||
| AccountingDocumentTypeName | _AccountingDocumentTypeText | AccountingDocumentTypeName | ||
| ControllingAreaName | _ControllingArea | ControllingAreaName | Long Text | |
| StatusName | _CostRevnReassgmtDocStatusTxt | StatusName | ||
| AllocationPostingTypeText | _CostRevnReassgmtPostgTypeTxt | AllocationPostingTypeText | ||
| FullName | _CreatedByContactCard | FullName | Name | |
| ReferenceDocumentTypeName | _ReferenceDocumentTypeText | ReferenceDocumentTypeName |
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 C_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: CDRCTACTY
CREATE VIEW C_DirectActivityAllocation AS
SELECT
FiscalYear,
ReferenceDocument,
ControllingArea,
FiscalYearForEdit,
cast(ReferenceDocumentForEdit as referencedocument) AS ReferenceDocumentForEdit,
ControllingAreaForEdit,
cast(_Header.CompanyCode as receivercompanycode) AS CompanyCode,
CompanyCodeName,
SenderCompanyCode,
SourceCompanyCodeName,
cast(_Header.AccountingDocument as fis_belnr) AS AccountingDocument,
AccountingDocumentHeaderText,
DocumentDate,
PostingDate,
ExchangeRateDate,
FiscalPeriod,
AccountingDocumentCreationDate,
AccountingDocCreatedByUser,
IsReversal,
IsReversed,
Status,
AllocationPostingType,
ReferenceDocumentType,
ReferenceDocumentContext,
ReversalReferenceDocument,
ReversedReferenceDocument,
PredecessorReferenceDocument,
SuccessorReferenceDocument,
DirectActivityAllocationAction,
PostingFiscalYear,
ControllingBusTransacType,
AccountingDocumentType,
AccountAssignmentType,
PartnerAccountAssignmentType,
CostCtrActivityType,
OriginCostCenter,
PartnerCostCenter,
PartnerWBSElementExternalID,
PartnerWBSElement,
PartnerProjectExternalID,
PartnerProject,
PartnerServiceDocumentType,
PartnerServiceDocument,
PartnerServiceDocumentItem,
PartnerProjectNetwork,
PartnerOrder,
PartnerProjectNetworkActivity,
PartnerCostCtrActivityType,
PartnerCostObject,
PartnerSalesDocument,
PartnerSalesDocumentItem,
WorkItem,
PersonnelNumber,
PartnerBusinessProcess,
Fund,
FunctionalArea,
GrantID,
BudgetPeriod,
PartnerFund,
PartnerFunctionalArea,
PartnerGrant,
PartnerBudgetPeriod,
GLAccount,
Plant,
Material,
BillableControl,
JointVentureCostRecoveryCode,
SenderCostRecoveryCode,
PartProfitabilitySgmtIsAssgd,
GlobalCurrency,
TotalAmountInGlobalCurrency,
OrderOperation,
ReceiverRECompanyCode,
REPartnerBusinessEntity,
RealEstatePartnerBuilding,
RealEstatePartnerProperty,
REPartnerRentalObject,
RealEstatePartnerContract,
REPartnerServiceChargeKey,
REPartnerSettlementUnitID,
PartnerSettlementReferenceDate,
cast('X' as boolean) AS ParallelAccountingIsActive,
_AccountingDocumentTypeText.AccountingDocumentTypeName AS AccountingDocumentTypeName,
_ControllingArea.ControllingAreaName AS ControllingAreaName,
_CostRevnReassgmtDocStatusTxt.StatusName AS StatusName,
_CostRevnReassgmtPostgTypeTxt.AllocationPostingTypeText AS AllocationPostingTypeText,
_CreatedByContactCard.FullName AS FullName,
_ReferenceDocumentTypeText.ReferenceDocumentTypeName AS ReferenceDocumentTypeName
FROM I_DirectActivityAllocationTP AS _Header
LEFT OUTER JOIN C_DirectActivityAllocationItem AS _Item ON FiscalYear = _Item.FiscalYear AND ReferenceDocument = _Item.ReferenceDocument AND ControllingArea = _Item.ControllingArea -- association [1..*]
LEFT OUTER JOIN C_DrctActyAllocationActiveItem AS _OriginalItem ON PostingFiscalYear = _OriginalItem.FiscalYearForEdit AND ReversalReferenceDocument = _OriginalItem.ReferenceDocumentForEdit AND ControllingAreaForEdit = _OriginalItem.ControllingAreaForEdit -- association [1..*]
LEFT OUTER JOIN C_DrctActyAllocJournalEntry AS _JournalEntry ON ControllingAreaForEdit = _JournalEntry.ControllingArea AND ReferenceDocumentForEdit = _JournalEntry.ReferenceDocument AND ReferenceDocumentType = _JournalEntry.ReferenceDocumentType AND ReferenceDocumentContext = _JournalEntry.ReferenceDocumentContext -- association [1..*]
LEFT OUTER JOIN C_DrctActyAllocCompanyCode AS _DrctActyAllocCompanyCode ON ControllingAreaForEdit = _DrctActyAllocCompanyCode.ControllingArea AND FiscalYearForEdit = _DrctActyAllocCompanyCode.FiscalYear AND ReferenceDocumentForEdit = _DrctActyAllocCompanyCode.ReferenceDocument -- association [1..*]
LEFT OUTER JOIN C_DrctActyAllocSndrCompanyCode AS _DrctActyAllocSndrCompanyCode ON ControllingAreaForEdit = _DrctActyAllocSndrCompanyCode.ControllingArea AND FiscalYearForEdit = _DrctActyAllocSndrCompanyCode.FiscalYear AND ReferenceDocumentForEdit = _DrctActyAllocSndrCompanyCode.ReferenceDocument -- association [1..*]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByContactCard ON AccountingDocCreatedByUser = _CreatedByContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_DrctActyAllocSuccssrRefItem AS _SuccessorReferenceDocument ON ControllingAreaForEdit = _SuccessorReferenceDocument.ControllingArea AND ReferenceDocumentForEdit = _SuccessorReferenceDocument.PredecessorReferenceDocument -- association [0..*]
LEFT OUTER JOIN I_CostRevnReassgmtDocStatusTxt AS _CostRevnReassgmtDocStatusTxt ON Status = _CostRevnReassgmtDocStatusTxt.Status AND _CostRevnReassgmtDocStatusTxt.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_CostRevnReassgmtPostgTypeTxt AS _CostRevnReassgmtPostgTypeTxt ON AllocationPostingType = _CostRevnReassgmtPostgTypeTxt.AllocationPostingType AND _CostRevnReassgmtPostgTypeTxt.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingAreaForEdit = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentTypeText AS _AccountingDocumentTypeText ON AccountingDocumentType = _AccountingDocumentTypeText.AccountingDocumentType AND _AccountingDocumentTypeText.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_ReferenceDocumentTypeText AS _ReferenceDocumentTypeText ON ReferenceDocumentType = _ReferenceDocumentTypeText.ReferenceDocumentType AND _ReferenceDocumentTypeText.Language = $session.system_language -- association [1..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