M_MAT2W SAP (Generated Table for View) Table View details

Dictionary Type: Table View
Description: Generated Table for View




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




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

M_MAT2W is a standard SAP Table View which is used to store Generated Table for View data and is available within R/3 SAP systems depending on the version and release level.

The M_MAT2W table consists of various fields, each holding specific information or linking keys about Generated Table for View data available in SAP. These include WERKS (Plant), MAKTG (Material description in upper case for matchcodes), SPRAS (Language Key), PRGRP (Name of the product group).. 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: Not classified


SAP M_MAT2W table view 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 MANDTCLNT3T000MANDT
WERKSPlant WERKS_DCHAR4T001WWERKSWRKH_T001W_C
MAKTGMaterial description in upper case for matchcodes MAKTGCHAR40CHAR40
SPRASLanguage Key SPRASLANG1T002ISOLASPRASSPRH_T002
PRGRPName of the product group PRGRPCHAR18MATN1MATNRPGP

Key field Non-key field



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

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

SELECT SINGLE *
FROM M_MAT2W
INTO CORRESPONDING FIELDS OF WA_M_MAT2W
WHERE...

How to access SAP table M_MAT2W

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