C_SrvcOrdEmailDataProvider

DDL: C_SRVCORDEMAILDATAPROVIDER Type: view CONSUMPTION

Email Data Provider for Service Order

C_SrvcOrdEmailDataProvider is a Consumption CDS View that provides data about "Email Data Provider for Service Order" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 25 fields with key fields ServiceDocument, ServiceObjectType. It has 1 association to related views.

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.ServiceDocument and _ServiceDocMainRefObj.ServiceDocumentItem is initial and _ServiceDocMainRefObj.SrvcRefObjIsMainObject is not initial

Annotations (11)

NameValueLevelField
EndUserText.label Email Data Provider for Service Order view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey ServiceDocument view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName CSRVCORDEMAILDP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY ServiceDocument I_ServiceDocumentEnhcd ServiceDocument Transaction ID
KEY ServiceObjectType I_ServiceDocumentEnhcd ServiceObjectType Object Type
ServiceOrderDescription
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
CompanyCodeName
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
RespEmployeeBusinessPartnerId 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_SrvcOrdEmailDataProvider.
-- 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_SrvcOrdEmailDataProvider AS
SELECT
  I_ServiceDocumentEnhcd.ServiceDocument AS ServiceDocument,
  I_ServiceDocumentEnhcd.ServiceObjectType AS ServiceObjectType,
  cast(I_ServiceDocumentEnhcd.ServiceDocumentDescription as crms4_srvc_ord_description preserving type) AS ServiceOrderDescription,
  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,
  _SalesOrganization._CompanyCode.CompanyCodeName AS CompanyCodeName,
  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 RespEmployeeBusinessPartnerId,
  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 = ServiceDocument AND _ServiceDocMainRefObj.ServiceDocumentItem is initial AND _ServiceDocMainRefObj.SrvcRefObjIsMainObject is not initial  -- association [0..1]
;