C_CAInvcgClrfctnIsAdmin

DDL: C_CAINVCGCLRFCTNISADMIN SQL: CCAINVCFCISADMIN Type: view CONSUMPTION

Administratorrechte Klärungsfall Fakt.

C_CAInvcgClrfctnIsAdmin is a Consumption CDS View that provides data about "Administratorrechte Klärungsfall Fakt." in SAP S/4HANA. It reads from 1 data source (I_User) and exposes 4 fields with key field CurrentProcessor. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_User I_User from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_User _User $projection.CurrentProcessor = _User.UserID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CCAINVCFCISADMIN view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Administratorrechte Klärungsfall Fakt. view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.compositionRoot true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CurrentProcessor
CAClrfctnIsAdmin
CAClrfctnApplicationObject
_User _User
@AbapCatalog.sqlViewName: 'CCAINVCFCISADMIN'
@AbapCatalog.compiler.compareFilter: true
//@AccessControl.authorizationCheck: #PRIVILEGED_ONLY

@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Administratorrechte Klärungsfall Fakt.'
@ClientHandling.algorithm: #SESSION_VARIABLE 
@VDM.viewType: #CONSUMPTION
@ObjectModel: {
  compositionRoot: true,
   usageType: { serviceQuality: #A,
                sizeCategory: #XL,
               dataClass: #MIXED }
}
@AccessControl.privilegedAssociations: [ '_User' ]
// This is only a helper CDS-view to add the fields to the service, where then the permissions are set.

// No permissions are set in this view.

define view C_CAInvcgClrfctnIsAdmin as select from I_User 
association [1..1] to I_User         as _User       on  $projection.CurrentProcessor = _User.UserID  
{

       key $session.user as CurrentProcessor, 
        
        @UI.hidden: true
        ' ' as CAClrfctnIsAdmin,
        'FINV'                          as CAClrfctnApplicationObject, //For authorization check - check if this can be done differently

        
        //expose associations

        _User
        
}where UserID = $session.user
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_USER"
],
"ASSOCIATED":
[
"I_USER"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/