I_LogAccMContext

DDL: I_LOGACCMCONTEXT SQL: ILOGACCMCONTEXT Type: view BASIC

Access Control Context

I_LogAccMContext is a Basic CDS View that provides data about "Access Control Context" in SAP S/4HANA. It reads from 1 data source (hrp7600) and exposes 16 fields with key field LogAccMContextInternalId. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
hrp7600 hrp7600 from

Associations (7)

CardinalityTargetAliasCondition
[0..*] I_LogAccMContextText _LogAccMContextText $projection.LogAccMContextInternalId = _LogAccMContextText.LogAccMContextInternalId
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[0..*] I_LogAccMSecureIDRepository _LogAccMSecureIDRepository $projection.LogAccMContextInternalId = _LogAccMSecureIDRepository.LogAccMSecureIDOwnerID
[0..1] I_LogAccMObjectTypeActive _LogAccMObjectTypeActive _LogAccMObjectTypeActive.LogAccMObjectType = 'PLM_ACC'
[0..*] I_LogAccMObjSecureIDAssgmt _LogAccMObjSecureIDAssgmt $projection.LogAccMContextInternalId = _LogAccMObjSecureIDAssgmt.LogAccMObjectID and _LogAccMObjSecureIDAssgmt.LogAccMObjectType = 'PLM_ACC'
[0..*] I_LogAccMObjectUserAuthzn _LogAccMObjectUserAuthzn $projection.LogAccMContextInternalId = _LogAccMObjectUserAuthzn.LogAccMObjectID and _LogAccMObjectUserAuthzn.LogAccMObjectType = 'PLM_ACC' and _LogAccMObjectUserAuthzn.LogAccMUserAuthznObject = 'PLM_ACC' and ( _LogAccMObjectUserAuthzn.LogAccMUserAuthznFrom = '03' or _LogAccMObjectUserAuthzn.LogAccMUserAuthznFrom = '*' ) and _LogAccMObjectUserAuthzn.LogAccMUserAuthznField = 'ACTVT' and ( _LogAccMObjectUserAuthzn.LogAccMUserEntityID = $session.user or _LogAccMObjectUserAuthzn.UserID = $session.user )

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName ILOGACCMCONTEXT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey LogAccMContextInternalId view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #MASTER view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Access Control Context view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY LogAccMContextInternalId objid
LogAccMContext context_id_ext
LogAccMContextType context_type
LogAccMContextIsActivated is_active
LogAccMContextIsDeleted is_deleted
CreationDateTime create_datetime
CreatedByUser create_user_id
LastChangeDateTime change_datetime
LastChangedByUser change_user_id
_LogAccMContextText _LogAccMContextText
_LogAccMSecureIDRepository _LogAccMSecureIDRepository
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_LogAccMObjectTypeActive _LogAccMObjectTypeActive
_LogAccMObjectUserAuthzn _LogAccMObjectUserAuthzn
_LogAccMObjSecureIDAssgmt _LogAccMObjSecureIDAssgmt
@AbapCatalog.sqlViewName: 'ILOGACCMCONTEXT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true

@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel.representativeKey: 'LogAccMContextInternalId'
@ObjectModel.semanticKey: [ 'LogAccMContext' ]

@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.dataClass: #MASTER

@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC

@EndUserText.label: 'Access Control Context'
define view I_LogAccMContext
  as select from hrp7600

  association [0..*] to I_LogAccMContextText        as _LogAccMContextText        on  $projection.LogAccMContextInternalId = _LogAccMContextText.LogAccMContextInternalId
  association [0..1] to I_User                      as _CreatedByUser             on  $projection.CreatedByUser = _CreatedByUser.UserID
  association [0..1] to I_User                      as _LastChangedByUser         on  $projection.LastChangedByUser = _LastChangedByUser.UserID

  association [0..*] to I_LogAccMSecureIDRepository as _LogAccMSecureIDRepository on  $projection.LogAccMContextInternalId = _LogAccMSecureIDRepository.LogAccMSecureIDOwnerID
  association [0..1] to I_LogAccMObjectTypeActive   as _LogAccMObjectTypeActive   on  _LogAccMObjectTypeActive.LogAccMObjectType = 'PLM_ACC'

  association [0..*] to I_LogAccMObjSecureIDAssgmt  as _LogAccMObjSecureIDAssgmt  on  $projection.LogAccMContextInternalId        = _LogAccMObjSecureIDAssgmt.LogAccMObjectID
                                                                                  and _LogAccMObjSecureIDAssgmt.LogAccMObjectType = 'PLM_ACC'

  association [0..*] to I_LogAccMObjectUserAuthzn   as _LogAccMObjectUserAuthzn   on  $projection.LogAccMContextInternalId             = _LogAccMObjectUserAuthzn.LogAccMObjectID
                                                                                  and _LogAccMObjectUserAuthzn.LogAccMObjectType       = 'PLM_ACC'
                                                                                  and _LogAccMObjectUserAuthzn.LogAccMUserAuthznObject = 'PLM_ACC'
                                                                                  and (
                                                                                     _LogAccMObjectUserAuthzn.LogAccMUserAuthznFrom    = '03'
                                                                                     or _LogAccMObjectUserAuthzn.LogAccMUserAuthznFrom = '*'
                                                                                   )
                                                                                  and _LogAccMObjectUserAuthzn.LogAccMUserAuthznField  = 'ACTVT'
                                                                                  and (
                                                                                     _LogAccMObjectUserAuthzn.LogAccMUserEntityID      = $session.user
                                                                                     or _LogAccMObjectUserAuthzn.UserID                = $session.user
                                                                                   )
{
  key objid           as LogAccMContextInternalId,
      context_id_ext  as LogAccMContext,
      context_type    as LogAccMContextType,
      is_active       as LogAccMContextIsActivated,
      is_deleted      as LogAccMContextIsDeleted,

      @Semantics.systemDateTime.createdAt: true
      create_datetime as CreationDateTime,

      @Semantics.user.createdBy: true
      create_user_id  as CreatedByUser,

      @Semantics.systemDateTime.lastChangedAt: true
      change_datetime as LastChangeDateTime,

      @Semantics.user.lastChangedBy: true
      change_user_id  as LastChangedByUser,

      /* Associations */

      _LogAccMContextText,
      _LogAccMSecureIDRepository,
      _CreatedByUser,
      _LastChangedByUser,
      _LogAccMObjectTypeActive,
      _LogAccMObjectUserAuthzn,
      _LogAccMObjSecureIDAssgmt

}
where
      plvar = '01'
  and otype = 'CC'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"HRP7600"
],
"ASSOCIATED":
[
"I_LOGACCMCONTEXTTEXT",
"I_LOGACCMOBJECTTYPEACTIVE",
"I_LOGACCMOBJECTUSERAUTHZN",
"I_LOGACCMOBJSECUREIDASSGMT",
"I_LOGACCMSECUREIDREPOSITORY",
"I_USER"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/