/APE/C_PDoc_LinkedDocuments_UI
Linked Documents for PDoc
/APE/C_PDoc_LinkedDocuments_UI is a Consumption CDS View that provides data about "Linked Documents for PDoc" in SAP S/4HANA. It reads from 9 data sources and exposes 65 fields with key fields ProcessDocumentKey, LinkedDocumentKey, LinkedDocumentKey, LinkedDocumentKey, LinkedDocumentKey. It has 1 association to related views.
Data Sources (9)
| Source | Alias | Join Type |
|---|---|---|
| /APE/C_TransBOHeader | BusinessObject | inner |
| /APE/C_ProcEvent_TOBINCONV | Evt | union |
| /APE/C_ProcEvent_TOBINCONV | Evt | union |
| /APE/C_LinkedProcesses_UI | Gra | from |
| /APE/C_ExceptionHeader | LEXdoc | inner |
| /APE/C_ProcDataHeader | LPdoc | inner |
| /APE/C_TransHeader | LTdoc | inner |
| /APE/C_ProcStep_TOBINCONV | PSt | union |
| srt_mmaster | Srt | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | /APE/C_ProcStepHeader_PDM_UI | _TriggerStepIntNav | _TriggerStepIntNav.ProcessHeaderUUID = $projection.ProcessDocumentKey and _TriggerStepIntNav.ApplicationTableUUID = $projection.TriggerStepKey |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | /APE/C_LDPDOCUI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Linked Documents for PDoc | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.allowExtensions | true | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProcessDocumentKey | /APE/C_LinkedProcesses_UI | ProcessDocumentKey | UUID |
| KEY | LinkedDocumentKey | /APE/C_LinkedProcesses_UI | LinkedProcessDocumentKey | UUID |
| LinkedDocumentNumber | ||||
| char200asProcessDescription | ||||
| BusinessObjectType | ||||
| BusinessObjectTypeDescription | bo | BusinessObjectTypeDescription | ||
| DocumentStatus | /APE/C_ProcDataHeader | proc_status | ||
| DocumentStatusDescription | DocSts | Text | User Group | |
| LinkTypeDescription | LinkT | Text | User Group | |
| Direction | User Group | |||
| TriggerStep | /APE/C_ProcStep_TOBINCONV | StepSeqNo | ||
| SemanticObject | bo | SemanticObject | Semantic Object | |
| SemanticAction | bo | SemanticAction | ||
| KeyFieldName | bo | KeyFieldName | ||
| CreatedAt | ||||
| TriggerStepKey | /APE/C_ProcStep_TOBINCONV | ApplicationTableUUID | ||
| proc_uuidasProcessDocumentKey | ||||
| KEY | LinkedDocumentKey | /APE/C_TransHeader | trans_uuid | UUID |
| LinkedDocumentNumber | ||||
| bus_msg_idendasProcessDescription | ||||
| BusinessObjectType | ||||
| BusinessObjectTypeDescription | bo | BusinessObjectTypeDescription | ||
| DocumentStatus | /APE/C_TransHeader | trans_status | ||
| DocumentStatusDescription | DocSts | Text | User Group | |
| LinkTypeDescription | User Group | |||
| Direction | Dir | Text | User Group | |
| TriggerStep | /APE/C_ProcStep_TOBINCONV | StepSeqNo | ||
| SemanticObject | bo | SemanticObject | Semantic Object | |
| SemanticAction | bo | SemanticAction | ||
| KeyFieldName | bo | KeyFieldName | ||
| CreatedAt | ||||
| TriggerStepKey | /APE/C_ProcStep_TOBINCONV | ApplicationTableUUID | ||
| ProcessHeaderUUIDasProcessDocumentKey | ||||
| KEY | LinkedDocumentKey | srt_mmaster | message_id | UUID |
| TransactionUUIDasLinkedDocumentNumber | ||||
| ob_if_nameendasProcessDescription | ||||
| BusinessObjectType | ||||
| BusinessObjectTypeDescription | bo | BusinessObjectTypeDescription | ||
| DocumentStatus | srt_mmaster | message_state | ||
| DocumentStatusDescription | DocSts | Text | User Group | |
| LinkTypeDescription | User Group | |||
| Direction | Dir | Text | User Group | |
| TriggerStep | /APE/C_ProcStep_TOBINCONV | StepSeqNo | ||
| SemanticObject | bo | SemanticObject | Semantic Object | |
| SemanticAction | bo | SemanticAction | ||
| KeyFieldName | bo | KeyFieldName | ||
| CreatedAt | ||||
| TriggerStepKey | /APE/C_ProcStep_TOBINCONV | ApplicationTableUUID | ||
| proc_uuidasProcessDocumentKey | ||||
| KEY | LinkedDocumentKey | /APE/C_ProcEvent_TOBINCONV | bo_uuid | UUID |
| LinkedDocumentNumber | ||||
| ExceptionID1asProcessDescription | ||||
| BusinessObjectType | ||||
| BusinessObjectTypeDescription | bo | BusinessObjectTypeDescription | ||
| DocumentStatus | /APE/C_ExceptionHeader | excp_status | ||
| DocumentStatusDescription | DocSts | Text | User Group | |
| LinkTypeDescription | User Group | |||
| Direction | User Group | |||
| TriggerStep | /APE/C_ProcStep_TOBINCONV | StepSeqNo | ||
| SemanticObject | bo | SemanticObject | Semantic Object | |
| SemanticAction | bo | SemanticAction | ||
| KeyFieldName | bo | KeyFieldName | ||
| CreatedAt | ||||
| TriggerStepKey | /APE/C_ProcStep_TOBINCONV | ApplicationTableUUID | ||
| _TriggerStepIntNav | _TriggerStepIntNav |
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 /APE/C_PDoc_LinkedDocuments_UI.
-- 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 /APE/C_PDoc_LinkedDocuments_UI AS
SELECT
Gra.ProcessDocumentKey AS ProcessDocumentKey,
Gra.LinkedProcessDocumentKey AS LinkedDocumentKey,
cast( LPdoc.proc_doc_no as abap.char( 32 ) ) AS LinkedDocumentNumber,
cast( concat_with_space(PTxt.description, concat('(', concat(LPdoc.proc_id,')') ), 1 ) as abap.char(200) ) as ProcessDescription AS char200asProcessDescription,
cast( 'PDoc' as /ape/de_bo_type ) AS BusinessObjectType,
bo.BusinessObjectTypeDescription AS BusinessObjectTypeDescription,
LPdoc.proc_status AS DocumentStatus,
DocSts.Text AS DocumentStatusDescription,
LinkT.Text AS LinkTypeDescription,
cast( '' as abap.char( 60 ) ) AS Direction,
PSt.StepSeqNo AS TriggerStep,
bo.SemanticObject AS SemanticObject,
bo.SemanticAction AS SemanticAction,
bo.KeyFieldName AS KeyFieldName,
cast( LPdoc.created_at as timestampl ) AS CreatedAt,
PSt.ApplicationTableUUID AS TriggerStepKey,
case when BusMsg.BusinessMessageIDDescription is not null then concat_with_space(BusMsg.BusinessMessageIDDescription, concat('(', concat(BusinessObject.bus_msg_id,')') ), 1 ) else BusinessObject.bus_msg_id end as ProcessDescription AS bus_msg_idendasProcessDescription,
case Srt.location when 'P' then Srt.ib_if_name when 'C' then Srt.ob_if_name end as ProcessDescription AS ob_if_nameendasProcessDescription,
concat_with_space(EXID.ExceptionIDDescription, concat('(', concat(EXID.ExceptionID,')') ), 1 ) as ProcessDescription AS ExceptionID1asProcessDescription
FROM /APE/C_LinkedProcesses_UI AS Gra
INNER JOIN /APE/C_ProcDataHeader AS LPdoc ON /* join condition not captured in parsed metadata */
INNER JOIN /APE/C_TransHeader AS LTdoc ON /* join condition not captured in parsed metadata */
INNER JOIN /APE/C_TransBOHeader AS BusinessObject ON /* join condition not captured in parsed metadata */
INNER JOIN srt_mmaster AS Srt ON /* join condition not captured in parsed metadata */
INNER JOIN /APE/C_ExceptionHeader AS LEXdoc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN /APE/C_ProcStepHeader_PDM_UI AS _TriggerStepIntNav ON _TriggerStepIntNav.ProcessHeaderUUID = ProcessDocumentKey AND _TriggerStepIntNav.ApplicationTableUUID = TriggerStepKey -- association [0..1]
-- UNION with additional select branch(es): /APE/C_ProcEvent_TOBINCONV, /APE/C_ProcStep_TOBINCONV
;
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