I_PresalesDocItemPredecessor

DDL: I_PRESALESDOCITEMPREDECESSOR Type: view BASIC Package: ODATA_CRMS4_OPPORTUNITY

Presales Document Item Predecessor

I_PresalesDocItemPredecessor is a Basic CDS View that provides data about "Presales Document Item Predecessor" in SAP S/4HANA. It reads from 1 data source (crmd_brelvonai) and exposes 10 fields with key fields PresalesDocumentRelationUUID, PresalesDocRltnSequenceNumber. It has 1 association to related views. Part of development package ODATA_CRMS4_OPPORTUNITY.

Data Sources (1)

SourceAliasJoin Type
crmd_brelvonai crmd_brelvonai from

Associations (1)

CardinalityTargetAliasCondition
[1] I_PresalesDocumentItemEnhcd _PresalesDocItem $projection.PresalesDocumentItmPrdcssrUUID = _PresalesDocItem.PresalesDocumentUUID and $projection.PreslsDocItmPrdcssrBusObjType = _PresalesDocItem.PresalesDocumentObjectType

Annotations (13)

NameValueLevelField
EndUserText.label Presales Document Item Predecessor view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName IPRESLSDOCITMPRE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true 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 (10)

KeyFieldSource TableSource FieldDescription
KEY PresalesDocumentRelationUUID relationid GUID link
KEY PresalesDocRltnSequenceNumber posno Sequential no.
PresalesDocumentRelationType breltyp Rel. Type
CharcLength
PresalesDocumentItmPrdcssrUUID
PreslsDocItmPrdcssrBusObjType objtype_a Object Type
PresalesDocItmRelationKind vona_kind Type VONA
PresalesDocumentItemUUID
PresalesDocumentItemObjectType objtype_b Object Type
_PresalesDocItem _PresalesDocItem

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_PresalesDocItemPredecessor.
-- 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_PresalesDocItemPredecessor AS
SELECT
  relationid AS PresalesDocumentRelationUUID,
  posno AS PresalesDocRltnSequenceNumber,
  breltyp AS PresalesDocumentRelationType,
  length(objkey_a) AS CharcLength,
  hextobin (objkey_a) AS PresalesDocumentItmPrdcssrUUID,
  objtype_a AS PreslsDocItmPrdcssrBusObjType,
  vona_kind AS PresalesDocItmRelationKind,
  hextobin (objkey_b) AS PresalesDocumentItemUUID,
  objtype_b AS PresalesDocumentItemObjectType
FROM crmd_brelvonai
LEFT OUTER JOIN I_PresalesDocumentItemEnhcd AS _PresalesDocItem ON PresalesDocumentItmPrdcssrUUID = _PresalesDocItem.PresalesDocumentUUID AND PreslsDocItmPrdcssrBusObjType = _PresalesDocItem.PresalesDocumentObjectType  -- association [1]
;