I_CONTINGENTWORKER

CDS View

Contingent Worker

I_CONTINGENTWORKER is a CDS View in S/4HANA. Contingent Worker. 4 CDS views read from this table.

CDS Views using this table (4)

ViewTypeJoinVDMDescription
C_MassUpdtSrvcPerfrmrVH view from CONSUMPTION Service Performer Value Help
C_MM_ServicePerformerValueHelp view from CONSUMPTION Service Performer Value Help
C_PurOrdMaintainServPrfValHelp view from CONSUMPTION PO Maintenance: Value Help for Service Performer
I_SrvcEntrShtServPrfValHelp view from COMPOSITE Service Performer Value Help
@AbapCatalog.sqlViewName: 'ICONTWORKER'
@EndUserText.label: 'Contingent Worker'
@VDM.viewType: #BASIC

@ClientHandling.algorithm: #SESSION_VARIABLE 
@ObjectModel.usageType.dataClass: #MASTER 
@ObjectModel.usageType.serviceQuality: #C 
//@ObjectModel.usageType.sizeCategory: #L - sizeCategory 'L' of view is smaller than that of used table BUT100

@ObjectModel.usageType.sizeCategory: #XL
@AccessControl.personalData.blocking: #REQUIRED
@AccessControl.authorizationCheck: #CHECK

define view I_ContingentWorker 

as select from cvi_vend_link

inner join   I_BusinessPartner as _BusinessPartner on cvi_vend_link.partner_guid = _BusinessPartner.BusinessPartnerUUID
inner join   but100            as bp_role          on bp_role.partner = _BusinessPartner.BusinessPartner and
                                                      bp_role.rltyp = 'BBP010'     // BBP010 - Freelancer 

                                  and bp_role.valid_from <= tstmp_current_utctimestamp() and bp_role.valid_to >= dats_tims_to_tstmp( cast($session.system_date as abap.dats), cast('000000' as abap.tims), 'UTC', $session.client, 'NULL')
{
  key cvi_vend_link.vendor       as Supplier,
  key _BusinessPartner.BusinessPartner,
      _BusinessPartner.FirstName,
      _BusinessPartner.LastName,
      _BusinessPartner.AuthorizationGroup,
      _BusinessPartner.IsBusinessPurposeCompleted,
      
//Added only for DCL check

      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataControllerSet,                                                                                                                                                                      
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController1,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController2,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController3,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController4,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController5,                                                                                                                                                                       
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController6,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController7,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController8,
      @Consumption.hidden:true
      @UI.hidden:true 
      _BusinessPartner.DataController9,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController10
}

union all

select from  but050

inner join I_BusinessPartner as _BusinessPartner on  but050.partner2 = _BusinessPartner.BusinessPartner and
                                                     but050.partner1 != _BusinessPartner.BusinessPartner
inner join   but100          as bp_role          on  bp_role.partner = _BusinessPartner.BusinessPartner and
                                                     bp_role.rltyp = 'BBP005' 
                                     and bp_role.valid_from <= tstmp_current_utctimestamp() and bp_role.valid_to >= dats_tims_to_tstmp( cast($session.system_date as abap.dats), cast('000000' as abap.tims), 'UTC', $session.client, 'NULL')
{

  key but050.partner1 as Supplier,
  key but050.partner2 as BusinessPartner,
      _BusinessPartner.FirstName,
      _BusinessPartner.LastName,
      _BusinessPartner.AuthorizationGroup,
      _BusinessPartner.IsBusinessPurposeCompleted,
      
//Added only for DCL check

      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataControllerSet,                                                                                                                                                                      
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController1,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController2,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController3,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController4,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController5,                                                                                                                                                                       
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController6,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController7,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController8,
      @Consumption.hidden:true
      @UI.hidden:true 
      _BusinessPartner.DataController9,
      @Consumption.hidden:true
      @UI.hidden:true
      _BusinessPartner.DataController10

} where reltyp = 'BUR025'                
  
  
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPARTNER",
"BUT050",
"BUT100",
"CVI_VEND_LINK"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/