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 view

MKPF 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
MANDTClientMANDTCLNT3(0) T000MANDT
MBLNRNumber of Material DocumentMBLNRCHAR10(0) ALPHABELNRMBN
MJAHRMaterial Document YearMJAHRNUMC4(0) GJAHRGJAHRMJA
VGARTTransaction/Event TypeVGARTCHAR2(0) T158VVGART
BLARTDocument typeBLARTCHAR2(0) T003BLARTBAR
BLAUMDocument type of revaluation documentBLAUMCHAR2(0) T003BLART
BLDATDocument Date in DocumentBLDATDATS8(0) DATUM
BUDATPosting Date in the DocumentBUDATDATS8(0) DATUM
CPUDTDay On Which Accounting Document Was EnteredCPUDTDATS8(0) DATUM
CPUTMTime of EntryCPUTMTIMS6(0) UZEIT
AEDATDate of Last ChangeAEDATDATS8(0) DATUM
USNAMUser NameUSNAMCHAR12(0) XUBNAMEUSR
TCODEUndefined range (can be used for patch levels)CHAR4CHAR4(0) CHAR4
XBLNRReference Document NumberXBLNR1CHAR16(0) XBLNR1
BKTXTDocument Header TextBKTXTCHAR25(0) TEXT25
FRATHUnplanned delivery costsFRATHCURR13(2) WERT7
FRBNRNumber of Bill of Lading at Time of Goods ReceiptFRBNR1CHAR16(0) XBLNR1
WEVERVersion for Printing GR/GI SlipWEVERCHAR1(0) WEVERWEV
XABLNGoods Receipt/Issue Slip NumberXABLNCHAR10(0) ALPHABELNR
AWSYSLogical SystemLOGSYSTEMCHAR10(0) ALPHALOGSYS
BLA2DDoc. type for additional doc. in purchase account managementBLA2DCHAR2(0) BLART
TCODE2Transaction CodeTCODECHAR20(0) TCODETCD
BFWMSControl posting for external WMSBFWMSCHAR1(0) BFWMS
EXNUMNumber of foreign trade data in MM and SD documentsEXNUMCHAR10(0) EXNUM
SPE_BUDAT_UHRTime of Goods Issue (Local, Relating to a Plant)WAUHRTIMS6(0) TIME_PLANT
SPE_BUDAT_ZONETime ZoneTZNZONECHAR6(0) TZNZONE
LE_VBELNDeliveryVBELN_VLCHAR10(0) ALPHAVBELNVL
SPE_LOGSYSLogical System of EWM Material Document/SPE/_LOGSYS_MDCHAR10(0) ALPHALOGSYS
SPE_MDNUM_EWMNumber of Material Document in EWM/SPE/MDNUM_EWMCHAR16(0) /SPE/MDNUM_EWM
GTS_CUSREF_NOCustoms Reference Number for Scrapping/SAPSLL/SCREF_SPICHAR35(0) CHAR35
FLS_RSTOStore Return with Inbound and Outbound DeliveryFLS_RSTOCHAR1(0) XFELD
MSR_ACTIVEAdvanced Returns Management ActiveMSR_ACTIVECHAR1(0) MSR_ACTIVE
.INCLU--AP0(0)
KNUMVNumber of the Document ConditionKNUMVCHAR10(0) KNUMV
.INCLU--AP0(0)
XCOMPLMaterial document can only be canceled in fullMILL_CANCEL_COMPLETECHAR1(0) CHAR1




Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!