I_PresalesDocItemSuccessor

DDL: I_PRESALESDOCITEMSUCCESSOR Type: view BASIC

Presales Document Item Successor

I_PresalesDocItemSuccessor is a Basic CDS View that provides data about "Presales Document Item Successor" in SAP S/4HANA. It reads from 1 data source (crmd_brelvonai) and exposes 13 fields with key fields PresalesDocumentRelationUUID, PresalesDocRltnSequenceNumber. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
crmd_brelvonai crmd_brelvonai from

Associations (3)

CardinalityTargetAliasCondition
[1] I_PresalesDocumentItemEnhcd _PresalesDocItem $projection.PresalesDocumentItemUUID = _PresalesDocItem.PresalesDocumentItemUUID and $projection.PresalesDocumentItemObjectType = _PresalesDocItem.PresalesDocumentItemObjectType
[0..1] I_PresalesDocumentSuccessor _SalesDocument $projection.PresalesDocumentRelationUUID = _SalesDocument.PresalesDocumentRelationUUID and _SalesDocument.PresalesDocRltnSequenceNumber is initial
[0..1] I_ServiceDocumentItemEnhcd _ServiceOrderItem $projection.ServiceDocumentItemUUID = _ServiceOrderItem.ServiceDocumentItemUUID

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IPRESLSDOCITMSUC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Presales Document Item Successor view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
Analytics.internalName #LOCAL view
Metadata.ignorePropagatedAnnotations true view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY PresalesDocumentRelationUUID relationid GUID link
KEY PresalesDocRltnSequenceNumber posno Sequential no.
PresalesDocumentRelationType breltyp Rel. Type
CharcLength
PresalesDocumentItemUUID
PresalesDocumentItemObjectType objtype_a Object Type
PresalesDocItmRelationKind vona_kind Type VONA
PresalesDocItmSuccessorUUID objkey_b Object ID
ServiceDocumentItemUUID
PreslsDocItmSuccssrBusObjType objtype_b Object Type
_PresalesDocItem _PresalesDocItem
_SalesDocument _SalesDocument
_ServiceOrderItem _ServiceOrderItem

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 I_PresalesDocItemSuccessor.
-- 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 I_PresalesDocItemSuccessor AS
SELECT
  relationid AS PresalesDocumentRelationUUID,
  posno AS PresalesDocRltnSequenceNumber,
  breltyp AS PresalesDocumentRelationType,
  length(objkey_a) AS CharcLength,
  hextobin (objkey_a) AS PresalesDocumentItemUUID,
  objtype_a AS PresalesDocumentItemObjectType,
  vona_kind AS PresalesDocItmRelationKind,
  objkey_b AS PresalesDocItmSuccessorUUID,
  hextobin(objkey_b) AS ServiceDocumentItemUUID,
  objtype_b AS PreslsDocItmSuccssrBusObjType
FROM crmd_brelvonai
LEFT OUTER JOIN I_PresalesDocumentItemEnhcd AS _PresalesDocItem ON PresalesDocumentItemUUID = _PresalesDocItem.PresalesDocumentItemUUID AND PresalesDocumentItemObjectType = _PresalesDocItem.PresalesDocumentItemObjectType  -- association [1]
LEFT OUTER JOIN I_PresalesDocumentSuccessor AS _SalesDocument ON PresalesDocumentRelationUUID = _SalesDocument.PresalesDocumentRelationUUID AND _SalesDocument.PresalesDocRltnSequenceNumber is initial  -- association [0..1]
LEFT OUTER JOIN I_ServiceDocumentItemEnhcd AS _ServiceOrderItem ON ServiceDocumentItemUUID = _ServiceOrderItem.ServiceDocumentItemUUID  -- association [0..1]
;