C_SftyDataShtOutpReqEmlTmpl

DDL: C_SFTYDATASHTOUTPREQEMLTMPL Type: view CONSUMPTION

Safety Data Sheet Output Request Email Template Data

C_SftyDataShtOutpReqEmlTmpl is a Consumption CDS View that provides data about "Safety Data Sheet Output Request Email Template Data" in SAP S/4HANA. It reads from 1 data source (I_SftyDataShtOutpReq) and exposes 14 fields with key field SftyDataShtOutpReqUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SftyDataShtOutpReq I_SftyDataShtOutpReq from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_Address_2 _CustomerAddress $projection.ShipToPartyAddressID = _CustomerAddress.AddressID and _CustomerAddress.AddressPersonID is initial and _CustomerAddress.AddressRepresentationCode is initial

Annotations (13)

NameValueLevelField
EndUserText.label Safety Data Sheet Output Request Email Template Data view
AbapCatalog.sqlViewName CSDSOREMLT view
AbapCatalog.compiler.compareFilter true view
AccessControl.D054696 No view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.representativeKey SftyDataShtOutpReqUUID view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY SftyDataShtOutpReqUUID I_SftyDataShtOutpReq SftyDataShtOutpReqUUID SDS Output Request
SftyDataShtRcpntPty I_SftyDataShtOutpReq SftyDataShtRcpntPty SDS Recipient (obsolete)
SftyDataShtOutpDateTime I_SftyDataShtOutpReq SftyDataShtOutpDateTime Safety Data Sheet Output Date
SftyDataShtOutpReqNoteText I_SftyDataShtOutpReq SftyDataShtOutpReqNoteText Notes
ShipToPartyAddressID I_SftyDataShtOutpReq ShipToPartyAddressID Ship-to Party Address
Customer I_SftyDataShtOutpReq Customer Sold-to Party
CustomerNameasCustomerName
CustomerName _Customer BPCustomerName Name of Customer
CustomerFullName
Country
Region
StreetName
CityName
PostalCode

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_SftyDataShtOutpReqEmlTmpl.
-- 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_SftyDataShtOutpReqEmlTmpl AS
SELECT
  I_SftyDataShtOutpReq.SftyDataShtOutpReqUUID AS SftyDataShtOutpReqUUID,
  I_SftyDataShtOutpReq.SftyDataShtRcpntPty AS SftyDataShtRcpntPty,
  I_SftyDataShtOutpReq.SftyDataShtOutpDateTime AS SftyDataShtOutpDateTime,
  I_SftyDataShtOutpReq.SftyDataShtOutpReqNoteText AS SftyDataShtOutpReqNoteText,
  I_SftyDataShtOutpReq.ShipToPartyAddressID AS ShipToPartyAddressID,
  I_SftyDataShtOutpReq.Customer AS Customer,
  _Customer.BPCustomerName AS CustomerName,
  coalesce ( _Customer.BPCustomerFullName, _Customer.CustomerFullName ) AS CustomerFullName,
  coalesce ( _CustomerAddress.Country, _Customer.Country ) AS Country,
  coalesce ( _CustomerAddress.Region, _Customer.Region ) AS Region,
  coalesce ( concat_with_space( _CustomerAddress.StreetName, _CustomerAddress.HouseNumber, 1 ), _Customer.BPAddrStreetName ) AS StreetName,
  coalesce ( _CustomerAddress.CityName, _Customer.BPAddrCityName ) AS CityName,
  coalesce ( _CustomerAddress.PostalCode, _Customer.PostalCode ) AS PostalCode
FROM I_SftyDataShtOutpReq
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _CustomerAddress ON ShipToPartyAddressID = _CustomerAddress.AddressID AND _CustomerAddress.AddressPersonID is initial AND _CustomerAddress.AddressRepresentationCode is initial  -- association [0..1]
;