I_AllocationCycleTP

DDL: I_ALLOCATIONCYCLETP SQL: ALLOCCYCLETP Type: view TRANSACTIONAL

Allocation Cycle TP

I_AllocationCycleTP is a Transactional CDS View that provides data about "Allocation Cycle TP" in SAP S/4HANA. It reads from 2 data sources (I_AllocationContextType, I_AllocationCycle) and exposes 57 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate. It has 7 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_AllocationContextType Context inner
I_AllocationCycle I_AllocationCycle from

Associations (7)

CardinalityTargetAliasCondition
[0..1] I_AllocTopDwnDistrCycTmplTP _Template $projection.AllocationType = _Template.AllocationType and $projection.AllocationCycle = _Template.AllocationCycle and $projection.AllocationCycleStartDate = _Template.AllocationCycleStartDate
[0..*] I_AllocationSegmentTP _Segment $projection.AllocationType = _Segment.AllocationType and $projection.AllocationCycle = _Segment.AllocationCycle and $projection.AllocationCycleStartDate = _Segment.AllocationCycleStartDate
[0..*] I_AllocationCycleKeyFieldTP _Field $projection.AllocationType = _Field.AllocationType and $projection.AllocationCycle = _Field.AllocationCycle and $projection.AllocationCycleStartDate = _Field.AllocationCycleStartDate
[0..*] I_AllocationCycleFieldGroupTP _FieldGroup $projection.AllocationType = _FieldGroup.AllocationType and $projection.AllocationCycle = _FieldGroup.AllocationCycle and $projection.AllocationCycleStartDate = _FieldGroup.AllocationCycleStartDate
[0..*] I_AllocationFieldDerivationTP _FieldDerivation $projection.AllocationType = _FieldDerivation.AllocationType and $projection.AllocationCycle = _FieldDerivation.AllocationCycle and $projection.AllocationCycleStartDate = _FieldDerivation.AllocationCycleStartDate
[0..*] I_AllocationCycleNoteTP _CycleNote $projection.AllocationType = _CycleNote.AllocationType and $projection.AllocationCycle = _CycleNote.AllocationCycle and $projection.AllocationCycleStartDate = _CycleNote.AllocationCycleStartDate
[0..*] I_AllocTagObjectAssignmentTP _CycleTag $projection.AllocationType = _CycleTag.AllocationType and $projection.AllocationCycle = _CycleTag.AllocationCycle and $projection.AllocationCycleStartDate = _CycleTag.AllocationCycleStartDate

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName ALLOCCYCLETP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Allocation Cycle TP view
VDM.viewType #TRANSACTIONAL view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.modelCategory #BUSINESS_OBJECT view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.draftEnabled true view
ObjectModel.writeDraftPersistence ALLOCCYCLETPD view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.entityChangeStateId EXTERNAL_CALCULATION view

Fields (57)

