C_SrvcQtanEmailDataProvider

DDL: C_SRVCQTANEMAILDATAPROVIDER Type: view_entity CONSUMPTION Package: CRMS4_SERVICE_QUOTATION

Email Data Provider for Service Quotation

C_SrvcQtanEmailDataProvider is a Consumption CDS View that provides data about "Email Data Provider for Service Quotation" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 24 fields with key field ServiceQuotation. It has 1 association to related views. Part of development package CRMS4_SERVICE_QUOTATION.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentEnhcd I_ServiceDocumentEnhcd from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_ServiceDocumentRefObject _ServiceDocMainRefObj _ServiceDocMainRefObj.ServiceObjectType = $projection.ServiceObjectType and _ServiceDocMainRefObj.ServiceDocument = $projection.ServiceQuotation and _ServiceDocMainRefObj.ServiceDocumentItem is initial and _ServiceDocMainRefObj.SrvcRefObjIsMainObject is not initial

Annotations (8)

NameValueLevelField
EndUserText.label Email Data Provider for Service Quotation view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey ServiceQuotation view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Analytics.technicalName CSRVCQTANEMAILDP view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY ServiceQuotation
ServiceQuotationDescription
SoldToPartyName
ContactPersonName
ShipToPartyName
ResponsibleEmployeeName
RequestedServiceStartDate I_ServiceDocumentEnhcd RequestedServiceStartDate
ServiceDocNetAmount I_ServiceDocumentEnhcd ServiceDocNetAmount
ServiceDocGrossAmount I_ServiceDocumentEnhcd ServiceDocGrossAmount
TransactionCurrency I_ServiceDocumentEnhcd TransactionCurrency Transaction Currency
Equipment _ServiceDocMainRefObj Equipment Equipment check
SerialNumberendasSerialNumber
ServiceObjectType I_ServiceDocumentEnhcd ServiceObjectType Object Type
ServiceDocumentType I_ServiceDocumentEnhcd ServiceDocumentType Transaction Type
SalesOrganization I_ServiceDocumentEnhcd SalesOrganization Sales Organization
SalesOffice I_ServiceDocumentEnhcd SalesOffice Sales Office
SalesGroup I_ServiceDocumentEnhcd SalesGroup Sales Group
DistributionChannel I_ServiceDocumentEnhcd DistributionChannel RefDistCh-Cust/Mat.
Division I_ServiceDocumentEnhcd Division Internal Division ID
ResponsibleEmployee I_ServiceDocumentEnhcd ResponsibleEmployee Employee Resp.
SalesOrganizationOrgUnitID I_ServiceDocumentEnhcd SalesOrganizationOrgUnitID
SalesOfficeOrgUnitID I_ServiceDocumentEnhcd SalesOfficeOrgUnitID
SalesGroupOrgUnitID I_ServiceDocumentEnhcd SalesGroupOrgUnitID
ServiceOrganization I_ServiceDocumentEnhcd ServiceOrganization

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_SrvcQtanEmailDataProvider.
-- 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.

CREATE VIEW C_SrvcQtanEmailDataProvider AS
SELECT
  cast(I_ServiceDocumentEnhcd.ServiceDocument as crms4_qtan_id preserving type) AS ServiceQuotation,
  cast(I_ServiceDocumentEnhcd.ServiceDocumentDescription as crms4_qtan_description preserving type) AS ServiceQuotationDescription,
  cast(I_ServiceDocumentEnhcd._SoldToParty.BusinessPartnerName as vdm_sold_to_name) AS SoldToPartyName,
  cast(I_ServiceDocumentEnhcd._ContactPerson.BusinessPartnerName as crms4_contact_person_name) AS ContactPersonName,
  cast(I_ServiceDocumentEnhcd._ShipToParty.BusinessPartnerName as ship_to_name) AS ShipToPartyName,
  cast(I_ServiceDocumentEnhcd._RespEmployee.BusinessPartnerName as resp_empl_name) AS ResponsibleEmployeeName,
  I_ServiceDocumentEnhcd.RequestedServiceStartDate AS RequestedServiceStartDate,
  I_ServiceDocumentEnhcd.ServiceDocNetAmount AS ServiceDocNetAmount,
  I_ServiceDocumentEnhcd.ServiceDocGrossAmount AS ServiceDocGrossAmount,
  I_ServiceDocumentEnhcd.TransactionCurrency AS TransactionCurrency,
  _ServiceDocMainRefObj.Equipment AS Equipment,
  case when _ServiceDocMainRefObj.SerialNumber is not initial then _ServiceDocMainRefObj.SerialNumber else _ServiceDocMainRefObj._Equipment.SerialNumber end as SerialNumber AS SerialNumberendasSerialNumber,
  I_ServiceDocumentEnhcd.ServiceObjectType AS ServiceObjectType,
  I_ServiceDocumentEnhcd.ServiceDocumentType AS ServiceDocumentType,
  I_ServiceDocumentEnhcd.SalesOrganization AS SalesOrganization,
  I_ServiceDocumentEnhcd.SalesOffice AS SalesOffice,
  I_ServiceDocumentEnhcd.SalesGroup AS SalesGroup,
  I_ServiceDocumentEnhcd.DistributionChannel AS DistributionChannel,
  I_ServiceDocumentEnhcd.Division AS Division,
  I_ServiceDocumentEnhcd.ResponsibleEmployee AS ResponsibleEmployee,
  I_ServiceDocumentEnhcd.SalesOrganizationOrgUnitID AS SalesOrganizationOrgUnitID,
  I_ServiceDocumentEnhcd.SalesOfficeOrgUnitID AS SalesOfficeOrgUnitID,
  I_ServiceDocumentEnhcd.SalesGroupOrgUnitID AS SalesGroupOrgUnitID,
  I_ServiceDocumentEnhcd.ServiceOrganization AS ServiceOrganization
FROM I_ServiceDocumentEnhcd
LEFT OUTER JOIN I_ServiceDocumentRefObject AS _ServiceDocMainRefObj ON _ServiceDocMainRefObj.ServiceObjectType = ServiceObjectType AND _ServiceDocMainRefObj.ServiceDocument = ServiceQuotation AND _ServiceDocMainRefObj.ServiceDocumentItem is initial AND _ServiceDocMainRefObj.SrvcRefObjIsMainObject is not initial  -- association [0..1]
;