I_AllocationRun

DDL: I_ALLOCATIONRUN SQL: IALLOCATIONRUN Type: view BASIC

Allocation Run

I_AllocationRun is a Basic CDS View that provides data about "Allocation Run" in SAP S/4HANA. It reads from 1 data source (alloc_run_info) and exposes 42 fields with key field UniversalAllocationRun. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
alloc_run_info alloc_run_info from

Associations (7)

CardinalityTargetAliasCondition
[0..*] I_AllocationRunStatusText _StatusText $projection.AllocationRunStatus = _StatusText.AllocationRunStatus
[0..*] I_AllocActualPlanVariantText _ActualPlanText $projection.AllocationActualPlanVariant = _ActualPlanText.AllocationActualPlanVariant
[1] I_UserContactCard _UserContactCard $projection.AllocationRunUser = _UserContactCard.ContactCardID
[0..1] I_AllocationContextType _Context $projection.AllocationType = _Context.AllocationType
[0..*] I_AllocationPostingTypeText _PostingTypeText $projection.AllocationPostingType = _PostingTypeText.AllocationPostingType
[0..*] P_AllocationRunTestText _TestText _TestText.AllocationRunIsTest = $projection.AllocationRunIsTest
[0..*] P_AllocationRunReversedText _ReversedText _ReversedText.AllocationRunIsReversed = $projection.AllocationRunIsReversed

Annotations (12)

NameValueLevelField
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName IALLOCATIONRUN view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Allocation Run view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #BASIC view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY UniversalAllocationRun run_id
UniversalAllocationRunName name
AllocationRunStartDate start_date
AllocationRunStartTime start_time
AllocationRunDurationInSeconds run_duration
AllocationRunEndDate end_date
AllocationRunEndTime end_time
AllocationRunBookingDate book_date
AllocationRunBookingTime book_time
AllocRunBkgDurationInSeconds book_duration
AllocationRunUser
Ledger ledger
AllocationType alloc_context
AllocationContextTypeText
AllocationPostingType alloc_type
AllocationPostingTypeText
AllocationActualPlanVariant actual_plan
AllocActualPlanVariantText
AllocationRunStatus status
AllocationRunStatusText
FiscalYear fiscal_year
AllocationRunStartPeriod start_period
AllocationRunEndPeriod end_period
AllocRunReferenceStartPeriod ref_start_period
AllocRunReferenceEndPeriod ref_end_period
AllocRunRefStartFiscalYear ref_fiscal_year
AllocRunRefEndFiscalYear ref_to_fiscal_year
AllocRunHasCumulatedRefPeriods cumulative
AllocationRunIsTest test_run
AllocationRunIsTestText
AllocationRunIsReversed reversed
AllocationRunIsReversedText
DocumentType document_type
AllocationRunScheduledJob
AllocationRunJob
AllocationRunHasReferenceData stored_ref_data
HasNote note_exists
AllocationRunIsCumulative cumulative_run
AllocRunHasIncrmtlProcessing incremental_processing
AllocationRunTriggerSource trigger_source
_UserContactCard _UserContactCard
_Context _Context
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'IALLOCATIONRUN'
@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED

@ClientHandling.algorithm: #SESSION_VARIABLE

@EndUserText.label: 'Allocation Run'

@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #M

@VDM.viewType: #BASIC

define view I_AllocationRun
  as select from alloc_run_info

  association [0..*] to I_AllocationRunStatusText    as _StatusText      on $projection.AllocationRunStatus = _StatusText.AllocationRunStatus

  association [0..*] to I_AllocActualPlanVariantText as _ActualPlanText  on $projection.AllocationActualPlanVariant = _ActualPlanText.AllocationActualPlanVariant

  association [1]    to I_UserContactCard            as _UserContactCard on $projection.AllocationRunUser = _UserContactCard.ContactCardID

  association [0..1] to I_AllocationContextType      as _Context         on $projection.AllocationType = _Context.AllocationType

  association [0..*] to I_AllocationPostingTypeText  as _PostingTypeText on $projection.AllocationPostingType = _PostingTypeText.AllocationPostingType

  association [0..*] to P_AllocationRunTestText      as _TestText        on _TestText.AllocationRunIsTest = $projection.AllocationRunIsTest

  association [0..*] to P_AllocationRunReversedText  as _ReversedText    on _ReversedText.AllocationRunIsReversed = $projection.AllocationRunIsReversed

