APOC_CDS_KPRO_KEY
KPRO Keys for OC Original Documents
APOC_CDS_KPRO_KEY is a CDS View that provides data about "KPRO Keys for OC Original Documents" in SAP S/4HANA. It reads from 3 data sources (apoc_d_or_doc, apoc_d_or_item, apoc_d_or_item) and exposes 14 fields with key field item_uuid. Part of development package APOC_OUTPUT_CONTROL_IMPL.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| apoc_d_or_doc | doc_kpro | inner |
| apoc_d_or_item | item_doc_kpro | union |
| apoc_d_or_item | item_kpro | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | APOC_CDS_KPRO | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.dataMaintenance | #DISPLAY_ONLY | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | KPRO Keys for OC Original Documents | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | item_uuid | apoc_d_or_item | db_key | UUID |
| root_uuid | apoc_d_or_item | parent_key | UUID | |
| ao | apoc_d_or_item | appl_object_type | Appl. Object Type | |
| ao_id | apoc_d_or_item | appl_object_id | Appl. Object ID | |
| doc_loio | apoc_d_or_item | kpro_class | DocuClass | |
| doc_phio | apoc_d_or_item | kpro_objid | Object ID | |
| doc_name | Document Name | |||
| root_uuid | apoc_d_or_item | parent_key | UUID | |
| ao | apoc_d_or_item | appl_object_type | Appl. Object Type | |
| ao_id | apoc_d_or_item | appl_object_id | Appl. Object ID | |
| doc_loio | apoc_d_or_doc | kpro_class | DocuClass | |
| doc_phio | apoc_d_or_doc | kpro_id | Object ID | |
| doc_name | apoc_d_or_doc | doc_name | Document Name | |
| pdl | apoc_d_or_doc | pdl_type | Page Descr. Language |
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 APOC_CDS_KPRO_KEY.
-- 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.
-- SQL view name: APOC_CDS_KPRO
CREATE VIEW APOC_CDS_KPRO_KEY AS
SELECT
item_kpro.db_key AS item_uuid,
item_kpro.parent_key AS root_uuid,
item_kpro.appl_object_type AS ao,
item_kpro.appl_object_id AS ao_id,
item_kpro.kpro_class AS doc_loio,
item_kpro.kpro_objid AS doc_phio,
cast( '' as apoc_document_name ) AS doc_name,
doc_kpro.pdl_type AS pdl
FROM apoc_d_or_item AS item_kpro
INNER JOIN apoc_d_or_doc AS doc_kpro ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): apoc_d_or_item
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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