C_CustRetWrkflwEmailTemplate

DDL: C_CUSTRETWRKFLWEMAILTEMPLATE SQL: CSDCRWFEMLTMPL Type: view CONSUMPTION

Email Template for Cust Ret Wrkflw

C_CustRetWrkflwEmailTemplate is a Consumption CDS View that provides data about "Email Template for Cust Ret Wrkflw" in SAP S/4HANA. It reads from 1 data source (I_WorkflowTask) and exposes 20 fields with key field WorkflowTaskInternalID.

Data Sources (1)

SourceAliasJoin Type
I_WorkflowTask Workflowtask from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CSDCRWFEMLTMPL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Email Template for Cust Ret Wrkflw 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 Work Item ID
CustomerReturn CustomerReturn CustomerReturn
SalesOrganizationName
SalesOrganization CustomerReturn SalesOrganization Sales Organization
DistributionChannelName
DistributionChannel CustomerReturn DistributionChannel RefDistCh-Cust/Mat.
DivisionName
OrganizationDivision CustomerReturn OrganizationDivision Org. Division
CustomerReturnTypeName
CustomerReturnType CustomerReturn CustomerReturnType
CustomerReturnDate CustomerReturn CustomerReturnDate
SDDocumentReasonText
SDDocumentReason CustomerReturn SDDocumentReason Order Reason
CustomerName _SoldToParty CustomerName Name of Customer
SoldToParty CustomerReturn SoldToParty Sold-to Party
TransactionCurrency CustomerReturn TransactionCurrency Transaction Currency
TotalNetAmount CustomerReturn TotalNetAmount Total Net Amount
WorkflowTaskPriority I_WorkflowTask WorkflowTaskPriority Priority
WorkflowTaskStatus I_WorkflowTask WorkflowTaskStatus Status
WorkflowTaskURL _WorkflowTaskURL WorkflowTaskURL

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view C_CustRetWrkflwEmailTemplate.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CSDCRWFEMLTMPL

CREATE VIEW C_CustRetWrkflwEmailTemplate AS
SELECT
  Workflowtask.WorkflowTaskInternalID AS WorkflowTaskInternalID,
  CustomerReturn.CustomerReturn AS CustomerReturn,
  _SalesOrganization._Text[1: Language=$session.system_language ].SalesOrganizationName AS SalesOrganizationName,
  CustomerReturn.SalesOrganization AS SalesOrganization,
  _DistributionChannel._Text[1: Language=$session.system_language ].DistributionChannelName AS DistributionChannelName,
  CustomerReturn.DistributionChannel AS DistributionChannel,
  _OrganizationDivision._Text[1: Language=$session.system_language ].DivisionName AS DivisionName,
  CustomerReturn.OrganizationDivision AS OrganizationDivision,
  cast(_CustomerReturnType._Text[1:Language=$session.system_language].SalesDocumentTypeName as sd_customer_return_type_name preserving type) AS CustomerReturnTypeName,
  CustomerReturn.CustomerReturnType AS CustomerReturnType,
  CustomerReturn.CustomerReturnDate AS CustomerReturnDate,
  _SDDocumentReason._Text[1:Language=$session.system_language].SDDocumentReasonText AS SDDocumentReasonText,
  CustomerReturn.SDDocumentReason AS SDDocumentReason,
  _SoldToParty.CustomerName AS CustomerName,
  CustomerReturn.SoldToParty AS SoldToParty,
  CustomerReturn.TransactionCurrency AS TransactionCurrency,
  CustomerReturn.TotalNetAmount AS TotalNetAmount,
  Workflowtask.WorkflowTaskPriority AS WorkflowTaskPriority,
  Workflowtask.WorkflowTaskStatus AS WorkflowTaskStatus,
  _WorkflowTaskURL.WorkflowTaskURL AS WorkflowTaskURL
FROM I_WorkflowTask AS Workflowtask
;