I_ChangeRecdRefRecipeTP_2

DDL: I_CHANGERECDREFRECIPETP_2 SQL: ICHGRECREFRCPTP2 Type: view TRANSACTIONAL

Change Record Reference Object Recipe

I_ChangeRecdRefRecipeTP_2 is a Transactional CDS View that provides data about "Change Record Reference Object Recipe" in SAP S/4HANA. It reads from 1 data source (I_ChgRecdRefRecipeBsc) and exposes 22 fields with key field ChangeRecordReferenceUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ChgRecdRefRecipeBsc reference_rcp from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_SpecificationNonHistoric _SpecificationNonHistoric $projection.RecipePrimaryOutputInternalID = _SpecificationNonHistoric.SpecificationInternalID
[0..1] E_ChgRecdRefRecipeBsc _RecipeExtension $projection.ChangeRecordReferenceUUID = _RecipeExtension.ChangeRecordReferenceUUID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ICHGRECREFRCPTP2 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Change Record Reference Object Recipe view
VDM.viewType #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XXL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY ChangeRecordReferenceUUID ChangeRecordReferenceUUID
RecipeUUID _recipe RecipeUUID
Recipe _recipe Recipe
Specification
RecipePrimaryOutputInternalID _recipe RecipePrimaryOutputInternalID
ChangeRecordUUID I_ChgRecdRefRecipeBsc ChangeRecordUUID
ChangeRecord I_ChgRecdRefRecipeBsc ChangeRecord
ChangeRecordType I_ChgRecdRefRecipeBsc ChangeRecordType
ChangeRecordReferenceType I_ChgRecdRefRecipeBsc ChangeRecordReferenceType
ChangeRecordReferenceSubtype I_ChgRecdRefRecipeBsc ChangeRecordReferenceSubtype
ChangeRecordReference I_ChgRecdRefRecipeBsc ChangeRecordReference
ParentChangeRecordRefUUID I_ChgRecdRefRecipeBsc ParentChangeRecordRefUUID
IsMainReference I_ChgRecdRefRecipeBsc IsMainReference
CreatedByUser I_ChgRecdRefRecipeBsc CreatedByUser
CreationDateTime I_ChgRecdRefRecipeBsc CreationDateTime
LastChangedByUser I_ChgRecdRefRecipeBsc LastChangedByUser
LastChangeDateTime I_ChgRecdRefRecipeBsc LastChangeDateTime
ChangeRecordItemRelevance I_ChgRecdRefRecipeBsc ChangeRecordItemRelevance
ChangeRecordVirtualRefInd I_ChgRecdRefRecipeBsc ChangeRecordVirtualRefInd
ChangeRecordRefObjectUUID I_ChgRecdRefRecipeBsc ChangeRecordRefObjectUUID
ChangeRecordItemProcgStatus I_ChgRecdRefRecipeBsc ChangeRecordItemProcgStatus
_ChangeRecordAPITP _ChangeRecordAPITP
@AbapCatalog.sqlViewName: 'ICHGRECREFRCPTP2'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Change Record Reference Object Recipe'
@VDM.viewType: #TRANSACTIONAL
@ObjectModel.usageType: {serviceQuality: #C,
                          dataClass: #MIXED,
                          sizeCategory: #XXL}
@VDM.lifecycle.contract.type:#SAP_INTERNAL_API
define view I_ChangeRecdRefRecipeTP_2
  as select from           I_ChgRecdRefRecipeBsc as reference_rcp
    left outer to one join I_Recipe              as _recipe on reference_rcp.ChangeRecordRefObjectUUID = _recipe.RecipeUUID

  //association [1..1] to I_ChangeRecordDraftTP      as _ChangeRecord             on $projection.ChangeRecordUUID = _ChangeRecord.ChangeRecordUUID


  association [1..1] to I_SpecificationNonHistoric as _SpecificationNonHistoric on $projection.RecipePrimaryOutputInternalID = _SpecificationNonHistoric.SpecificationInternalID
  association        to parent I_ChangeRecordTP_2  as _ChangeRecordAPITP        on $projection.ChangeRecordUUID = _ChangeRecordAPITP.ChangeRecordUUID
  association [0..1] to E_ChgRecdRefRecipeBsc      as _RecipeExtension          on $projection.ChangeRecordReferenceUUID = _RecipeExtension.ChangeRecordReferenceUUID
{
  key ChangeRecordReferenceUUID,
      _recipe.RecipeUUID,
      // should not be used

      _recipe.Recipe       as Recipe,
      case
      when _SpecificationNonHistoric.Specification is null then cast(SUBSTRING( reference_rcp.ChangeRecordReference, 1, 12) as /plmb/rcp_prim_output_id)
      else cast(_SpecificationNonHistoric.Specification as /plmb/rcp_prim_output_id)
        end                as RecipePrimaryOutput,

      case
      when _recipe.RecipeAlternativeNumber is null then  cast(SUBSTRING( reference_rcp.ChangeRecordReference, 13, 3) as /plmb/rcp_alt_no)
      else cast(_recipe.RecipeAlternativeNumber as /plmb/rcp_alt_no)
             end           as RecipeAlternativeNumber,

      case
      when _recipe.RecipeVersionNumber is null then cast (SUBSTRING( reference_rcp.ChangeRecordReference, 16, 3) as /plmb/rcp_vers_no)
      else cast(_recipe.RecipeVersionNumber as /plmb/rcp_vers_no)
             end           as RecipeVersionNumber,
      // should not be used

      cast('' as esesubid) as Specification,
      _recipe.RecipePrimaryOutputInternalID,
      reference_rcp.ChangeRecordUUID,
      reference_rcp.ChangeRecord,
      reference_rcp.ChangeRecordType,
      reference_rcp.ChangeRecordReferenceType,
      reference_rcp.ChangeRecordReferenceSubtype,
      reference_rcp.ChangeRecordReference,
      reference_rcp.ParentChangeRecordRefUUID,
      reference_rcp.IsMainReference,
      @Semantics.user.createdBy: true
      reference_rcp.CreatedByUser,
      reference_rcp.CreationDateTime,
      @Semantics.user.lastChangedBy: true
      reference_rcp.LastChangedByUser,
      reference_rcp.LastChangeDateTime,
      //@ObjectModel.readOnly: 'EXTERNAL_CALCULATION'

      reference_rcp.ChangeRecordItemRelevance,
      reference_rcp.ChangeRecordVirtualRefInd,
      reference_rcp.ChangeRecordRefObjectUUID,
      //      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'

      reference_rcp.ChangeRecordItemProcgStatus,
      //@ObjectModel.association.type:  [ #TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT ]

      //_ChangeRecord,

      _ChangeRecordAPITP

}