MCEKKO SAP (Purchasing Document Header) Structure details
Description: Purchasing Document Header
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 |
MANDT | Client | MANDT | CLNT | 3 | T000 | MANDT | |||
EBELN | Purchasing Document Number | EBELN | CHAR | 10 | EKKO | ALPHA | EBELN | BES | MEKK_C |
BUKRS | Company Code | BUKRS | CHAR | 4 | T001 | BUKRS | BUK | C_T001 | |
BSTYP | Purchasing Document Category | BSTYP | CHAR | 1 | BSTYP | ||||
BSART | Purchasing Document Type | ESART | CHAR | 4 | T161 | BSART | BSA | ||
BSAKZ | Control indicator for purchasing document type | BSAKZ | CHAR | 1 | BSAKZ | ||||
LOEKZ | Deletion Indicator in Purchasing Document | ELOEK | CHAR | 1 | ELOEK | ||||
LIFNR | Vendor Account Number | ELIFN | CHAR | 10 | LFA1 | ALPHA | LIFNR | LIF | KRED_C |
EKORG | Purchasing Organization | EKORG | CHAR | 4 | T024E | EKORG | EKO | ||
EKGRP | Purchasing Group | BKGRP | CHAR | 3 | T024 | EKGRP | EKG | ||
WAERS | Purchase order currency | BSTWA | CUKY | 5 | TCURC | WAERS | |||
WKURS | Exchange Rate | WKURS | DEC | 9(5) | EXCRT | KURSP | |||
KUFIX | Indicator: Fixing of Exchange Rate | KUFIX | CHAR | 1 | XFELD | ||||
BEDAT | Purchasing Document Date | EBDAT | DATS | 8 | DATUM | ||||
LLIEF | Supplying Vendor | LLIEF | CHAR | 10 | LFA1 | ALPHA | LIFNR | LLI | |
KUNNR | Customer Numbers | KUNNR | CHAR | 10 | KNA1 | ALPHA | KUNNR | KUN | C_KUNNR |
RESWK | Supplying (Issuing) Plant in Stock Transport Order | RESWK | CHAR | 4 | T001W | WERKS | |||
LBLIF | Field not used | LBLIF | CHAR | 10 | LFA1 | ALPHA | LIFNR | LIF | |
KTWRT | Target Value for Header Area per Distribution | KTWRT | CURR | 15(2) | WERT15 | ||||
SUBMI | Collective Number | SUBMI | CHAR | 10 | CHAR10 | ||||
KNUMV | Number of the document condition | KNUMV | CHAR | 10 | KNUMV | ||||
STAFO | Update group for statistics update | STAFO | CHAR | 6 | TMCB | ALPHA | STAFO | MCF | |
LIFRE | Different Invoicing Party | LIFRE | CHAR | 10 | LFA1 | ALPHA | LIFNR | LRE | |
FRGRL | Release Not Yet Completely Effected | FRGRL | CHAR | 1 | XFELD | ||||
STAKO | Document with time-dependent conditions | STAKO | CHAR | 1 | XFELD | ||||
KALSM | Procedure (Pricing, Output Control, Acct. Det., Costing,...) | KALSM_D | CHAR | 6 | Assigned to domain | KALSM | |||
KORNR | Correction of miscellaneous provisions | KORNR | CHAR | 1 | KORNR | ||||
RESBU | Company Code | BUKRS | CHAR | 4 | Assigned to domain | BUKRS | BUK | C_T001 | |
MEMORY | Purchase order not yet complete | MEMER | CHAR | 1 | XFELD | ||||
REVNO | Version number in Purchasing | REVNO | CHAR | 8 | ALPHA | REVNO | |||
KONZS | Group key | KONZS | CHAR | 10 | KONZS | ||||
LAND1 | Country key of vendor | MCLANDL | CHAR | 3 | T005 | LAND1 | LND | ||
HWAER | Local Currency | HWAER | CUKY | 5 | Assigned to domain | WAERS | |||
SYDAT | Date on which the purchasing document was entered | MC_ERFDAT | DATS | 8 | DATUM | ||||
KZKPF | Indicator: header counter relevant (R/2->R/3 link) | MC_KZKPF | CHAR | 1 | X | ||||
BUDAT | Posting date of goods received or invoice receipt for order | MC_BUDAT | DATS | 8 | DATUM | ||||
ARECH | Number of invoices for vendors | MC_ARECH | INT4 | 10 | MCZAEHLINT | ||||
AGUTS | Number of credit memos for vendors | MC_AGUTS | INT4 | 10 | MCZAEHLINT | ||||
BTRTYPA | Plant cat./ category of assortment owner | MCW_VLFKZ | CHAR | 1 | VLFKZ | ||||
BRESWK | Company code of supplying plant | MCW_BRESWK | CHAR | 4 | Assigned to domain | BUKRS | BUK | H_T001 | |
DUMMY | Dummy function in length 1 | DUMMY | CHAR | 1 | DUMMY | ||||
.INCLU--AP | 0 | ||||||||
MERK4 | Characteristic Value | ATWRT | CHAR | 30 | ATWRT | ||||
MERK5 | Characteristic Value | ATWRT | CHAR | 30 | ATWRT | ||||
MERK6 | Characteristic Value | ATWRT | CHAR | 30 | ATWRT | ||||
MERK7 | Characteristic Value | ATWRT | CHAR | 30 | ATWRT | ||||
ATINM4 | Internal characteristic | ATINN | NUMC | 10 | Assigned to domain | ATINN | ATINN | ||
ATINM5 | Internal characteristic | ATINN | NUMC | 10 | Assigned to domain | ATINN | ATINN | ||
ATINM6 | Internal characteristic | ATINN | NUMC | 10 | Assigned to domain | ATINN | ATINN | ||
ATINM7 | Internal characteristic | ATINN | NUMC | 10 | Assigned to domain | ATINN | ATINN | ||
.INCLU--AP | 0 | ||||||||
ORGLOGSY | Logical System | LOGSYSTEM | CHAR | 10 | Assigned to domain | ALPHA | LOGSYS | ||
LOGSY | Logical System | LOGSYSTEM | CHAR | 10 | Assigned to domain | ALPHA | LOGSYS | ||
STATU | Status of Purchasing Document | ESTAK | CHAR | 1 | ESTAK | ||||
KDATB | Start of Validity Period | KDATB | DATS | 8 | DATUM | ||||
KDATE | End of Validity Period | KDATE | DATS | 8 | DATUM | ||||
ALIEF | Number of deliveries | MC_ALIEF | DEC | 9 | MCZAEHLER | ||||
.INCLU--AP | 0 | ||||||||
RESBU_XX | Dummy function in length 1 | DUMMY | CHAR | 1 | DUMMY |
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 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