I_PresalesDocItemSuccessor
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)
| Source | Alias | Join Type |
|---|---|---|
| crmd_brelvonai | crmd_brelvonai | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA