SAP L_MAT_REORG_CHECK_WM Function Module for NOTRANSL: Check Materialstamm auf Reorganisationsfähigkleit









L_MAT_REORG_CHECK_WM is a standard l mat reorg check wm 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: Check Materialstamm auf Reorganisationsfähigkleit 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 l mat reorg check wm FM, simply by entering the name L_MAT_REORG_CHECK_WM into the relevant SAP transaction such as SE37 or SE38.

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



Function L_MAT_REORG_CHECK_WM 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 'L_MAT_REORG_CHECK_WM'"NOTRANSL: Check Materialstamm auf Reorganisationsfähigkleit
EXPORTING
I_MATNR = "Material Number
* I_WERKS = "Plant
* I_LGORT = "Storage Location
* I_LGNUM = "Warehouse Number / Warehouse Complex
* I_CHARG = "Batch Number
* I_SOBKZ = "Special Stock Indicator
* I_VBELN = "Sales and Distribution Document Number
* I_POSNR = "Item Number of the SD Document
* I_PSPNR = "Work Breakdown Structure Element (WBS Element)

IMPORTING
E_RETURN = "ABAP System Field: Return Code of ABAP Statements

EXCEPTIONS
INTOLERABLE_PARAMETER = 1 NO_T320_ENTRY = 2
.



IMPORTING Parameters details for L_MAT_REORG_CHECK_WM

I_MATNR - Material Number

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

I_WERKS - Plant

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

I_LGORT - Storage Location

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

I_LGNUM - Warehouse Number / Warehouse Complex

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

I_CHARG - Batch Number

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

I_SOBKZ - Special Stock Indicator

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

I_VBELN - Sales and Distribution Document Number

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

I_POSNR - Item Number of the SD Document

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

I_PSPNR - Work Breakdown Structure Element (WBS Element)

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

EXPORTING Parameters details for L_MAT_REORG_CHECK_WM

E_RETURN - ABAP System Field: Return Code of ABAP Statements

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

EXCEPTIONS details

INTOLERABLE_PARAMETER -

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

NO_T320_ENTRY -

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

Copy and paste ABAP code example for L_MAT_REORG_CHECK_WM 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_matnr  TYPE LQUA-MATNR, "   
lv_e_return  TYPE SY-SUBRC, "   
lv_intolerable_parameter  TYPE SY, "   
lv_i_werks  TYPE LQUA-WERKS, "   
lv_no_t320_entry  TYPE LQUA, "   
lv_i_lgort  TYPE LQUA-LGORT, "   
lv_i_lgnum  TYPE LQUA-LGNUM, "   
lv_i_charg  TYPE LQUA-CHARG, "   
lv_i_sobkz  TYPE LQUA-SOBKZ, "   
lv_i_vbeln  TYPE EBEW-VBELN, "   
lv_i_posnr  TYPE EBEW-POSNR, "   
lv_i_pspnr  TYPE QBEW-PSPNR. "   

  CALL FUNCTION 'L_MAT_REORG_CHECK_WM'  "NOTRANSL: Check Materialstamm auf Reorganisationsfähigkleit
    EXPORTING
         I_MATNR = lv_i_matnr
         I_WERKS = lv_i_werks
         I_LGORT = lv_i_lgort
         I_LGNUM = lv_i_lgnum
         I_CHARG = lv_i_charg
         I_SOBKZ = lv_i_sobkz
         I_VBELN = lv_i_vbeln
         I_POSNR = lv_i_posnr
         I_PSPNR = lv_i_pspnr
    IMPORTING
         E_RETURN = lv_e_return
    EXCEPTIONS
        INTOLERABLE_PARAMETER = 1
        NO_T320_ENTRY = 2
. " L_MAT_REORG_CHECK_WM




ABAP code using 7.40 inline data declarations to call FM L_MAT_REORG_CHECK_WM

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 MATNR FROM LQUA INTO @DATA(ld_i_matnr).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_return).
 
 
"SELECT single WERKS FROM LQUA INTO @DATA(ld_i_werks).
 
 
"SELECT single LGORT FROM LQUA INTO @DATA(ld_i_lgort).
 
"SELECT single LGNUM FROM LQUA INTO @DATA(ld_i_lgnum).
 
"SELECT single CHARG FROM LQUA INTO @DATA(ld_i_charg).
 
"SELECT single SOBKZ FROM LQUA INTO @DATA(ld_i_sobkz).
 
"SELECT single VBELN FROM EBEW INTO @DATA(ld_i_vbeln).
 
"SELECT single POSNR FROM EBEW INTO @DATA(ld_i_posnr).
 
"SELECT single PSPNR FROM QBEW INTO @DATA(ld_i_pspnr).
 


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!