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. It is exposed through 1 OData service (ASQL_F3697). Part of development package ODATA_MANAGE_DRCT_ACTY_ALLOC.
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 |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F3697 | ASQL_F3697 | C2 | NOT_RELEASED |
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 | ||
| ControllingAreaName | _ControllingArea | ControllingAreaName | Long Text | |
| 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 | ||
| FullName | _CreatedByContactCard | FullName | Name | |
| IsReversal | IsReversal | Reversal doc. | ||
| IsReversed | IsReversed | Reversed? | ||
| Status | Status | Workflow Status | ||
| StatusName | _CostRevnReassgmtDocStatusTxt | StatusName | ||
| AllocationPostingType | AllocationPostingType | Posting Type | ||
| AllocationPostingTypeText | _CostRevnReassgmtPostgTypeTxt | AllocationPostingTypeText | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| ReferenceDocumentTypeName | _ReferenceDocumentTypeText | ReferenceDocumentTypeName | ||
| 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 | ||
| AccountingDocumentTypeName | _AccountingDocumentTypeText | AccountingDocumentTypeName | ||
| 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 |
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,
_ControllingArea.ControllingAreaName AS ControllingAreaName,
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,
_CreatedByContactCard.FullName AS FullName,
IsReversal,
IsReversed,
Status,
_CostRevnReassgmtDocStatusTxt.StatusName AS StatusName,
AllocationPostingType,
_CostRevnReassgmtPostgTypeTxt.AllocationPostingTypeText AS AllocationPostingTypeText,
ReferenceDocumentType,
_ReferenceDocumentTypeText.ReferenceDocumentTypeName AS ReferenceDocumentTypeName,
ReferenceDocumentContext,
ReversalReferenceDocument,
ReversedReferenceDocument,
PredecessorReferenceDocument,
SuccessorReferenceDocument,
DirectActivityAllocationAction,
PostingFiscalYear,
ControllingBusTransacType,
AccountingDocumentType,
_AccountingDocumentTypeText.AccountingDocumentTypeName AS AccountingDocumentTypeName,
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
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
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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