MGEF SAP (Hazardous materials) Table details
Dictionary Type: Table
Description: Hazardous materials
Description: Hazardous materials
Table field list including key, data, relationships and ABAP select examples
MGEF is a standard SAP Table which is used to store Hazardous materials data and is available within R/3 SAP systems depending on the version and release level.
The MGEF table consists of various fields, each holding specific information or linking keys about Hazardous materials data available in SAP. These include STOFF (Hazardous material number), REGKZ (Region code), LAGKL (Storage class), WGFKL (Water Pollution Class).. 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 MGEF 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 | |||
STOFF | Hazardous material number | STOFF | CHAR | 18 | MATN1 | STOFF | STO | ||
REGKZ | Region code | REGKZ | CHAR | 3 | T646R | REGKZ | REG | ||
LAGKL | Storage class | LVS_LAGKL | CHAR | 5 | T646L | MGEF_LAGKL | |||
WGFKL | Water Pollution Class | MGEF_WGFKL | NUMC | 1 | MGEF_WGFKL | ||||
WGKKZ | Ind.: water pollution classification prescribed by law | MGEF_WGKKZ | CHAR | 1 | XFELD | ||||
GFVM1 | Hazardous material warning | MGEF_GFVM0 | CHAR | 2 | T646G | MGEF_GFVM0 | |||
GFVM2 | Hazardous material warning | MGEF_GFVM0 | CHAR | 2 | T646G | MGEF_GFVM0 | |||
GFVM3 | Hazardous material warning | MGEF_GFVM0 | CHAR | 2 | T646G | MGEF_GFVM0 | |||
GFVM4 | Hazardous material warning | MGEF_GFVM0 | CHAR | 2 | T646G | MGEF_GFVM0 | |||
GFVM5 | Hazardous material warning | MGEF_GFVM0 | CHAR | 2 | T646G | MGEF_GFVM0 | |||
GFVM6 | Hazardous material warning | MGEF_GFVM0 | CHAR | 2 | T646G | MGEF_GFVM0 | |||
GFVM7 | Hazardous material warning | MGEF_GFVM0 | CHAR | 2 | T646G | MGEF_GFVM0 | |||
GFVM8 | Hazardous material warning | MGEF_GFVM0 | CHAR | 2 | T646G | MGEF_GFVM0 | |||
SFNR1 | Number of hazardous substance | MGEF_SFNR0 | CHAR | 6 | MGEF_SFNR0 | ||||
SFNR2 | Number of hazardous substance | MGEF_SFNR0 | CHAR | 6 | MGEF_SFNR0 | ||||
SFNR3 | Number of hazardous substance | MGEF_SFNR0 | CHAR | 6 | MGEF_SFNR0 | ||||
SFNR4 | Number of hazardous substance | MGEF_SFNR0 | CHAR | 6 | MGEF_SFNR0 | ||||
SFKO1 | Concentration of hazardous substances | MGEF_SFKO0 | DEC | 5(2) | MGEF_SFKO0 | ||||
SFKO2 | Concentration of hazardous substances | MGEF_SFKO0 | DEC | 5(2) | MGEF_SFKO0 | ||||
SFKO3 | Concentration of hazardous substances | MGEF_SFKO0 | DEC | 5(2) | MGEF_SFKO0 | ||||
SFKO4 | Concentration of hazardous substances | MGEF_SFKO0 | DEC | 5(2) | MGEF_SFKO0 | ||||
FLAPU | Flash point | MGEF_FLAPU | DEC | 5(1) | MGEF_FLAPU | ||||
SIDNR | Safety specifications sheet number | MGEF_SIDNR | CHAR | 10 | MGEF_SIDNR | ||||
SIVAR | Variant of safety specifications sheet | MGEF_SIVAR | CHAR | 8 | MGEF_SIVAR | ||||
SIVER | Version of safety specifications sheet | MGEF_SIVER | CHAR | 6 | MGEF_SIVER | ||||
LGFVM | Hazardous material storage warning | MGEF_LGFVM | CHAR | 2 | T646V | MGEF_LGFVM | |||
AGGRE | State of matter | MGEF_AGGRE | CHAR | 1 | T646A | MGEF_AGGRE | |||
VBFKL | Hazard classification of regulation on combustible fluids | MGEF_VBFKL | CHAR | 4 | MGEF_VBFKL | ||||
STOFT | Short text for number of hazardous material | MGEF_STOFT | CHAR | 40 | TEXT40 | ||||
STOKL | Class of substances | MGEF_STOKL | CHAR | 9 | T023 | MATKL |
Key field | Non-key field |
How do I retrieve data from SAP table MGEF using ABAP code
The following ABAP code Example will allow you to do a basic selection on MGEF to SELECT all data from the tableDATA: WA_MGEF TYPE MGEF.
SELECT SINGLE *
FROM MGEF
INTO CORRESPONDING FIELDS OF WA_MGEF
WHERE...
How to access SAP table MGEF
Within an ECC or HANA version of SAP you can also view further information about MGEF 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