C_SrvcQtanEmailDataProvider
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)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | I_ServiceDocumentEnhcd | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA