EREV SAP (Version in Purchasing) Table details

Dictionary Type: Table
Description: Version in Purchasing




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




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

EREV is a standard SAP Table which is used to store Version in Purchasing data and is available within R/3 SAP systems depending on the version and release level.

The EREV table consists of various fields, each holding specific information or linking keys about Version in Purchasing data available in SAP. These include BSTYP (Purchasing Document Category), EDOKN (Object Number in Purchasing), EDOKP (Purchasing object: item), REVNO (Version number in Purchasing).. 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: A - Application table (master and transaction data)
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)


SAP EREV table 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 MANDTCLNT3Assigned to domainMANDT
BSTYPPurchasing Document Category BSTYP_DCMCHAR1BSTYP_DCM
EDOKNObject Number in Purchasing EDOKNCHAR10ALPHAEDOKN
EDOKPPurchasing object: item EDOKPNUMC5Assigned to domainEBELP
REVNOVersion number in Purchasing REVNOCHAR8ALPHAREVNO
ERNAMName of Person who Created the Object ERNAMCHAR12USNAM
ERDATDate on Which Record Was Created ERDATDATS8DATUM
ERUHREntry time ERZETTIMS6UZEIT
FGNAMName of person effecting release FGNAMCHAR12USNAM
FGDATDate of release FGDATDATS8DATUM
FGUHRTime of release FGUHRTIMS6UZEIT
OKNAMName of approving buyer OKNAMCHAR12USNAM
OKDATDate of buyer approval OKDATDATS8DATUM
OKUHRTime of buyer approval OKUHRTIMS6UZEIT
RSCODReason for change RSCODCHAR4T16CCRSCOD
TXZ01Description of version TXZ01_DCMCHAR60TEXT60
EXTNRExternal Change Number of Version DCM_EXTNRCHAR20CHAR20
CRNAMPerson requesting change DCM_AFNAMCHAR12AFNAM
NETWRNet Order Value in PO Currency BWERTCURR13(2) WERT7
DIFWRValue change due to version DCM_DIFWRCURR13(2) WERTV7
WAERSCurrency Key WAERSCUKY5Assigned to domainWAERSFWS
BUDATPosting date of version DCM_BUDATDATS8DATUM
REVOKStatus 'version completed' DCM_REVOKCHAR1XFELD
STREVVersion status STREVCHAR1STREV
LOEKZDeletion Indicator in Purchasing Document ELOEKCHAR1ELOEK
BANPROld processing state in purchasing document before version BANPR_OLDCHAR2BANPR

Key field Non-key field



How do I retrieve data from SAP table EREV using ABAP code

The following ABAP code Example will allow you to do a basic selection on EREV to SELECT all data from the table
DATA: WA_EREV TYPE EREV.

SELECT SINGLE *
FROM EREV
INTO CORRESPONDING FIELDS OF WA_EREV
WHERE...

How to access SAP table EREV

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