P_PresalesItemText

DDL: P_PRESALESITEMTEXT Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
I_PresalesDocumentItemEnhcd I_PresalesDocumentItemEnhcd from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_TextObjectPlainLongText _Text _Text.TextObjectKey <= $projection.TextObjectKeyTimeStamp and _Text.TextObjectKey >= I_PresalesDocumentItemEnhcd.TextObjectKey and _Text.TextObjectCategory = 'CRM_ORDERI' and ( _Text.TextObjectType = 'P001' or _Text.TextObjectType = 'P002' or _Text.TextObjectType = '0003' ) and _Text.Language = $session.system_language

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PPRESALESITMTEXT 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 (6)

KeyFieldSource TableSource FieldDescription
PresalesDocument PresalesDocument
PresalesDocumentObjectType PresalesDocumentObjectType
PresalesDocumentItem PresalesDocumentItem
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_PresalesItemText.
-- 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_PresalesItemText AS
SELECT
  PresalesDocument,
  PresalesDocumentObjectType,
  PresalesDocumentItem,
  TextObjectKey,
  concat(TextObjectKey,' ZZZZZZZZZZZZZZZZZ') AS TextObjectKeyTimeStamp
FROM I_PresalesDocumentItemEnhcd
LEFT OUTER JOIN I_TextObjectPlainLongText AS _Text ON _Text.TextObjectKey <= TextObjectKeyTimeStamp AND _Text.TextObjectKey >= I_PresalesDocumentItemEnhcd.TextObjectKey AND _Text.TextObjectCategory = 'CRM_ORDERI' AND ( _Text.TextObjectType = 'P001' OR _Text.TextObjectType = 'P002' OR _Text.TextObjectType = '0003' ) AND _Text.Language = $session.system_language  -- association [0..*]
;