MGEF SAP (Hazardous materials) Table details

Dictionary Type: Table
Description: Hazardous materials




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




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
MANDTClient MANDTCLNT3Assigned to domainMANDT
STOFFHazardous material number STOFFCHAR18MATN1STOFFSTO
REGKZRegion code REGKZCHAR3T646RREGKZREG
LAGKLStorage class LVS_LAGKLCHAR5T646LMGEF_LAGKL
WGFKLWater Pollution Class MGEF_WGFKLNUMC1MGEF_WGFKL
WGKKZInd.: water pollution classification prescribed by law MGEF_WGKKZCHAR1XFELD
GFVM1Hazardous material warning MGEF_GFVM0CHAR2T646GMGEF_GFVM0
GFVM2Hazardous material warning MGEF_GFVM0CHAR2T646GMGEF_GFVM0
GFVM3Hazardous material warning MGEF_GFVM0CHAR2T646GMGEF_GFVM0
GFVM4Hazardous material warning MGEF_GFVM0CHAR2T646GMGEF_GFVM0
GFVM5Hazardous material warning MGEF_GFVM0CHAR2T646GMGEF_GFVM0
GFVM6Hazardous material warning MGEF_GFVM0CHAR2T646GMGEF_GFVM0
GFVM7Hazardous material warning MGEF_GFVM0CHAR2T646GMGEF_GFVM0
GFVM8Hazardous material warning MGEF_GFVM0CHAR2T646GMGEF_GFVM0
SFNR1Number of hazardous substance MGEF_SFNR0CHAR6MGEF_SFNR0
SFNR2Number of hazardous substance MGEF_SFNR0CHAR6MGEF_SFNR0
SFNR3Number of hazardous substance MGEF_SFNR0CHAR6MGEF_SFNR0
SFNR4Number of hazardous substance MGEF_SFNR0CHAR6MGEF_SFNR0
SFKO1Concentration of hazardous substances MGEF_SFKO0DEC5(2) MGEF_SFKO0
SFKO2Concentration of hazardous substances MGEF_SFKO0DEC5(2) MGEF_SFKO0
SFKO3Concentration of hazardous substances MGEF_SFKO0DEC5(2) MGEF_SFKO0
SFKO4Concentration of hazardous substances MGEF_SFKO0DEC5(2) MGEF_SFKO0
FLAPUFlash point MGEF_FLAPUDEC5(1) MGEF_FLAPU
SIDNRSafety specifications sheet number MGEF_SIDNRCHAR10MGEF_SIDNR
SIVARVariant of safety specifications sheet MGEF_SIVARCHAR8MGEF_SIVAR
SIVERVersion of safety specifications sheet MGEF_SIVERCHAR6MGEF_SIVER
LGFVMHazardous material storage warning MGEF_LGFVMCHAR2T646VMGEF_LGFVM
AGGREState of matter MGEF_AGGRECHAR1T646AMGEF_AGGRE
VBFKLHazard classification of regulation on combustible fluids MGEF_VBFKLCHAR4MGEF_VBFKL
STOFTShort text for number of hazardous material MGEF_STOFTCHAR40TEXT40
STOKLClass of substances MGEF_STOKLCHAR9T023MATKL

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 table
DATA: 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 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!