SAP MERCHANDISE_GROUP_MODIFY Function Module for NOTRANSL: ADD/COR/DEL Warengruppen und 1:1 Klasse incl. Commit u. Änderung









MERCHANDISE_GROUP_MODIFY is a standard merchandise group modify 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: ADD/COR/DEL Warengruppen und 1:1 Klasse incl. Commit u. Änderung 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 merchandise group modify FM, simply by entering the name MERCHANDISE_GROUP_MODIFY into the relevant SAP transaction such as SE37 or SE38.

Function Group: WWGR
Program Name: SAPLWWGR
Main Program: SAPLWWGR
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1



Function MERCHANDISE_GROUP_MODIFY 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 'MERCHANDISE_GROUP_MODIFY'"NOTRANSL: ADD/COR/DEL Warengruppen und 1:1 Klasse incl. Commit u. Änderung
EXPORTING
* PI_UPDATE = '0' "
* PI_CLASS0 = "
* PI_CLINT0 = "
* PI_DESC0 = "Description of Superior Class

TABLES
PX_T_T023 = "
PX_T_T023T = "
* PX_T_O_T023 = "
* PX_T_O_T023T = "

EXCEPTIONS
BASIS_MG_EXIST = 1 CLASS_NOT_EXIST = 10 NO_CLASSIFICATION = 11 REFERENCE_ARTICLE_IS_LINKED = 12 BASIS_MG_NOT_EXIST = 2 ARTICLES_EXIST = 3 INTERNAL_ERROR = 4 NO_AUTHORITY = 5 RECORD_LOCKED = 6 OTHER_CLASS_EXIST = 7 CLASSIFICATION_EXIST = 8 PLANT_MG_EXIST = 9
.



IMPORTING Parameters details for MERCHANDISE_GROUP_MODIFY

PI_UPDATE -

Data type: WPSTRUC-MODUS
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_CLASS0 -

Data type: KLAH-CLASS
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_CLINT0 -

Data type: KLAH-CLINT
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_DESC0 - Description of Superior Class

Data type: SWOR-KSCHL
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for MERCHANDISE_GROUP_MODIFY

PX_T_T023 -

Data type: T023
Optional: No
Call by Reference: No ( called with pass by value option)

PX_T_T023T -

Data type: T023T
Optional: No
Call by Reference: No ( called with pass by value option)

PX_T_O_T023 -

Data type: T023
Optional: Yes
Call by Reference: No ( called with pass by value option)

PX_T_O_T023T -

Data type: T023T
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

BASIS_MG_EXIST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CLASS_NOT_EXIST - Class does not exist.

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_CLASSIFICATION -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

REFERENCE_ARTICLE_IS_LINKED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BASIS_MG_NOT_EXIST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ARTICLES_EXIST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RECORD_LOCKED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

OTHER_CLASS_EXIST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CLASSIFICATION_EXIST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PLANT_MG_EXIST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MERCHANDISE_GROUP_MODIFY 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:
lv_pi_update  TYPE WPSTRUC-MODUS, "   '0'
lt_px_t_t023  TYPE STANDARD TABLE OF T023, "   
lv_basis_mg_exist  TYPE T023, "   
lv_class_not_exist  TYPE T023, "   
lv_no_classification  TYPE T023, "   
lv_reference_article_is_linked  TYPE T023, "   
lv_pi_class0  TYPE KLAH-CLASS, "   
lt_px_t_t023t  TYPE STANDARD TABLE OF T023T, "   
lv_basis_mg_not_exist  TYPE T023T, "   
lv_pi_clint0  TYPE KLAH-CLINT, "   
lt_px_t_o_t023  TYPE STANDARD TABLE OF T023, "   
lv_articles_exist  TYPE T023, "   
lv_pi_desc0  TYPE SWOR-KSCHL, "   
lt_px_t_o_t023t  TYPE STANDARD TABLE OF T023T, "   
lv_internal_error  TYPE T023T, "   
lv_no_authority  TYPE T023T, "   
lv_record_locked  TYPE T023T, "   
lv_other_class_exist  TYPE T023T, "   
lv_classification_exist  TYPE T023T, "   
lv_plant_mg_exist  TYPE T023T. "   

  CALL FUNCTION 'MERCHANDISE_GROUP_MODIFY'  "NOTRANSL: ADD/COR/DEL Warengruppen und 1:1 Klasse incl. Commit u. Änderung
    EXPORTING
         PI_UPDATE = lv_pi_update
         PI_CLASS0 = lv_pi_class0
         PI_CLINT0 = lv_pi_clint0
         PI_DESC0 = lv_pi_desc0
    TABLES
         PX_T_T023 = lt_px_t_t023
         PX_T_T023T = lt_px_t_t023t
         PX_T_O_T023 = lt_px_t_o_t023
         PX_T_O_T023T = lt_px_t_o_t023t
    EXCEPTIONS
        BASIS_MG_EXIST = 1
        CLASS_NOT_EXIST = 10
        NO_CLASSIFICATION = 11
        REFERENCE_ARTICLE_IS_LINKED = 12
        BASIS_MG_NOT_EXIST = 2
        ARTICLES_EXIST = 3
        INTERNAL_ERROR = 4
        NO_AUTHORITY = 5
        RECORD_LOCKED = 6
        OTHER_CLASS_EXIST = 7
        CLASSIFICATION_EXIST = 8
        PLANT_MG_EXIST = 9
. " MERCHANDISE_GROUP_MODIFY




ABAP code using 7.40 inline data declarations to call FM MERCHANDISE_GROUP_MODIFY

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_update).
DATA(ld_pi_update) = '0'.
 
 
 
 
 
 
"SELECT single CLASS FROM KLAH INTO @DATA(ld_pi_class0).
 
 
 
"SELECT single CLINT FROM KLAH INTO @DATA(ld_pi_clint0).
 
 
 
"SELECT single KSCHL FROM SWOR INTO @DATA(ld_pi_desc0).
 
 
 
 
 
 
 
 


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!