SAP LOCATION_MATERIALGROUP_COMPARE Function Module for NOTRANSL: Abgleich Warengruppen









LOCATION_MATERIALGROUP_COMPARE is a standard location materialgroup compare 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: Abgleich 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 location materialgroup compare FM, simply by entering the name LOCATION_MATERIALGROUP_COMPARE into the relevant SAP transaction such as SE37 or SE38.

Function Group: WR22
Program Name: SAPLWR22
Main Program: SAPLWR22
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LOCATION_MATERIALGROUP_COMPARE 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 'LOCATION_MATERIALGROUP_COMPARE'"NOTRANSL: Abgleich Warengruppen
EXPORTING
* I_TWPR = "

CHANGING
O_UPD_WRF6 = "
O_UPD_T023W = "
O_UPD_T023X = "
O_WRFX_XCHNG = "
* O_UPD_BGRP = "

TABLES
I_XWRF6 = "
I_YWRF6 = "
* I_XT023W = "
* I_YT023W = "
* I_XT023X = "
* I_YT023X = "
.



IMPORTING Parameters details for LOCATION_MATERIALGROUP_COMPARE

I_TWPR -

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

CHANGING Parameters details for LOCATION_MATERIALGROUP_COMPARE

O_UPD_WRF6 -

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

O_UPD_T023W -

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

O_UPD_T023X -

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

O_WRFX_XCHNG -

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

O_UPD_BGRP -

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

TABLES Parameters details for LOCATION_MATERIALGROUP_COMPARE

I_XWRF6 -

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

I_YWRF6 -

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

I_XT023W -

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

I_YT023W -

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

I_XT023X -

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

I_YT023X -

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

Copy and paste ABAP code example for LOCATION_MATERIALGROUP_COMPARE 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_i_twpr  TYPE TWPR, "   
lt_i_xwrf6  TYPE STANDARD TABLE OF FWRF6, "   
lv_o_upd_wrf6  TYPE FWRF6, "   
lt_i_ywrf6  TYPE STANDARD TABLE OF FWRF6, "   
lv_o_upd_t023w  TYPE FWRF6, "   
lt_i_xt023w  TYPE STANDARD TABLE OF FT023W, "   
lv_o_upd_t023x  TYPE FT023W, "   
lt_i_yt023w  TYPE STANDARD TABLE OF FT023W, "   
lv_o_wrfx_xchng  TYPE FT023W, "   
lt_i_xt023x  TYPE STANDARD TABLE OF FT023X, "   
lv_o_upd_bgrp  TYPE FT023X, "   
lt_i_yt023x  TYPE STANDARD TABLE OF FT023X. "   

  CALL FUNCTION 'LOCATION_MATERIALGROUP_COMPARE'  "NOTRANSL: Abgleich Warengruppen
    EXPORTING
         I_TWPR = lv_i_twpr
    CHANGING
         O_UPD_WRF6 = lv_o_upd_wrf6
         O_UPD_T023W = lv_o_upd_t023w
         O_UPD_T023X = lv_o_upd_t023x
         O_WRFX_XCHNG = lv_o_wrfx_xchng
         O_UPD_BGRP = lv_o_upd_bgrp
    TABLES
         I_XWRF6 = lt_i_xwrf6
         I_YWRF6 = lt_i_ywrf6
         I_XT023W = lt_i_xt023w
         I_YT023W = lt_i_yt023w
         I_XT023X = lt_i_xt023x
         I_YT023X = lt_i_yt023x
. " LOCATION_MATERIALGROUP_COMPARE




ABAP code using 7.40 inline data declarations to call FM LOCATION_MATERIALGROUP_COMPARE

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.

 
 
 
 
 
 
 
 
 
 
 
 


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!