EKREP SAP (Purchasing Data for Reporting) Structure details

Dictionary Type: Structure
Description: Purchasing Data for Reporting




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




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

EKREP 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 Data for Reporting" 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_EKREP TYPE EKREP.

The EKREP table consists of various fields, each holding specific information or linking keys about Purchasing Data for Reporting data available in SAP. These include EBELP (Item Number of Purchasing Document), LPEIN (Category of Delivery Date), EINDT (Delivery Date), EKORG (Purchasing Organization).. 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 EKREP 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 EBELNCHAR10EKKOALPHAEBELNBESMEKK_C
EBELPItem Number of Purchasing Document EBELPNUMC5EKPOEBELPBSP
LPEINCategory of Delivery Date LPEINCHAR1TPRGPRGBZ
EINDTDelivery Date EEINDCHAR10CHAR10
EKORGPurchasing Organization EKORGCHAR4T024EEKORGEKO
BSTYPPurchasing Document Category BSTYPCHAR1BSTYP
BSARTPurchasing Document Type ESARTCHAR4T161BSARTBSA
EKGRPPurchasing Group EKGRPCHAR3T024EKGRPEKG
LIFNRVendor Account Number ELIFNCHAR10LFA1ALPHALIFNRLIFKRED_C
NAME1Name NAME1CHAR30TEXT30
BEDATPurchasing Document Date EBDATDATS8DATUM
MATNRMaterial Number MATNRCHAR18MARAMATN1MATNRMATS_MAT1
TXZ01Short Text TXZ01CHAR40TEXT40
WERKSPlant EWERKCHAR4T001WWERKSWRK
MATKLMaterial Group MATKLCHAR9T023MATKLMKLS_WBWG
PSTYPItem Category in Purchasing Document PSTYPCHAR1T163PSTYP
KNTTPAccount Assignment Category KNTTPCHAR1T163KKNTTPKNT
MEINSPurchase Order Unit of Measure BSTMEUNIT3T006CUNITMEINS
LMEINBase Unit of Measure LAGMEUNIT3T006CUNITMEINS
KTMNGTarget Quantity KTMNGQUAN13(3) MENGE
KTLMGTarget quantity in stockkeeping unit KTLMGQUAN13(3) MENG13
MENGEPurchase Order Quantity BSTMGQUAN13(3) MENG13
BELMGPurchase Order Quantity in Stockkeeping Unit BELMGQUAN13(3) MENG13
ETMENScheduled Quantity ETMENQUAN13(3) MENGE
ETLMGScheduled quantity in stockkeeping unit ETLMGQUAN13(3) MENG13
WEMNGQuantity of Goods Received WEMNGQUAN13(3) MENG13
WELMGGoods receipt quantity in stockkeeping unit WELMGQUAN13(3) MENG13
REMNGQuantity invoiced REMNGQUAN13(3) MENG13
RELMGInvoice receipt quantity in stockkeeping unit RELMGQUAN13(3) MENG13
WAERSCurrency Key WAERSCUKY5TCURCWAERSFWS
HWAERLocal Currency HWAERCUKY5TCURCWAERS
NETWRNet Value in Document Currency NETWRCURR15(2) WERTV8
NETHWNet value of purchasing document item in local currency NEHWRCURR15(2) WERTV8
KTWRTTarget Value for Header Area per Distribution KTWRTCURR15(2) WERT15
KTHWROutline Agreement Target Value in Local Currency KTHWRCURR15(2) WERTV8
ZWERTTarget Value for Outline Agreement in Document Currency DZWERTCURR13(2) WERT7
ZWHWTTarget Value of Outline Agreement Item in Local Currency DZWHWTCURR13(2) WERT7
REWRTInvoice value in local currency REWRTCURR13(2) WRTV7
WEWRTValue of goods received in local currency WEWRTCURR13(2) WERT7
ACTIVList Level in which the Line Item is Active ACTIVNUMC2NUM02
SELKZSelection flag SELKZCHAR1SELKZ
EINTTItem Delivery Date EINDTDATS8DATUM

Key field Non-key field



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

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

How to access SAP table EKREP

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