KeyFieldSource TableSource FieldDescription
KEY AllocationType I_AllocationCycle AllocationType
KEY AllocationCycle AllocationCycle
KEY AllocationCycleStartDate
AllocationCycleEndDate
AllocationCycleNameText
AllocationStatus AllocationStatus
AllocationFrequency AllocationFrequency
AllocationCreateDate AllocationCreateDate
CreatedByUser CreatedByUser
LastChangeTime
LastChangeDate LastChangeDate
LastChangedByUser LastChangedByUser
AllocationLastExecutedDate AllocationLastExecutedDate
AllocationLastExecutedByUser AllocationLastExecutedByUser
AllocationLastExecutionTime AllocationLastExecutionTime
AllocationIsProcessed AllocationIsProcessed
AllocationCycleSet AllocationCycleSet
ScaleNegativeTracingFactor ScaleNegativeTracingFactor
AllocationPostingType AllocationPostingType
AllocationActualPlanVariant AllocationActualPlanVariant
AllocationJob AllocationJob
AllocationIsCumulative AllocationIsCumulative
AllocIsCumulativeOptimized AllocIsCumulativeOptimized
AllocHasAggregatedProcess AllocHasAggregatedProcess
AllocationCycleRunGroup AllocationCycleRunGroup
AllocationSubstitutionName AllocationSubstitutionName
AllocFundMgmtIsActive AllocFundMgmtIsActive
AllocationIsBalanceSheetActive AllocationIsBalanceSheetActive
AllocHasDerivdFundFrmRcpnt AllocHasDerivdFundFrmRcpnt
AllocIsDerivdFuncAreaFrmRcpnt AllocIsDerivdFuncAreaFrmRcpnt
AllocIsDerivdGrantFrmRcpnt AllocIsDerivdGrantFrmRcpnt
AllocIsDerivdBudgedPerdRcpnt AllocIsDerivdBudgedPerdRcpnt
AllocationLedgerGroup AllocationLedgerGroup
AllocationIsPeriodShiftActive AllocationIsPeriodShiftActive
AllocationPeriodDeltaSize AllocationPeriodDeltaSize
AllocIsProdnMnthDerivd AllocIsProdnMnthDerivd
AllocationIsVariableQuantity AllocationIsVariableQuantity
AllocationValuationType AllocationValuationType
AllocationCycleIsIterative AllocationCycleIsIterative
CompanyCodeForEdit
LedgerForEdit
AllocationCycleCategoryForEdit
TopDwnDistrTmplName
AllocationCycleIsConsistent
AllocationTagID
CycleIsDeltaProcessEnabled CycleIsDeltaProcessEnabled
CycleIsParallelLedgerEnabled CycleIsParallelLedgerEnabled
CycleIsAttributedLineItmEnbld CycleIsAttributedLineItmEnbld
_Segment _Segment
_Field _Field
_Context _Context
_ActualPlanText _ActualPlanText
_Template _Template
_FieldGroup _FieldGroup
_FieldDerivation _FieldDerivation
_CycleNote _CycleNote
_CycleTag _CycleTag
@AbapCatalog.sqlViewName: 'ALLOCCYCLETP'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Allocation Cycle TP'
@VDM.viewType: #TRANSACTIONAL

@AccessControl.personalData.blocking:#NOT_REQUIRED

@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #M

@ObjectModel:
{
  modelCategory: #BUSINESS_OBJECT,
  compositionRoot: true,
  transactionalProcessingEnabled:true,
  draftEnabled: true,
  writeDraftPersistence: 'ALLOCCYCLETPD',
  semanticKey: ['AllocationType', 'AllocationCycle', 'AllocationCycleStartDate' ],
  createEnabled: false,
  updateEnabled: true,
  deleteEnabled: true,

  entityChangeStateId: 'EXTERNAL_CALCULATION'
  //entityChangeStateId: 'LastChangeTime',


//  lifecycle.draft: {

//    expiryInterval: 'P28D',

//    expiryBehavior: #RELATIVE_TO_LAST_CHANGE

//  },

//  lifecycle.enqueue: {

//    expiryBehavior: #RELATIVE_TO_LAST_CHANGE,  // Default #RELATIVE_TO_LAST_CHANGE

//    expiryInterval: 'P28D'                    // Default 'PT15M'

//  },

//  lifecycle.processing: {

//    expiryBehavior: #RELATIVE_TO_LAST_CHANGE,  // Default #RELATIVE_TO_LAST_CHANGE

//    expiryInterval: 'P28D'                    // Default 'PT30M'

//  }

}

