A_DirectActivityAllocation

DDL: A_DIRECTACTIVITYALLOCATION Type: view_entity CONSUMPTION

Direct Activity Allocation Header

A_DirectActivityAllocation is a Consumption CDS View that provides data about "Direct Activity Allocation Header" in SAP S/4HANA. It reads from 1 data source (R_DirectActivityAllocationTP) and exposes 28 fields with key fields FiscalYear, ReferenceDocument, ControllingArea, ReferenceDocumentType, ReferenceDocumentContext.

Data Sources (1)

SourceAliasJoin Type
R_DirectActivityAllocationTP R_DirectActivityAllocationTP projection

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Direct Activity Allocation Header view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
OData.entityType.name DirectActivityAllocation_Type view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY FiscalYear FiscalYear
KEY ReferenceDocument ReferenceDocument
KEY ControllingArea ControllingArea
KEY ReferenceDocumentType ReferenceDocumentType
KEY ReferenceDocumentContext ReferenceDocumentContext
ControllingAreaName _ControllingArea ControllingAreaName
AccountingDocumentHeaderText AccountingDocumentHeaderText
DocumentDate DocumentDate
PostingDate PostingDate
FiscalPeriod FiscalPeriod
ExchangeRateDate ExchangeRateDate
FiscalYearPeriod FiscalYearPeriod
AccountingDocumentCreationDate AccountingDocumentCreationDate
AccountingDocCreatedByUser AccountingDocCreatedByUser
FullName _CreatedByContactCard FullName
ControllingDocumentStatus ControllingDocumentStatus
StatusName _ControllingDocumentStatusTxt StatusName
AllocationPostingType AllocationPostingType
AllocationPostingTypeText _AllocationPostingTypeTxt AllocationPostingTypeText
ReferenceDocumentTypeName _ReferenceDocumentTypeText ReferenceDocumentTypeName
PredecessorReferenceDocument PredecessorReferenceDocument Reposted Reference Document
ReversalReferenceDocument ReversalReferenceDocument
ReversedReferenceDocument ReversedReferenceDocument
GlobalCurrency GlobalCurrency
TotalAmountInGlobalCurrency TotalAmountInGlobalCurrency Total Amount in Glob. Crcy
AccountingDocumentType AccountingDocumentType
AccountingDocumentTypeName _AccountingDocumentTypeText AccountingDocumentTypeName
ControllingBusTransacType ControllingBusTransacType
@AccessControl.authorizationCheck: #MANDATORY

@EndUserText.label: 'Direct Activity Allocation Header'
@Metadata.ignorePropagatedAnnotations: true

@ObjectModel: {
  usageType: {
    serviceQuality: #C,
    sizeCategory: #XXL,
    dataClass: #TRANSACTIONAL
  }
}
@OData.entityType.name:'DirectActivityAllocation_Type'
@VDM: {
  viewType: #CONSUMPTION,
  usage.type:[#TRANSACTIONAL_PROCESSING_SERVICE],
  lifecycle.contract.type: #PUBLIC_REMOTE_API
}

define root view entity A_DirectActivityAllocation
  provider contract transactional_query
  as projection on R_DirectActivityAllocationTP

{  
  key     FiscalYear,
  key     ReferenceDocument,
  key     ControllingArea,
  key     ReferenceDocumentType,
  key     ReferenceDocumentContext,

          @Semantics.text: true
          _ControllingArea.ControllingAreaName,          
          
          AccountingDocumentHeaderText,
          
          DocumentDate,
          PostingDate,
          FiscalPeriod,
          ExchangeRateDate,
          FiscalYearPeriod,
          AccountingDocumentCreationDate,
          AccountingDocCreatedByUser,
          _CreatedByContactCard.FullName,
          ControllingDocumentStatus,
          _ControllingDocumentStatusTxt.StatusName,
          AllocationPostingType,
          _AllocationPostingTypeTxt.AllocationPostingTypeText,
          _ReferenceDocumentTypeText.ReferenceDocumentTypeName,
          @EndUserText.label: 'Reposted Reference Document'
          @EndUserText.quickInfo: 'Reposted Reference Document'
          PredecessorReferenceDocument,
          ReversalReferenceDocument,
          ReversedReferenceDocument,
          @Semantics.currencyCode:true
          GlobalCurrency,          
          @Semantics: { amount : {currencyCode: 'GlobalCurrency'} }
          @EndUserText.label: 'Total Amount in Glob. Crcy'
          @EndUserText.quickInfo: 'Total Amount in Global Currency'  
          TotalAmountInGlobalCurrency,
          AccountingDocumentType,
          _AccountingDocumentTypeText.AccountingDocumentTypeName,
          
          ControllingBusTransacType,
          
          /* Associations */
          _Item : redirected to composition child A_DirectActivityAllocationItem


}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACCOUNTINGDOCUMENTTYPETEXT",
"I_CONTROLLINGAREA",
"I_REFERENCEDOCUMENTTYPETEXT",
"I_USERCONTACTCARD",
"R_COSTACCTGDOCPOSTGTYPETEXT",
"R_COSTACCTGDOCSTSDOMAINVALTXT",
"R_DIRECTACTIVITYALLOCATIONTP"
],
"ASSOCIATED":
[
"A_DIRECTACTIVITYALLOCATIONITEM",
"R_DRCTACTIVITYALLOCATIONITEMTP"
],
"BASE":
[
"R_DIRECTACTIVITYALLOCATIONTP"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/