atov_ppl_merge_changes

DDL: ATOV_PPL_MERGE_CHANGES Type: view_entity Package: S_ATO_PARALLEL_PROJECT_LINE

ATO - PLL Merge Changes

atov_ppl_merge_changes is a CDS View that provides data about "ATO - PLL Merge Changes" in SAP S/4HANA. It reads from 3 data sources (ato_cols, atov_ppl_merge_changes_base, ato_ppl_staging) and exposes 12 fields with key fields ItemType, ItemId. It has 4 associations to related views. Part of development package S_ATO_PARALLEL_PROJECT_LINE.

Data Sources (3)

SourceAliasJoin Type
ato_cols Collection left_outer
atov_ppl_merge_changes_base Item from
ato_ppl_staging StagedItem left_outer

Associations (4)

CardinalityTargetAliasCondition
[0..1] ATOV_TEXT_ADAPTATION_TYPE Adaptation_Type_Texts Adaptation_Type_Texts.code = Item.ItemType and Adaptation_Type_Texts.language = $session.system_language
[1] ATOV_TEXT_COL_ITEM_STATUS Col_Item_Status_Texts Col_Item_Status_Texts.code = Item.Status and Col_Item_Status_Texts.language = $session.system_language
[1] ATOV_USER Changed_By_Description Changed_By_Description.name = Item.LastNotificationBy
[1] ATOV_ADAPTATION_TYPE Adaptation_Type Adaptation_Type.code = Item.ItemType

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_ALLOWED view
EndUserText.label ATO - PLL Merge Changes view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY ItemType atov_ppl_merge_changes_base ItemType
KEY ItemId atov_ppl_merge_changes_base ItemId
ItemDescription atov_ppl_merge_changes_base ItemDescription
ChangedAt atov_ppl_merge_changes_base LastNotificationAt
ChangedBy atov_ppl_merge_changes_base LastNotificationBy
DifferenceToMainline atov_ppl_merge_changes_base Status
CollectionId ato_cols collection_id
CollectionDescription ato_cols description_text
Adaptation_Type_Texts Adaptation_Type_Texts
Adaptation_Type Adaptation_Type
Col_Item_Status_Texts Col_Item_Status_Texts
Changed_By_Description Changed_By_Description
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_ALLOWED
@EndUserText.label: 'ATO - PLL Merge Changes'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #S,
  dataClass: #MIXED
}
define view entity atov_ppl_merge_changes
  as select from    atov_ppl_merge_changes_base as Item
    left outer join ato_ppl_staging             as StagedItem on  Item.ItemType     = StagedItem.item_type
                                                              and Item.ItemId       = StagedItem.item_id
                                                              and StagedItem.action = 'M'                         // include only items for merge 

    left outer join ato_cols                    as Collection on  Collection.category = 'M'
                                                              and Collection.status   = ''                        // and item is changeable


  association [0..1] to ATOV_TEXT_ADAPTATION_TYPE as Adaptation_Type_Texts     on  Adaptation_Type_Texts.code     = Item.ItemType
                                                                             and Adaptation_Type_Texts.language = $session.system_language

  association [1]    to ATOV_TEXT_COL_ITEM_STATUS as Col_Item_Status_Texts      on  Col_Item_Status_Texts.code     = Item.Status
                                                                             and Col_Item_Status_Texts.language = $session.system_language

  association [1]    to ATOV_USER                 as Changed_By_Description    on  Changed_By_Description.name = Item.LastNotificationBy

  association [1]    to ATOV_ADAPTATION_TYPE      as Adaptation_Type          on  Adaptation_Type.code = Item.ItemType

{
  key Item.ItemType                              as ItemType,
  key Item.ItemId                                as ItemId,
      Item.ItemDescription                       as ItemDescription,
      Item.LastNotificationAt                    as ChangedAt,
      Item.LastNotificationBy                    as ChangedBy,
      Item.Status                                as DifferenceToMainline,
      case
        when StagedItem.item_id is null
        then cast('' as abap_boolean preserving type )                  
        else cast('X' as abap_boolean preserving type )                 
      end                                        as IncludedInStaging,

      Collection.collection_id                   as CollectionId,
      Collection.description_text                as CollectionDescription,

      /* Associations */
      Adaptation_Type_Texts,
      Adaptation_Type,
      Col_Item_Status_Texts,
      Changed_By_Description
}