EREV SAP (Version in Purchasing) Table details
Dictionary Type: Table
Description: Version in Purchasing
Description: Version in Purchasing
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 |
MANDT | Client | MANDT | CLNT | 3 | Assigned to domain | MANDT | |||
BSTYP | Purchasing Document Category | BSTYP_DCM | CHAR | 1 | BSTYP_DCM | ||||
EDOKN | Object Number in Purchasing | EDOKN | CHAR | 10 | ALPHA | EDOKN | |||
EDOKP | Purchasing object: item | EDOKP | NUMC | 5 | Assigned to domain | EBELP | |||
REVNO | Version number in Purchasing | REVNO | CHAR | 8 | ALPHA | REVNO | |||
ERNAM | Name of Person who Created the Object | ERNAM | CHAR | 12 | USNAM | ||||
ERDAT | Date on Which Record Was Created | ERDAT | DATS | 8 | DATUM | ||||
ERUHR | Entry time | ERZET | TIMS | 6 | UZEIT | ||||
FGNAM | Name of person effecting release | FGNAM | CHAR | 12 | USNAM | ||||
FGDAT | Date of release | FGDAT | DATS | 8 | DATUM | ||||
FGUHR | Time of release | FGUHR | TIMS | 6 | UZEIT | ||||
OKNAM | Name of approving buyer | OKNAM | CHAR | 12 | USNAM | ||||
OKDAT | Date of buyer approval | OKDAT | DATS | 8 | DATUM | ||||
OKUHR | Time of buyer approval | OKUHR | TIMS | 6 | UZEIT | ||||
RSCOD | Reason for change | RSCOD | CHAR | 4 | T16CC | RSCOD | |||
TXZ01 | Description of version | TXZ01_DCM | CHAR | 60 | TEXT60 | ||||
EXTNR | External Change Number of Version | DCM_EXTNR | CHAR | 20 | CHAR20 | ||||
CRNAM | Person requesting change | DCM_AFNAM | CHAR | 12 | AFNAM | ||||
NETWR | Net Order Value in PO Currency | BWERT | CURR | 13(2) | WERT7 | ||||
DIFWR | Value change due to version | DCM_DIFWR | CURR | 13(2) | WERTV7 | ||||
WAERS | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
BUDAT | Posting date of version | DCM_BUDAT | DATS | 8 | DATUM | ||||
REVOK | Status 'version completed' | DCM_REVOK | CHAR | 1 | XFELD | ||||
STREV | Version status | STREV | CHAR | 1 | STREV | ||||
LOEKZ | Deletion Indicator in Purchasing Document | ELOEK | CHAR | 1 | ELOEK | ||||
BANPR | Old processing state in purchasing document before version | BANPR_OLD | CHAR | 2 | BANPR |
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 tableDATA: 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 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