SAP MKPF Table in S/4 HANA - Header: Material Document
MKPF is a standard SAP Table which is used to store Header: Material Document data and is available within SAP S/4 HANA systems and previous ECC R/3 systems. Below is the technical details and the field list relevant for an SAP S/4 HANA system, see here for details and fields available within the SAP R/3 version of the MKPF table(ECC)
Delivery Class: A - Application table (master and transaction data)
Display/Maintenance via SM30: Display/Maintenance Allowed but with Restrictions
Enhancement category: Can be enhanced (character-type or numeric)
Dictionary Type: Transparent table
View reference: NSDM_V_MKPF
DDL Object: NSDM_DDL_MKPF
Database Table: MATDOC
MKPF data in SAP S/4 Hana is actually from table MATDOC
So MKPF ECC R/3 vs MKPF SAP S/4 Hana... has it not been replaced? The answer is yes MKPF has been replaced by MATDOC in SAP S/4 Hana systems...ok so why is it still there and contain data when you look via transaction codes like SE11/SE16 etc, and doesn't that add a level of complexity keeping both tables upto date....
Well actually no, although you can still see MKPF as a table it is actually just a view of the new Hana table with all the same fields traditionally associated with MKPF. Behind the scenes it is a DDL object CDS view which selects the data from MATDOC and presents it as if the original table still exists. Clever really as this means all the old ABAP code that performs a select on this table will actually still work.. Yes you may want to rewrite it to take advantage of the new Hana table and all the in memory benefits but untill you do it will still work.
MATDOC used for fields of table MKPF
The data and therefore the actual field list comes from the ddl cds view and are mapped from the source hana table to match the legacy ECC SAP MKPF Table. Below is the CDS code that builds this table viewMKPF table structure field list
Also Below is the traditional view of MKPF field list that makes up the SAP database table structure as you would see it within SE11, including highlighted key fields, description, data type and other technical details of each field
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP | SHLP Field |
MANDT | Client | MANDT | CLNT | 3(0) | T000 | MANDT | ||||
MBLNR | Number of Material Document | MBLNR | CHAR | 10(0) | ALPHA | BELNR | MBN | |||
MJAHR | Material Document Year | MJAHR | NUMC | 4(0) | GJAHR | GJAHR | MJA | |||
VGART | Transaction/Event Type | VGART | CHAR | 2(0) | T158V | VGART | ||||
BLART | Document type | BLART | CHAR | 2(0) | T003 | BLART | BAR | |||
BLAUM | Document type of revaluation document | BLAUM | CHAR | 2(0) | T003 | BLART | ||||
BLDAT | Document Date in Document | BLDAT | DATS | 8(0) | DATUM | |||||
BUDAT | Posting Date in the Document | BUDAT | DATS | 8(0) | DATUM | |||||
CPUDT | Day On Which Accounting Document Was Entered | CPUDT | DATS | 8(0) | DATUM | |||||
CPUTM | Time of Entry | CPUTM | TIMS | 6(0) | UZEIT | |||||
AEDAT | Date of Last Change | AEDAT | DATS | 8(0) | DATUM | |||||
USNAM | User Name | USNAM | CHAR | 12(0) | XUBNAME | USR | ||||
TCODE | Undefined range (can be used for patch levels) | CHAR4 | CHAR | 4(0) | CHAR4 | |||||
XBLNR | Reference Document Number | XBLNR1 | CHAR | 16(0) | XBLNR1 | |||||
BKTXT | Document Header Text | BKTXT | CHAR | 25(0) | TEXT25 | |||||
FRATH | Unplanned delivery costs | FRATH | CURR | 13(2) | WERT7 | |||||
FRBNR | Number of Bill of Lading at Time of Goods Receipt | FRBNR1 | CHAR | 16(0) | XBLNR1 | |||||
WEVER | Version for Printing GR/GI Slip | WEVER | CHAR | 1(0) | WEVER | WEV | ||||
XABLN | Goods Receipt/Issue Slip Number | XABLN | CHAR | 10(0) | ALPHA | BELNR | ||||
AWSYS | Logical System | LOGSYSTEM | CHAR | 10(0) | ALPHA | LOGSYS | ||||
BLA2D | Doc. type for additional doc. in purchase account management | BLA2D | CHAR | 2(0) | BLART | |||||
TCODE2 | Transaction Code | TCODE | CHAR | 20(0) | TCODE | TCD | ||||
BFWMS | Control posting for external WMS | BFWMS | CHAR | 1(0) | BFWMS | |||||
EXNUM | Number of foreign trade data in MM and SD documents | EXNUM | CHAR | 10(0) | EXNUM | |||||
SPE_BUDAT_UHR | Time of Goods Issue (Local, Relating to a Plant) | WAUHR | TIMS | 6(0) | TIME_PLANT | |||||
SPE_BUDAT_ZONE | Time Zone | TZNZONE | CHAR | 6(0) | TZNZONE | |||||
LE_VBELN | Delivery | VBELN_VL | CHAR | 10(0) | ALPHA | VBELN | VL | |||
SPE_LOGSYS | Logical System of EWM Material Document | /SPE/_LOGSYS_MD | CHAR | 10(0) | ALPHA | LOGSYS | ||||
SPE_MDNUM_EWM | Number of Material Document in EWM | /SPE/MDNUM_EWM | CHAR | 16(0) | /SPE/MDNUM_EWM | |||||
GTS_CUSREF_NO | Customs Reference Number for Scrapping | /SAPSLL/SCREF_SPI | CHAR | 35(0) | CHAR35 | |||||
FLS_RSTO | Store Return with Inbound and Outbound Delivery | FLS_RSTO | CHAR | 1(0) | XFELD | |||||
MSR_ACTIVE | Advanced Returns Management Active | MSR_ACTIVE | CHAR | 1(0) | MSR_ACTIVE | |||||
.INCLU--AP | 0(0) | |||||||||
KNUMV | Number of the Document Condition | KNUMV | CHAR | 10(0) | KNUMV | |||||
.INCLU--AP | 0(0) | |||||||||
XCOMPL | Material document can only be canceled in full | MILL_CANCEL_COMPLETE | CHAR | 1(0) | CHAR1 |
Search for further information about these or an SAP related objects