SAP MATL_GROUP_UPDATE Function Module for NOTRANSL: Anlegen und Ändern von Warengruppen
MATL_GROUP_UPDATE is a standard matl group update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Anlegen und Ändern von Warengruppen processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for matl group update FM, simply by entering the name MATL_GROUP_UPDATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: WWG4
Program Name: SAPLWWG4
Main Program: SAPLWWG4
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MATL_GROUP_UPDATE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'MATL_GROUP_UPDATE'"NOTRANSL: Anlegen und Ändern von Warengruppen.
EXPORTING
* PI_RECLASSIFY = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* PI_CLASSIFY_DATA = "Classification Data (In Case of Reclassification)
* PI_T023 = "Material Group Master Data
* MSGFN = "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
PIT_T023T = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* PIT_T023S = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
NO_UPDATE_POSSIBLE = 1
IMPORTING Parameters details for MATL_GROUP_UPDATE
PI_RECLASSIFY - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: WPSTRUC-MODUSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_CLASSIFY_DATA - Classification Data (In Case of Reclassification)
Data type: BAPIE1WGRC01Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_T023 - Material Group Master Data
Data type: T023Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGFN - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: BAPIE1WGR01-FUNCTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MATL_GROUP_UPDATE
PIT_T023T - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: T023TOptional: No
Call by Reference: No ( called with pass by value option)
PIT_T023S - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: T023S_TRANSFEROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_UPDATE_POSSIBLE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MATL_GROUP_UPDATE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_pit_t023t | TYPE STANDARD TABLE OF T023T, " | |||
| lv_pi_reclassify | TYPE WPSTRUC-MODUS, " ' ' | |||
| lv_no_update_possible | TYPE WPSTRUC, " | |||
| lt_pit_t023s | TYPE STANDARD TABLE OF T023S_TRANSFER, " | |||
| lv_pi_classify_data | TYPE BAPIE1WGRC01, " | |||
| lv_pi_t023 | TYPE T023, " | |||
| lv_msgfn | TYPE BAPIE1WGR01-FUNCTION. " |
|   CALL FUNCTION 'MATL_GROUP_UPDATE' "NOTRANSL: Anlegen und Ändern von Warengruppen |
| EXPORTING | ||
| PI_RECLASSIFY | = lv_pi_reclassify | |
| PI_CLASSIFY_DATA | = lv_pi_classify_data | |
| PI_T023 | = lv_pi_t023 | |
| MSGFN | = lv_msgfn | |
| TABLES | ||
| PIT_T023T | = lt_pit_t023t | |
| PIT_T023S | = lt_pit_t023s | |
| EXCEPTIONS | ||
| NO_UPDATE_POSSIBLE = 1 | ||
| . " MATL_GROUP_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM MATL_GROUP_UPDATE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single MODUS FROM WPSTRUC INTO @DATA(ld_pi_reclassify). | ||||
| DATA(ld_pi_reclassify) | = ' '. | |||
| "SELECT single FUNCTION FROM BAPIE1WGR01 INTO @DATA(ld_msgfn). | ||||
Search for further information about these or an SAP related objects