I_PPM_Note

DDL: I_PPM_NOTE SQL: IPPMNOTE Type: view BASIC

Note

I_PPM_Note is a Basic CDS View that provides data about "Note" in SAP S/4HANA. It reads from 2 data sources (/s4ppm/cds_dummy, P_PPM_Note) and exposes 11 fields with key fields ReferencedObjectUUID, NoteID. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
/s4ppm/cds_dummy /s4ppm/cds_dummy left_outer
P_PPM_Note P_PPM_Note from

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_PPM_AuthznByUsrH _AuthUser _AuthUser.ReferencedObjectUUID = $projection.ReferencedNodeUUID and _AuthUser.UserID = $session.user and ( _AuthUser.Activity = 'Admin' or _AuthUser.Activity = 'Write' or _AuthUser.Activity = 'Read' )
[0..*] I_PPM_AuthznBySubstitH _AuthSubst _AuthSubst.ReferencedObjectUUID = $projection.ReferencedNodeUUID and _AuthSubst.UserID = $session.user and ( _AuthSubst.Activity = 'Admin' or _AuthSubst.Activity = 'Write' or _AuthSubst.Activity = 'Read' )
[0..*] I_PPM_AuthznByUserRoleH _AuthRole _AuthRole.ReferencedObjectUUID = $projection.ReferencedNodeUUID and _AuthRole.UserID = $session.user and ( _AuthRole.Activity = 'Admin' or _AuthRole.Activity = 'Write' or _AuthRole.Activity = 'Read' )
[0..*] I_PPM_AuthznByUsrGrpH _AuthGroup _AuthGroup.ReferencedObjectUUID = $projection.ReferencedNodeUUID and _AuthGroup.UserID = $session.user and ( _AuthGroup.Activity = 'Admin' or _AuthGroup.Activity = 'Write' or _AuthGroup.Activity = 'Read' )

Annotations (11)

NameValueLevelField
EndUserText.label Note view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IPPMNOTE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey ReferencedObjectUUID view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY ReferencedObjectUUID P_PPM_Note TextObjectKeyString
KEY NoteID
CreatedByUser
CreatedByUserFullName
CreationDateTime
NoteText /s4ppm/cds_dummy dummy_string
ReferencedNodeUUID
_AuthUser _AuthUser
_AuthSubst _AuthSubst
_AuthRole _AuthRole
_AuthGroup _AuthGroup
@EndUserText.label: 'Note'
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'IPPMNOTE'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.representativeKey: 'ReferencedObjectUUID'
@VDM.lifecycle.contract.type:  #SAP_INTERNAL_API

define view I_PPM_Note
  as select from P_PPM_Note
    left outer join /s4ppm/cds_dummy on /s4ppm/cds_dummy.dummy_char = P_PPM_Note.TextObjectKeyString //Workaround to get string field where we can put the notetext in, because cast to string is not supported in CDS at the moment.   


    // associations to authorization views

    association [0..*] to I_PPM_AuthznByUsrH        as _AuthUser
            on      _AuthUser.ReferencedObjectUUID   = $projection.ReferencedNodeUUID
             and    _AuthUser.UserID                 = $session.user
             and (  _AuthUser.Activity = 'Admin'     or _AuthUser.Activity = 'Write'      or _AuthUser.Activity = 'Read' )
    association [0..*] to I_PPM_AuthznBySubstitH    as _AuthSubst 
            on      _AuthSubst.ReferencedObjectUUID  = $projection.ReferencedNodeUUID
             and    _AuthSubst.UserID                = $session.user
             and (  _AuthSubst.Activity = 'Admin'    or _AuthSubst.Activity = 'Write'     or _AuthSubst.Activity = 'Read' )
    association [0..*] to I_PPM_AuthznByUserRoleH   as _AuthRole
            on      _AuthRole.ReferencedObjectUUID   = $projection.ReferencedNodeUUID
             and    _AuthRole.UserID                 = $session.user
             and (  _AuthRole.Activity = 'Admin'     or _AuthRole.Activity = 'Write'      or _AuthRole.Activity = 'Read' )
    association [0..*] to I_PPM_AuthznByUsrGrpH     as _AuthGroup
            on      _AuthGroup.ReferencedObjectUUID  = $projection.ReferencedNodeUUID
             and    _AuthGroup.UserID                = $session.user
             and (  _AuthGroup.Activity = 'Admin'    or _AuthGroup.Activity = 'Write'     or _AuthGroup.Activity = 'Read' )       
{
  key P_PPM_Note.TextObjectKeyString            as ReferencedObjectUUID,
      /* Empty fields need to be filled in DPC_EXT */
  key cast(111111 as dpr_tv_api_integer)                                         as NoteID,
      cast('' as /s4ppm/tv_created_by)                                           as CreatedByUser,
      cast('' as dpr_tv_api_full_name)                                           as CreatedByUserFullName,
      cast(cast('19900101000000' as abap.dec( 15, 0 )) as /s4ppm/tv_created_on ) as CreationDateTime,
      /s4ppm/cds_dummy.dummy_string                                              as NoteText,

      hextobin(P_PPM_Note.TextObjectKeyString)   as ReferencedNodeUUID, 

      _AuthUser,
      _AuthSubst,
      _AuthRole,
      _AuthGroup      
} 
  
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_PPM_NOTE",
"/S4PPM/CDS_DUMMY"
],
"ASSOCIATED":
[
"I_PPM_AUTHZNBYSUBSTITH",
"I_PPM_AUTHZNBYUSERROLEH",
"I_PPM_AUTHZNBYUSRGRPH",
"I_PPM_AUTHZNBYUSRH"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0
}
}*/