define view I_AllocationCycleTP
  as select from I_AllocationCycle

    inner join   I_AllocationContextType as Context on Context.AllocationType = I_AllocationCycle.AllocationType

  association [0..1] to I_AllocTopDwnDistrCycTmplTP   as _Template        on  $projection.AllocationType           = _Template.AllocationType
                                                                          and $projection.AllocationCycle          = _Template.AllocationCycle
                                                                          and $projection.AllocationCycleStartDate = _Template.AllocationCycleStartDate

  association [0..*] to I_AllocationSegmentTP         as _Segment         on  $projection.AllocationType           = _Segment.AllocationType
                                                                          and $projection.AllocationCycle          = _Segment.AllocationCycle
                                                                          and $projection.AllocationCycleStartDate = _Segment.AllocationCycleStartDate

  association [0..*] to I_AllocationCycleKeyFieldTP   as _Field           on  $projection.AllocationType           = _Field.AllocationType
                                                                          and $projection.AllocationCycle          = _Field.AllocationCycle
                                                                          and $projection.AllocationCycleStartDate = _Field.AllocationCycleStartDate

  association [0..*] to I_AllocationCycleFieldGroupTP as _FieldGroup      on  $projection.AllocationType           = _FieldGroup.AllocationType
                                                                          and $projection.AllocationCycle          = _FieldGroup.AllocationCycle
                                                                          and $projection.AllocationCycleStartDate = _FieldGroup.AllocationCycleStartDate

  association [0..*] to I_AllocationFieldDerivationTP as _FieldDerivation on  $projection.AllocationType           = _FieldDerivation.AllocationType
                                                                          and $projection.AllocationCycle          = _FieldDerivation.AllocationCycle
                                                                          and $projection.AllocationCycleStartDate = _FieldDerivation.AllocationCycleStartDate

  association [0..*] to I_AllocationCycleNoteTP       as _CycleNote       on  $projection.AllocationType           = _CycleNote.AllocationType
                                                                          and $projection.AllocationCycle          = _CycleNote.AllocationCycle
                                                                          and $projection.AllocationCycleStartDate = _CycleNote.AllocationCycleStartDate


  association [0..*] to I_AllocTagObjectAssignmentTP  as _CycleTag        on  $projection.AllocationType           = _CycleTag.AllocationType
                                                                          and $projection.AllocationCycle          = _CycleTag.AllocationCycle
                                                                          and $projection.AllocationCycleStartDate = _CycleTag.AllocationCycleStartDate

  //  association [0..*] to P_AllocationCycleChange    as _Change        on  $projection.AllocationType           = _Change.AllocationType

  //                                                                     and $projection.AllocationCycle          = _Change.AllocationCycle

  //                                                                     and $projection.AllocationCycleStartDate = _Change.AllocationCycleStartDate

