MKPF SAP (Header: Material Document) Table details
Dictionary Type: Table
Description: Header: Material Document
Description: Header: Material Document
Table field list including key, data, relationships and ABAP select examples
MKPF is a standard SAP Table which is used to store Header: Material Document data and is available within R/3 SAP systems depending on the version and release level.
The MKPF table consists of various fields, each holding specific information or linking keys about Header: Material Document data available in SAP. These include MBLNR (Number of Material Document), MJAHR (Material Document Year), VGART (Transaction/Event Type), BLART (Document Type).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class: A - Application table (master and transaction data)Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)
SAP MKPF table fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
MANDT | Client | MANDT | CLNT | 3 | T000 | MANDT | |||
MBLNR | Number of Material Document | MBLNR | CHAR | 10 | ALPHA | BELNR | MBN | ||
MJAHR | Material Document Year | MJAHR | NUMC | 4 | GJAHR | GJAHR | MJA | ||
VGART | Transaction/Event Type | VGART | CHAR | 2 | T158V | VGART | |||
BLART | Document Type | BLART | CHAR | 2 | T003 | BLART | BAR | ||
BLAUM | Document type of revaluation document | BLAUM | CHAR | 2 | T003 | BLART | |||
BLDAT | Document Date in Document | BLDAT | DATS | 8 | DATUM | ||||
BUDAT | Posting Date in the Document | BUDAT | DATS | 8 | DATUM | ||||
CPUDT | Day On Which Accounting Document Was Entered | CPUDT | DATS | 8 | DATUM | ||||
CPUTM | Time of Entry | CPUTM | TIMS | 6 | UZEIT | ||||
AEDAT | Changed On | AEDAT | DATS | 8 | DATUM | ||||
USNAM | User name | USNAM | CHAR | 12 | Assigned to domain | XUBNAME | USR | ||
TCODE | Not More Closely Defined Area, Possibly Used for Patchlevels | CHAR4 | CHAR | 4 | CHAR4 | ||||
XBLNR | Reference Document Number | XBLNR1 | CHAR | 16 | XBLNR1 | ||||
BKTXT | Document Header Text | BKTXT | CHAR | 25 | TEXT25 | ||||
FRATH | Unplanned delivery costs | FRATH | CURR | 13(2) | WERT7 | ||||
FRBNR | Number of Bill of Lading at Time of Goods Receipt | FRBNR1 | CHAR | 16 | XBLNR1 | ||||
WEVER | Version for Printing GR/GI Slip | WEVER | CHAR | 1 | WEVER | WEV | |||
XABLN | Goods Receipt/Issue Slip Number | XABLN | CHAR | 10 | ALPHA | BELNR | |||
AWSYS | Logical System | LOGSYSTEM | CHAR | 10 | Assigned to domain | ALPHA | LOGSYS | ||
BLA2D | Doc. type for additional doc. in purchase account management | BLA2D | CHAR | 2 | Assigned to domain | BLART | |||
TCODE2 | Transaction Code | TCODE | CHAR | 20 | Assigned to domain | TCODE | TCD | ||
BFWMS | Control posting for external WMS | BFWMS | CHAR | 1 | BFWMS | ||||
EXNUM | Number of foreign trade data in MM and SD documents | EXNUM | CHAR | 10 | Assigned to domain | EXNUM | |||
SPE_BUDAT_UHR | Time of Goods Issue (Local, Relating to a Plant) | WAUHR | TIMS | 6 | TIME_PLANT | ||||
SPE_BUDAT_ZONE | Time Zone | TZNZONE | CHAR | 6 | Assigned to domain | TZNZONE | |||
LE_VBELN | Delivery | VBELN_VL | CHAR | 10 | Assigned to domain | ALPHA | VBELN | VL | |
SPE_LOGSYS | Logical System of EWM Material Document | /SPE/_LOGSYS_MD | CHAR | 10 | Assigned to domain | ALPHA | LOGSYS | ||
SPE_MDNUM_EWM | Number of Material Document in EWM | /SPE/MDNUM_EWM | CHAR | 16 | /SPE/MDNUM_EWM | ||||
GTS_CUSREF_NO | Customs Reference Number for Scrapping | /SAPSLL/SCREF_SPI | CHAR | 35 | CHAR35 | ||||
FLS_RSTO | Store Return with Inbound and Outbound Delivery | FLS_RSTO | CHAR | 1 | XFELD | ||||
MSR_ACTIVE | Advanced Returns Management Active | MSR_ACTIVE | CHAR | 1 | MSR_ACTIVE | ||||
.INCLU--AP | 0 | ||||||||
KNUMV | Number of the document condition | KNUMV | CHAR | 10 | KNUMV | ||||
.INCLU--AP | 0 | ||||||||
XCOMPL | Material document can only be canceled in full | MILL_CANCEL_COMPLETE | CHAR | 1 | CHAR1 | ||||
.INCLU--AP | 0 | ||||||||
LFSNR | Number of External Delivery Note | LFSNR1 | CHAR | 16 | XBLNR1 | ||||
OIB_BLTIME | Posting time in the document | OIB_BLTIME | TIMS | 6 | TIMES |
Key field | Non-key field |
How do I retrieve data from SAP table MKPF using ABAP code
The following ABAP code Example will allow you to do a basic selection on MKPF to SELECT all data from the tableDATA: WA_MKPF TYPE MKPF.
SELECT SINGLE *
FROM MKPF
INTO CORRESPONDING FIELDS OF WA_MKPF
WHERE...
How to access SAP table MKPF
Within an ECC or HANA version of SAP you can also view further information about MKPF and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects