APOC_D_OR_DOC
APOC Document Index table
APOC_D_OR_DOC is an SAP database table in S/4HANA. APOC Document Index table. It contains 13 fields. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| APOC_CDS_KPRO_KEY | view | inner | KPRO Keys for OC Original Documents |
Fields (13)
| Key | Field | Data Element | Description | Domain | Type | Length |
|---|---|---|---|---|---|---|
| KEY | mandt | MANDT | Client | |||
| KEY | doc_id | APOC_DOC_ID | Document UUID | |||
| KEY | file_type | APOC_FILE_TYPE | File Type of the Document | |||
| kpro_class | SDOK_CLASS | DocuClass | ||||
| kpro_id | SDOK_DOCID | Object ID | ||||
| timestamp | TIMESTAMP | Time Stamp | ||||
| ref_cat | APOC_DOC_REF_CAT | Reference Category | ||||
| ref_id | /BOBF/CONF_KEY | NodeID | ||||
| num_pages | APOC_DOC_NO_OF_PAGES | Number of Pages | ||||
| pdl_type | APOC_PDL_TYPE | Page Descr. Language | ||||
| doc_name | APOC_DOCUMENT_NAME | Document Name | ||||
| is_orphan | APOC_DOC_ORPHAN | Flag: Is an orphan | ||||
| last_changed_at | APOC_DOC_LAST_CHANGED_AT | Last changed at |
Derived SQL schema, reconstructed from the indexed DDIC field metadata (field names, types, lengths and key flags) — a functional representation, not the verbatim SAP source.
-- APOC Document Index table
-- Category TRANSPARENT · Delivery class A
-- Derived schema, generated from indexed DDIC field metadata (not the verbatim SAP source).
CREATE TABLE APOC_D_OR_DOC (
MANDT, -- Client [MANDT]
DOC_ID, -- Document UUID [APOC_DOC_ID]
FILE_TYPE, -- File Type of the Document [APOC_FILE_TYPE]
KPRO_CLASS, -- DocuClass [SDOK_CLASS]
KPRO_ID, -- Object ID [SDOK_DOCID]
TIMESTAMP, -- Time Stamp [TIMESTAMP]
REF_CAT, -- Reference Category [APOC_DOC_REF_CAT]
REF_ID, -- NodeID [/BOBF/CONF_KEY]
NUM_PAGES, -- Number of Pages [APOC_DOC_NO_OF_PAGES]
PDL_TYPE, -- Page Descr. Language [APOC_PDL_TYPE]
DOC_NAME, -- Document Name [APOC_DOCUMENT_NAME]
IS_ORPHAN, -- Flag: Is an orphan [APOC_DOC_ORPHAN]
LAST_CHANGED_AT, -- Last changed at [APOC_DOC_LAST_CHANGED_AT]
PRIMARY KEY (MANDT, DOC_ID, FILE_TYPE)
);
Learn More
- Understanding Data Lineage in SAP S/4HANA
- SAP Tables vs CDS Views — Key Differences
- Understanding the SAP S/4HANA Data Model
- 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
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA