MCEKKO SAP (Purchasing Document Header) Structure details

Dictionary Type: Structure
Description: Purchasing Document Header




ABAP Code to SELECT data from MCEKKO
Related tables to MCEKKO
Access table MCEKKO




Structure field list including key, data, relationships and ABAP select examples

MCEKKO is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Purchasing Document Header" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_MCEKKO TYPE MCEKKO.

The MCEKKO table consists of various fields, each holding specific information or linking keys about Purchasing Document Header data available in SAP. These include EBELN (Purchasing Document Number), BUKRS (Company Code), BSTYP (Purchasing Document Category), BSART (Purchasing 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:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)


SAP MCEKKO structure 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
MANDTClient MANDTCLNT3T000MANDT
EBELNPurchasing Document Number EBELNCHAR10EKKOALPHAEBELNBESMEKK_C
BUKRSCompany Code BUKRSCHAR4T001BUKRSBUKC_T001
BSTYPPurchasing Document Category BSTYPCHAR1BSTYP
BSARTPurchasing Document Type ESARTCHAR4T161BSARTBSA
BSAKZControl indicator for purchasing document type BSAKZCHAR1BSAKZ
LOEKZDeletion Indicator in Purchasing Document ELOEKCHAR1ELOEK
LIFNRVendor Account Number ELIFNCHAR10LFA1ALPHALIFNRLIFKRED_C
EKORGPurchasing Organization EKORGCHAR4T024EEKORGEKO
EKGRPPurchasing Group BKGRPCHAR3T024EKGRPEKG
WAERSPurchase order currency BSTWACUKY5TCURCWAERS
WKURSExchange Rate WKURSDEC9(5) EXCRTKURSP
KUFIXIndicator: Fixing of Exchange Rate KUFIXCHAR1XFELD
BEDATPurchasing Document Date EBDATDATS8DATUM
LLIEFSupplying Vendor LLIEFCHAR10LFA1ALPHALIFNRLLI
KUNNRCustomer Numbers KUNNRCHAR10KNA1ALPHAKUNNRKUNC_KUNNR
RESWKSupplying (Issuing) Plant in Stock Transport Order RESWKCHAR4T001WWERKS
LBLIFField not used LBLIFCHAR10LFA1ALPHALIFNRLIF
KTWRTTarget Value for Header Area per Distribution KTWRTCURR15(2) WERT15
SUBMICollective Number SUBMICHAR10CHAR10
KNUMVNumber of the document condition KNUMVCHAR10KNUMV
STAFOUpdate group for statistics update STAFOCHAR6TMCBALPHASTAFOMCF
LIFREDifferent Invoicing Party LIFRECHAR10LFA1ALPHALIFNRLRE
FRGRLRelease Not Yet Completely Effected FRGRLCHAR1XFELD
STAKODocument with time-dependent conditions STAKOCHAR1XFELD
KALSMProcedure (Pricing, Output Control, Acct. Det., Costing,...) KALSM_DCHAR6Assigned to domainKALSM
KORNRCorrection of miscellaneous provisions KORNRCHAR1KORNR
RESBUCompany Code BUKRSCHAR4Assigned to domainBUKRSBUKC_T001
MEMORYPurchase order not yet complete MEMERCHAR1XFELD
REVNOVersion number in Purchasing REVNOCHAR8ALPHAREVNO
KONZSGroup key KONZSCHAR10KONZS
LAND1Country key of vendor MCLANDLCHAR3T005LAND1LND
HWAERLocal Currency HWAERCUKY5Assigned to domainWAERS
SYDATDate on which the purchasing document was entered MC_ERFDATDATS8DATUM
KZKPFIndicator: header counter relevant (R/2->R/3 link) MC_KZKPFCHAR1X
BUDATPosting date of goods received or invoice receipt for order MC_BUDATDATS8DATUM
ARECHNumber of invoices for vendors MC_ARECHINT410MCZAEHLINT
AGUTSNumber of credit memos for vendors MC_AGUTSINT410MCZAEHLINT
BTRTYPAPlant cat./ category of assortment owner MCW_VLFKZCHAR1VLFKZ
BRESWKCompany code of supplying plant MCW_BRESWKCHAR4Assigned to domainBUKRSBUKH_T001
DUMMYDummy function in length 1 DUMMYCHAR1DUMMY
.INCLU--AP 0
MERK4Characteristic Value ATWRTCHAR30ATWRT
MERK5Characteristic Value ATWRTCHAR30ATWRT
MERK6Characteristic Value ATWRTCHAR30ATWRT
MERK7Characteristic Value ATWRTCHAR30ATWRT
ATINM4Internal characteristic ATINNNUMC10Assigned to domainATINNATINN
ATINM5Internal characteristic ATINNNUMC10Assigned to domainATINNATINN
ATINM6Internal characteristic ATINNNUMC10Assigned to domainATINNATINN
ATINM7Internal characteristic ATINNNUMC10Assigned to domainATINNATINN
.INCLU--AP 0
ORGLOGSYLogical System LOGSYSTEMCHAR10Assigned to domainALPHALOGSYS
LOGSYLogical System LOGSYSTEMCHAR10Assigned to domainALPHALOGSYS
STATUStatus of Purchasing Document ESTAKCHAR1ESTAK
KDATBStart of Validity Period KDATBDATS8DATUM
KDATEEnd of Validity Period KDATEDATS8DATUM
ALIEFNumber of deliveries MC_ALIEFDEC9MCZAEHLER
.INCLU--AP 0
RESBU_XXDummy function in length 1 DUMMYCHAR1DUMMY

Key field Non-key field



How do I retrieve data from SAP structure MCEKKO using ABAP code?

As MCEKKO is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on MCEKKO as there is no data to select.

How to access SAP table MCEKKO

Within an ECC or HANA version of SAP you can also view further information about MCEKKO and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


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!