{
  key run_id                                                         as UniversalAllocationRun,
      name                                                           as UniversalAllocationRunName,
      start_date                                                     as AllocationRunStartDate,
      start_time                                                     as AllocationRunStartTime,
      run_duration                                                   as AllocationRunDurationInSeconds, //AllocationRunDuration,

      end_date                                                       as AllocationRunEndDate,
      end_time                                                       as AllocationRunEndTime,
      book_date                                                      as AllocationRunBookingDate,
      book_time                                                      as AllocationRunBookingTime,
      book_duration                                                  as AllocRunBkgDurationInSeconds, //AllocationRunBookingDuration,

      cast(run_user as fco_alloc_run_executed_user preserving type ) as AllocationRunUser,
      ledger                                                         as Ledger,
      alloc_context                                                  as AllocationType,
      _Context._Text[1:Language = $session.system_language].AllocationContextTypeText,
      alloc_type                                                     as AllocationPostingType,
      _PostingTypeText[1:Language = $session.system_language].AllocationPostingTypeText,
      actual_plan                                                    as AllocationActualPlanVariant,
      _ActualPlanText[1:Language = $session.system_language].AllocActualPlanVariantText,
      status                                                         as AllocationRunStatus,
      _StatusText[1:Language = $session.system_language].AllocationRunStatusText,
      fiscal_year                                                    as FiscalYear,
      start_period                                                   as AllocationRunStartPeriod,
      end_period                                                     as AllocationRunEndPeriod,
      ref_start_period                                               as AllocRunReferenceStartPeriod,
      ref_end_period                                                 as AllocRunReferenceEndPeriod,
      ref_fiscal_year                                                as AllocRunRefStartFiscalYear,
      ref_to_fiscal_year                                             as AllocRunRefEndFiscalYear,
      cumulative                                                     as AllocRunHasCumulatedRefPeriods,
      test_run                                                       as AllocationRunIsTest,
      _TestText[1:Language = $session.system_language].AllocationRunIsTestText,
      reversed                                                       as AllocationRunIsReversed,
      _ReversedText[1:Language = $session.system_language].AllocationRunIsReversedText,
      document_type                                                  as DocumentType,
      cast(jobcount as fco_alloc_job_id preserving type )            as AllocationRunScheduledJob,
      cast(jobname  as fco_alloc_job_name preserving type )          as AllocationRunJob,
      stored_ref_data                                                as AllocationRunHasReferenceData,
      cast(case
        when run_type is initial and test_run = 'X'
          then 'T'
        when run_type is initial and test_run = ' '
          then 'R'
        else run_type
        end as fco_alloc_run_type preserving type )                  as AllocationRunType,
      //      run_type                                              as AllocationRunType,

      note_exists                                                    as HasNote,
      cumulative_run                                                 as AllocationRunIsCumulative,
      incremental_processing                                         as AllocRunHasIncrmtlProcessing,
      trigger_source                                                 as AllocationRunTriggerSource,

      _UserContactCard,
      _Context

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ALLOCACTUALPLANVARIANTTEXT",
"I_ALLOCATIONCONTEXTTYPE",
"I_ALLOCATIONCONTEXTTYPETEXT",
"I_ALLOCATIONPOSTINGTYPETEXT",
"I_ALLOCATIONRUNSTATUSTEXT",
"P_ALLOCATIONRUNREVERSEDTEXT",
"P_ALLOCATIONRUNTESTTEXT",
"ALLOC_RUN_INFO"
],
"ASSOCIATED":
[
"I_ALLOCACTUALPLANVARIANTTEXT",
"I_ALLOCATIONCONTEXTTYPE",
"I_ALLOCATIONPOSTINGTYPETEXT",
"I_ALLOCATIONRUNSTATUSTEXT",
"I_USERCONTACTCARD",
"P_ALLOCATIONRUNREVERSEDTEXT",
"P_ALLOCATIONRUNTESTTEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/