I_SuplrGEvalEmailTmplAPI02

DDL: I_SUPLRGEVALEMAILTMPLAPI02 SQL: IGEVALMAILTAPI02 Type: view COMPOSITE Package: VDM_SLC_SRS

Email Template for Eval Notification

I_SuplrGEvalEmailTmplAPI02 is a Composite CDS View that provides data about "Email Template for Eval Notification" in SAP S/4HANA. It reads from 2 data sources (I_BusinessUser, I_FormOfAddressText) and exposes 16 fields with key field SuplrEvalRspUUID. Part of development package VDM_SLC_SRS.

Data Sources (2)

SourceAliasJoin Type
I_BusinessUser I_BusinessUser left_outer
I_FormOfAddressText I_FormOfAddressText left_outer

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IGEVALMAILTAPI02 view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Email Template for Eval Notification view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY SuplrEvalRspUUID response SuplrEvalRspUUID
SupplierEvalResponse
SuplrEvalRspName response SuplrEvalRspName
SuplrEvalStartDate response SuplrEvalStartDate
SuplrEvalEndDate response SuplrEvalEndDate
CreatedByUser
CreationDateTime response CreationDateTime
LastChangedByUser
LastChangeDateTime response LastChangeDateTime
Language response Language
CreatedByUserDescription
LastChangedByUserName
FormOfAddressName formofaddressname FormOfAddressName
FirstName businessuser FirstName
FamilyName businessuser LastName
BusinessPartnerFullName
@AbapCatalog.sqlViewName: 'IGEVALMAILTAPI02'
@Metadata.ignorePropagatedAnnotations: true
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #COMPOSITE
@ObjectModel.supportedCapabilities: 
[ #OUTPUT_EMAIL_DATA_PROVIDER ]
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA') 
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Email Template for Eval Notification'

define view I_SuplrGEvalEmailTmplAPI02 with parameters
    @Consumption.hidden: true
    @Environment.systemField: #SYSTEM_LANGUAGE
    P_Language : /srmsmc/language_parameter
  as select  distinct from I_SupplierEvalResponse as response 
   join  I_SupplierEvalRspAppraiser   appraiser on appraiser.SuplrEvalRspUUID = response.SuplrEvalRspUUID
    left outer join  I_BusinessUser   businessuser on appraiser.UserID = businessuser.UserID and businessuser.IsBusinessPurposeCompleted = '' 
    left outer join  I_FormOfAddressText  formofaddressname on formofaddressname.FormOfAddress = businessuser.FormOfAddress and formofaddressname.Language = $parameters.P_Language
{ 

  key response.SuplrEvalRspUUID,
      cast(ltrim(response.SupplierEvalResponse,'0') as /srmsmc/evaluation_response_id) as SupplierEvalResponse,
      response.SuplrEvalRspName,
      @Semantics.businessDate.from: true
      response.SuplrEvalStartDate, 
      @Semantics.businessDate.to: true
      response.SuplrEvalEndDate, 
      cast(response.CreatedByUser as /srmsmc/created_by ) as CreatedByUser,
      response.CreationDateTime,
      cast(response.LastChangedByUser as /srmsmc/last_changed_by ) as LastChangedByUser,
      response.LastChangeDateTime,
      response.Language,
      cast(response._CreatedByUser._BusinessPartner[IsBusinessPurposeCompleted = ''].BusinessPartnerFullName as /srmsmc/created_by_user_desc)     as CreatedByUserDescription,
      cast(response._LastChangedByUser._BusinessPartner[IsBusinessPurposeCompleted = ''].BusinessPartnerFullName as /srmsmc/last_changed_by_desc) as LastChangedByUserName,
      formofaddressname.FormOfAddressName as FormOfAddressName,
      businessuser.FirstName,
      businessuser.LastName as FamilyName,
      cast(response._Supplier._BusinessPartner[IsBusinessPurposeCompleted = ''].BusinessPartnerFullName as /srmsmc/company_name ) as BusinessPartnerFullName
}