MEPOHEADER SAP (Purchase Order Header Data) Structure details

Dictionary Type: Structure
Description: Purchase Order Header Data




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




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

MEPOHEADER 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 "Purchase Order Header Data" 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_MEPOHEADER TYPE MEPOHEADER.

The MEPOHEADER table consists of various fields, each holding specific information or linking keys about Purchase Order Header Data data available in SAP. These include EBELN (Purchasing Document Number), BUKRS (Company Code), BSART (Purchasing Document Type), LOEKZ (Deletion Indicator in Purchasing Document).. 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 MEPOHEADER 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
EBELNPurchasing Document Number EBELNCHAR10Assigned to domainALPHAEBELNBESMEKK_C
BUKRSCompany Code BUKRSCHAR4T001BUKRSBUKC_T001
BSARTPurchasing Document Type ESARTCHAR4T161BSARTBSA
LOEKZDeletion Indicator in Purchasing Document ELOEKCHAR1ELOEK
STATUStatus of Purchasing Document ESTAKCHAR1ESTAK
AEDATDate on Which Record Was Created ERDATDATS8DATUM
ERNAMName of Person who Created the Object ERNAMCHAR12USNAM
PINCRItem Number Interval PINCRNUMC5PINCR
LIFNRVendor Account Number ELIFNCHAR10LFA1ALPHALIFNRLIFKRED_C
SPRASLanguage Key SPRASLANG1T002ISOLASPRASSPRH_T002
ZTERMTerms of Payment Key DZTERMCHAR4ZTERM
ZBD1TCash (Prompt Payment) Discount Days DZBDETDEC3ZBDXT
ZBD2TCash (Prompt Payment) Discount Days DZBDETDEC3ZBDXT
ZBD3TCash (Prompt Payment) Discount Days DZBDETDEC3ZBDXT
ZBD1PCash Discount Percentage 1 DZBD1PDEC5(3) PRZ23
ZBD2PCash Discount Percentage 2 DZBD2PDEC5(3) PRZ23
EKORGPurchasing Organization EKORGCHAR4T024EEKORGEKO
EKGRPPurchasing Group BKGRPCHAR3T024EKGRPEKG
WAERSCurrency Key WAERSCUKY5TCURCWAERSFWS
WKURSExchange Rate WKURSDEC9(5) EXCRTKURSP
KUFIXIndicator: Fixing of Exchange Rate KUFIXCHAR1XFELD
BEDATPurchasing Document Date EBDATDATS8DATUM
KDATBStart of Validity Period KDATBDATS8DATUM
KDATEEnd of Validity Period KDATEDATS8DATUM
GWLDTWarranty Date MM_GWLDTDATS8DATUM
ANGNRQuotation Number ANGNRCHAR10ANGNR
IHRANQuotation Submission Date IHRANDATS8DATUM
IHREZYour Reference IHREZCHAR12TEXT12
VERKFResponsible Salesperson at Vendor's Office EVERKCHAR30TEXT30
TELF1Vendor's Telephone Number TELF0CHAR16TEXT16
LLIEFSupplying Vendor LLIEFCHAR10LFA1ALPHALIFNRLLI
KUNNRCustomer Numbers KUNNRCHAR10KNA1ALPHAKUNNRKUNC_KUNNR
KONNRNumber of Principal Purchase Agreement KONNRCHAR10EKKOALPHAEBELNKTR
WEAKTIndicator: Goods Receipt Message WEAKTCHAR1XFELD
RESWKSupplying (Issuing) Plant in Stock Transport Order RESWKCHAR4T001WWERKS
INCO1Incoterms (Part 1) INCO1CHAR3TINCINCO1
INCO2Incoterms (Part 2) INCO2CHAR28INCO2
SUBMICollective Number SUBMICHAR10CHAR10
LIFREDifferent Invoicing Party LIFRECHAR10LFA1ALPHALIFNRLRE
UNSEZOur Reference UNSEZCHAR12TEXT12
LOGSYLogical System LOGSYSTEMCHAR10Assigned to domainALPHALOGSYS
UPINCItem Number Interval for Subitems UPINCNUMC5PINCR
FRGKERelease Indicator: Purchasing Document FRGKECHAR1T16FBFRGKE
FRGZURelease status FRGZUCHAR8FRGZU
ADRNRAddress number AD_ADDRNUMCHAR10Assigned to domainALPHAAD_ADDRNUMADR
STCEG_LCountry of Sales Tax ID Number STCEG_LCHAR3Assigned to domainLAND1LND
ABSGRReason for Cancellation ABSGRNUMC2T165RNUMC02
PROCSTATPurchasing document processing state MEPROCSTATECHAR2MEPROCSTATE
STAKODocument with time-dependent conditions STAKOCHAR1XFELD
REASON_CODEGoods Receipt Reason Code /SAPPSPRO/_GR_REASON_CODECHAR4/SAPPSPRO/_GR_REASON_CODE
RETTPRetention Indicator RETTPCHAR1RET_TYPE
RETPCRetention in Percent RETPZDEC5(2) PRZ32
DPTYPDown Payment Indicator ME_DPTYPCHAR4ME_DPTYPE_DOMAIN
DPAMTDown Payment Amount in Document Currency ME_DPAMNTCURR11(2) WERT11
DPPCTDown Payment Percentage ME_DPPCNTDEC5(2) PRZ32
DPDATDue Date for Down Payment ME_DPDDATDATS8DATS
VSARTShipping type VERSARTCHAR2Assigned to domainVERSART
HANDOVERLOCLocation for a physical handover of goods HANDOVER_LOCCHAR10ALPHAHANDOVER_LOC
DUMMYDummy function in length 1 DUMMYCHAR1DUMMY
MSR_IDProcess Identification Number MSR_PROCESS_IDCHAR10ALPHAMSR_PROCESS_ID
.INCLU--AP 0
FORCE_IDInternal Key for Force Element /ISDFPS/FORCE_IDCHAR32SYSUUID_C
FORCE_CNTInternal (Version) Counter /ISDFPS/FORCE_CNTNUMC6NUMC6
RELOC_IDRelocation ID /ISDFPS/RELOC_IDCHAR10/ISDFPS/REL/ISDFPS/RELOC_ID
RELOC_SEQ_IDRelocation Step ID /ISDFPS/RELOC_SEQ_IDCHAR4/ISDFPS/RELSEQ/ISDFPS/RELOC_SEQ_ID
SOURCE_LOGSYSLogical system LOGSYSCHAR10Assigned to domainALPHALOGSYS
.INCLU--AP 0
VZSKZInterest calculation indicator VZSKZCHAR2Assigned to domainVZSKZ
.INCLU--AP 0
POHF_TYPEDocument for Seasonal Purchase Order Processing WRF_POHF_TYPECHAR1WRF_POHF_TYPE
EQ_EINDTDelivery Date Header: All Items Have Same Delivery Date WRF_POHF_EQ_EINDTDATS8DATUM
EQ_WERKSPlant Header: All Items Have Same Receiving Plant WRF_POHF_EQ_EWERKCHAR4Assigned to domainWERKS
FIXPOFirm Deal Indicator WRF_POHF_FIXPOCHAR1WRF_POHF_FIXPO_X
EKGRP_ALLOWTake Account of Purch. Group WRF_POHF_EKGRP_ALLOWCHAR1WRF_POHF_CHAR_1_2
WERKS_ALLOWTake Account of Plants WRF_POHF_WERKS_ALLOWCHAR1WRF_POHF_CHAR_1_2
CONTRACT_ALLOWTake Account of Contracts WRF_POHF_CONTRACT_ALLOWCHAR1WRF_POHF_CHAR_1_2
PSTYP_ALLOWTake Account of Item Categories WRF_POHF_PSTYP_ALLOWCHAR1WRF_POHF_CHAR_1_2
FIXPO_ALLOWTake Account of Fixed-Date Purchases Indicator WRF_POHF_FIXPO_ALLOWCHAR1WRF_POHF_CHAR_1_2
KEY_ID_ALLOWConsider Budget WRF_POHF_KEY_ID_ALLOWCHAR1WRF_POHF_CHAR_1_2
AUREL_ALLOWTake Account of Alloc. Table Relevance WRF_POHF_AUREL_ALLOWCHAR1WRF_POHF_CHAR_1_2
DELPER_ALLOWTake Account of Dlvy Period WRF_POHF_DELPER_ALLOWCHAR1WRF_POHF_CHAR_1_2
EINDT_ALLOWTake Account of Delivery Date WRF_POHF_EINDT_ALLOWCHAR1WRF_POHF_CHAR_1_2
LTSNR_ALLOWInclude Vendor Subrange WRF_POHF_LTSNR_ALLOWCHAR1WRF_POHF_CHAR_1_2
OTB_LEVELOTB Check Level WRF_POTB_CHECK_LEVELCHAR1WRF_POTB_CHECK_LEVEL
OTB_COND_TYPEOTB Condition Type WRF_POTB_COND_TYPECHAR4Assigned to domainKSCHL
KEY_IDUnique Number of Budget WRF_BUDG_KEY_IDNUMC16WRF_BUDG_KEY_ID
OTB_VALUERequired Budget WRF_POTB_VALUECURR17(2) WRF_POTB_VALUE
OTB_CURROTB Currency WRF_POTB_CURRENCYCUKY5Assigned to domainWAERS
OTB_RES_VALUEReserved Budget for OTB-Relevant Purchasing Document WRF_POTB_RES_VALUECURR17(2) WRF_POTB_RES_VALUE
OTB_SPEC_VALUESpecial Release Budget WRF_POTB_SPECIAL_VALUECURR17(2) WRF_POTB_SPECIAL_VALUE
SPR_RSN_PROFILEReason Profile for OTB Special Release WRF_POTB_SPR_RSN_PROFILECHAR4WRF_POTB_SPR_RSN_PROFILE
BUDG_TYPEBudget Type WRF_BUDG_TYPECHAR2WRF_BUDG_TYPEWRF_POTB_BUDGET_TYPE_F4
OTB_STATUSOTB Check Status WRF_POTB_STATUSCHAR1WRF_POTB_STATUS
OTB_REASONReason Indicator for OTB Check Status WRF_POTB_STATUS_REASONCHAR3WRF_POTB_STATUS_REASON
CHECK_TYPEType of OTB Check WRF_BUDG_OTB_CHECKCHAR1WRF_BUDG_OTB_CHECK
CON_OTB_REQOTB-Relevant Contract WRF_POTB_CON_REQCHAR1CHAR1_X
CON_PREBOOK_LEVOTB Indicator Level for Contracts WRF_POTB_PREBOOK_LEVELCHAR1WRF_POTB_PREBOOK_LEVEL
CON_DISTR_LEVDistribution Using Target Value or Item Data WRF_POTB_DISTRIB_LEVELCHAR1WRF_POTB_DISTRIB_LEVEL
DUMMY1Checkbox XFELDCHAR1XFELD
TM_CTRL_KEYControl Key for Document Transfer to TM TM_CTRL_KEYCHAR4
MSR_PO_TYPEPurchase Order Type for Advanced Returns MSR_PO_TYPECHAR1MSR_PO_TYPE
.INCLU--AP 0
DUMMY5Checkbox XFELDCHAR1XFELD
.INCLU--AP 0
PS_PA_ID_HDRPricing Arrangement Identifier /SAPPSPRO/_PA_STRUC_IDCHAR4/SAPPSPRO/PA_STRUC_ID
PS_PA_CLNG_HDRCeiling Amount /SAPPSPRO/_PA_CEILING_AMOUNTCURR15(2) WERT8
DUMMY3Checkbox XFELDCHAR1XFELD
.INCLU--AP 0
DUMMY4Checkbox XFELDCHAR1XFELD
MANDTClient MANDTCLNT3Assigned to domainMANDT
BSTYPPurchasing Document Category EBSTYPCHAR1EBSTYP
BSAKZControl indicator for purchasing document type BSAKZCHAR1BSAKZ
LPONRLast Item Number LPONRNUMC5EKPOEBELP
KNUMVNumber of the document condition KNUMVCHAR10KNUMV
KALSMProcedure (Pricing, Output Control, Acct. Det., Costing,...) KALSM_DCHAR6T683KALSM
STAFOUpdate group for statistics update STAFOCHAR6Assigned to domainALPHASTAFOMCF
EXNUMNumber of foreign trade data in MM and SD documents EXNUMCHAR10EIKPEXNUM
FRGGRRelease group FRGGRCHAR2T16FGFRGGR
FRGSXRelease Strategy FRGSXCHAR2T16FSFRGSX
FRGRLRelease Not Yet Completely Effected FRGRLCHAR1XFELD
LANDSCountry for Tax Return LAND1_STMLCHAR3T005LAND1
STCEGVAT Registration Number STCEGCHAR20STCEG
ADDNRDocument number for additional ADDI_BELNRCHAR10ALPHAADDI_BELNR
KORNRCorrection of miscellaneous provisions KORNRCHAR1KORNR
MEMORYPurchase order not yet complete MEMERCHAR1XFELD
MEMORYTYPECategory of Incompleteness MEMORYTYPECHAR1MM_MEMORYTYPE
IDNatural Number INT4INT410INT4
.INCLU--AP 0
POSTATFlag for the S1POSTAT message ADSPC_POSTATCHAR1ADSPC_FLAG
.INCLU--AP 0
POSPLITTrading Contract: Manual Purchase Order Split POSPLITCHAR10POSPLIT

Key field Non-key field



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

As MEPOHEADER 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 MEPOHEADER as there is no data to select.

How to access SAP table MEPOHEADER

Within an ECC or HANA version of SAP you can also view further information about MEPOHEADER 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!