MMDOC_HIER_LINKS
Document links of a hierarchy document
MMDOC_HIER_LINKS is an SAP database table in S/4HANA. Document links of a hierarchy document. It contains 10 fields. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| I_PurgDocHierarchyLink | view | from | BASIC | Basic View for Hierarchy Document Links |
Fields (10)
| Key | Field | Data Element | Description | Domain | Type | Length |
|---|---|---|---|---|---|---|
| KEY | client | MANDT | Client | |||
| KEY | purchasingsourcedocid | EBELN | Purchasing Doc. | |||
| KEY | documentcategory | BSTYP | Doc. Category | |||
| KEY | linktype | MMPUR_HIER_DOC_LINK_TYPE | Link Types for Doc. | |||
| KEY | purchasingtargetdocid | EBELN | Purchasing Doc. | |||
| sourcedocumentsubtype | BSAKZ | Control | ||||
| targetdocumentsubtype | BSAKZ | Control | ||||
| targetdoclastupdatestatus | MMPUR_DOCUMENT_UPDATE_STATUS | Doc. Update Status | ||||
| targetdoclastupdatetimestamp | CHANGEDATETIME | Last Changed | ||||
| distributionresponseguid | GUID16 | GUID |
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.
-- Document links of a hierarchy document
-- Category TRANSPARENT · Delivery class A
-- Derived schema, generated from indexed DDIC field metadata (not the verbatim SAP source).
CREATE TABLE MMDOC_HIER_LINKS (
CLIENT, -- Client [MANDT]
PURCHASINGSOURCEDOCID, -- Purchasing Doc. [EBELN]
DOCUMENTCATEGORY, -- Doc. Category [BSTYP]
LINKTYPE, -- Link Types for Doc. [MMPUR_HIER_DOC_LINK_TYPE]
PURCHASINGTARGETDOCID, -- Purchasing Doc. [EBELN]
SOURCEDOCUMENTSUBTYPE, -- Control [BSAKZ]
TARGETDOCUMENTSUBTYPE, -- Control [BSAKZ]
TARGETDOCLASTUPDATESTATUS, -- Doc. Update Status [MMPUR_DOCUMENT_UPDATE_STATUS]
TARGETDOCLASTUPDATETIMESTAMP, -- Last Changed [CHANGEDATETIME]
DISTRIBUTIONRESPONSEGUID, -- GUID [GUID16]
PRIMARY KEY (CLIENT, PURCHASINGSOURCEDOCID, DOCUMENTCATEGORY, LINKTYPE, PURCHASINGTARGETDOCID)
);
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