C_SlsQtnWorkflowEmailTemplate

DDL: C_SLSQTNWORKFLOWEMAILTEMPLATE SQL: CQTNWFEMLTMPL Type: view CONSUMPTION

Email Notification for Sales Quotation Workflow

C_SlsQtnWorkflowEmailTemplate is a Consumption CDS View that provides data about "Email Notification for Sales Quotation Workflow" in SAP S/4HANA. It reads from 1 data source (I_WorkflowTask) and exposes 20 fields with key field WorkflowTaskInternalID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_WorkflowTask Workflowtask from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_WorkflowTaskURL _WorkflowTaskURL $projection.WorkflowTaskInternalID = _WorkflowTaskURL.WorkflowTaskInternalID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CQTNWFEMLTMPL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Email Notification for Sales Quotation Workflow view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY WorkflowTaskInternalID I_WorkflowTask WorkflowTaskInternalID
SalesQuotation SalesQuotation SalesQuotation
SalesOrganizationName
SalesOrganization SalesQuotation SalesOrganization
DistributionChannelName
DistributionChannel SalesQuotation DistributionChannel
DivisionName
OrganizationDivision SalesQuotation OrganizationDivision
SalesQuotationTypeName
SalesQuotationType SalesQuotation SalesQuotationType
SalesQuotationDate SalesQuotation SalesQuotationDate
SDDocumentReasonText
SDDocumentReason SalesQuotation SDDocumentReason
CustomerName _SoldToParty CustomerName
SoldToParty SalesQuotation SoldToParty
TransactionCurrency SalesQuotation TransactionCurrency
TotalNetAmount SalesQuotation TotalNetAmount
WorkflowTaskPriority I_WorkflowTask WorkflowTaskPriority
WorkflowTaskStatus I_WorkflowTask WorkflowTaskStatus
WorkflowTaskURL _WorkflowTaskURL WorkflowTaskURL
@AbapCatalog.sqlViewName: 'CQTNWFEMLTMPL'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@EndUserText.label: 'Email Notification for Sales Quotation Workflow'
@VDM.viewType : #CONSUMPTION
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType : {
  serviceQuality: #D,
  sizeCategory: #L,
  dataClass: #TRANSACTIONAL
}

define view C_SlsQtnWorkflowEmailTemplate
  as select from I_WorkflowTask as Workflowtask
  left outer to one join I_WorkflowTaskApplObject as WorkflowTaskApplObject on WorkflowTaskApplObject.WorkflowTaskInternalID = Workflowtask.WorkflowTaskInternalID
                                                                             and WorkflowTaskApplObject.SAPObjectNodeRepresentation   = 'SalesQuotation'
                                                                             and WorkflowTaskApplObject.TechnicalWrkflwObjectCategory = 'CL'
  left outer to one join I_SalesQuotation         as  SalesQuotation        on SalesQuotation.SalesQuotation = WorkflowTaskApplObject.TechnicalWrkflwObject
  association [0..1] to  I_WorkflowTaskURL        as _WorkflowTaskURL       on $projection.WorkflowTaskInternalID = _WorkflowTaskURL.WorkflowTaskInternalID
{
  key Workflowtask.WorkflowTaskInternalID,
      SalesQuotation.SalesQuotation,
      
      _SalesOrganization._Text[1: Language=$session.system_language ].SalesOrganizationName,      
      SalesQuotation.SalesOrganization,
      
      _DistributionChannel._Text[1: Language=$session.system_language ].DistributionChannelName,
      SalesQuotation.DistributionChannel,
      
      _OrganizationDivision._Text[1: Language=$session.system_language ].DivisionName,
      SalesQuotation.OrganizationDivision,  
      
      cast(_SalesQuotationType._Text[1:Language=$session.system_language].SalesDocumentTypeName as quotation_type_name preserving type ) as SalesQuotationTypeName,
      SalesQuotation.SalesQuotationType,
      
      SalesQuotation.SalesQuotationDate,
      
      _SDDocumentReason._Text[1:Language=$session.system_language].SDDocumentReasonText,
      SalesQuotation.SDDocumentReason,
      
      _SoldToParty.CustomerName as CustomerName,
      SalesQuotation.SoldToParty,
      
      @Semantics.currencyCode:true
      SalesQuotation.TransactionCurrency,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      SalesQuotation.TotalNetAmount,
      Workflowtask.WorkflowTaskPriority,
      Workflowtask.WorkflowTaskStatus,
      _WorkflowTaskURL.WorkflowTaskURL
 }