{
  key I_AllocationCycle.AllocationType,

  key AllocationCycle,

  key cast( case when AllocationCycleStartDate is null then '20180101' else AllocationCycleStartDate end as fco_alloc_valid_from ) as AllocationCycleStartDate,

      //      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'

      //      @ObjectModel.enabled: 'EXTERNAL_CALCULATION'

      //      I_AllocationCycle.AllocationType as AllocationTypeForEdit,

      //      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'

      //      @ObjectModel.enabled: 'EXTERNAL_CALCULATION'

      //      AllocationCycle as AllocationCycleForEdit,

      //      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'

      //      @ObjectModel.enabled: 'EXTERNAL_CALCULATION'

      //      cast( case when AllocationCycleStartDate is null then '20180101' else AllocationCycleStartDate end as fco_alloc_valid_from ) as AllocationStartDateForEdit,

      //@ObjectModel.mandatory: true

      cast( AllocationCycleEndDate as fco_alloc_valid_to )                                                                         as AllocationCycleEndDate,
      //@ObjectModel.readOnly: true

      //@ObjectModel.mandatory: true

      I_AllocationCycle._Text.AllocationCycleNameText,

      AllocationStatus,
      AllocationFrequency,
      AllocationCreateDate,
      @ObjectModel.readOnly: true
      CreatedByUser,
      //change date hash

      //cast(LastChangeDate as hash160) as LastChangeTime,


      cast(LastChangeTime as hash160)                                                                                              as LastChangeTime,

      //      cast(dats_tims_to_tstmp( LastChangeDate,

      //                          AllocationLastExecutionTime,

      //                          abap_system_timezone( $session.client,'NULL' ),

      //                          $session.client,

      //                         'NULL' ) as hash160) as LastChangeTime,


      //cast(tstmp_current_utctimestamp() as hash160) as LastChangeTime,

      LastChangeDate,

      @ObjectModel.readOnly: true
      LastChangedByUser,
      AllocationLastExecutedDate,
      @ObjectModel.readOnly: true
      AllocationLastExecutedByUser,
      AllocationLastExecutionTime,

      cast(dats_tims_to_tstmp( AllocationLastExecutedDate ,
                          AllocationLastExecutionTime,
                          abap_system_timezone( $session.client,'NULL' ),
                          $session.client,
                         'NULL' ) as fco_alloc_cycle_lastexec_dt)                                                                  as AllocLastExecutionDateTime,

      AllocationIsProcessed,
      AllocationCycleSet,
      ScaleNegativeTracingFactor,
      AllocationPostingType,

      AllocationActualPlanVariant,
      AllocationJob,
      AllocationIsCumulative,
      AllocIsCumulativeOptimized,
      AllocHasAggregatedProcess,
      AllocationCycleRunGroup,
      AllocationSubstitutionName,
      AllocFundMgmtIsActive,
      AllocationIsBalanceSheetActive,
      AllocHasDerivdFundFrmRcpnt,
      AllocIsDerivdFuncAreaFrmRcpnt,
      AllocIsDerivdGrantFrmRcpnt,
      AllocIsDerivdBudgedPerdRcpnt,
      AllocationLedgerGroup,
      AllocationIsPeriodShiftActive,
      AllocationPeriodDeltaSize,
      AllocIsProdnMnthDerivd,
      AllocationIsVariableQuantity,
      AllocationValuationType,
      AllocationCycleIsIterative,

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      @ObjectModel.enabled: 'EXTERNAL_CALCULATION'
      cast('' as fis_bukrs)                                                                                                        as CompanyCodeForEdit,

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      @ObjectModel.enabled: 'EXTERNAL_CALCULATION'
      cast('' as fis_rldnr)                                                                                                        as LedgerForEdit,

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      @ObjectModel.enabled: 'EXTERNAL_CALCULATION'
      cast('' as fcom_category)                                                                                                    as AllocationCycleCategoryForEdit,

      //      @ObjectModel.readOnly: true

      //      cast('' as boolean) as AllocationCycleIsInconsistent,


      @ObjectModel.readOnly: true
      cast ('' as fco_alloc_template  )                                                                                             as TopDwnDistrTmplName,

      @ObjectModel.readOnly: true
      cast('' as boolean)                                                                                                          as AllocationCycleIsConsistent,
      
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      @ObjectModel.enabled: 'EXTERNAL_CALCULATION'
      cast('' as fco_tag_id) as AllocationTagID,
      
      CycleIsDeltaProcessEnabled,
      
      CycleIsParallelLedgerEnabled,               
      
      CycleIsAttributedLineItmEnbld,

      @ObjectModel.association.type: #TO_COMPOSITION_CHILD
      _Segment,
      @ObjectModel.association.type: #TO_COMPOSITION_CHILD
      _Field,

      _Context,
      _ActualPlanText,

      @ObjectModel.association.type: #TO_COMPOSITION_CHILD
      _Template,

      @ObjectModel.association.type: #TO_COMPOSITION_CHILD
      _FieldGroup,

      @ObjectModel.association.type: #TO_COMPOSITION_CHILD
      _FieldDerivation,

      @ObjectModel.association.type: #TO_COMPOSITION_CHILD
      _CycleNote,
      
      @ObjectModel.association.type: #TO_COMPOSITION_CHILD
      _CycleTag
}