P_PresalesText

DDL: P_PRESALESTEXT Type: view COMPOSITE

P_PresalesText is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_PresalesDocumentEnhcd) and exposes 5 fields. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_PresalesDocumentEnhcd I_PresalesDocumentEnhcd from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_TextObjectPlainLongText _Text _Text.TextObjectKey <= $projection.TextObjectKeyTimeStamp and _Text.TextObjectKey >= I_PresalesDocumentEnhcd.TextObjectKey and _Text.TextObjectCategory = 'CRM_ORDERH' and ( _Text.TextObjectType = 'A001' or _Text.TextObjectType = 'A002' ) and _Text.Language = $session.system_language

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PPRESALESTEXT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
PresalesDocument PresalesDocument
PresalesDocumentObjectType PresalesDocumentObjectType
TextObjectKey TextObjectKey Text Name
TextObjectKeyTimeStamp
_Text _Text

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 P_PresalesText.
-- 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 P_PresalesText AS
SELECT
  PresalesDocument,
  PresalesDocumentObjectType,
  TextObjectKey,
  concat(TextObjectKey,' ZZZZZZZZZZZZZZZZZ') AS TextObjectKeyTimeStamp
FROM I_PresalesDocumentEnhcd
LEFT OUTER JOIN I_TextObjectPlainLongText AS _Text ON _Text.TextObjectKey <= TextObjectKeyTimeStamp AND _Text.TextObjectKey >= I_PresalesDocumentEnhcd.TextObjectKey AND _Text.TextObjectCategory = 'CRM_ORDERH' AND ( _Text.TextObjectType = 'A001' OR _Text.TextObjectType = 'A002' ) AND _Text.Language = $session.system_language  -- association [0..*]
;