SAP MATERIAL_MAINT_LISTING_CHECK Function Module for









MATERIAL_MAINT_LISTING_CHECK is a standard material maint listing check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 material maint listing check FM, simply by entering the name MATERIAL_MAINT_LISTING_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function MATERIAL_MAINT_LISTING_CHECK 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 'MATERIAL_MAINT_LISTING_CHECK'"
EXPORTING
MATNR = "Material Number
LOCNR = "Customer Number of Plant
* DATE = SY-DATUM "Valid-From Date

EXCEPTIONS
NO_MATNR = 1 NO_LOCNR = 2 MATERIAL_LISTED = 3 NO_LISTING_COND = 4
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLWSO1_001 User Exit for Controling Data Adjustment for Listing/Article Maintenance
EXIT_SAPLWSO1_002 Do Not Include Supplying Plant Control in Material Maintenance
EXIT_SAPLWSO1_003 User Exit for Controling List. Conditions in Integrated Artl. Maintenance
EXIT_SAPLWSO1_004 Control for Creating Additional MVKE Data During Listing

IMPORTING Parameters details for MATERIAL_MAINT_LISTING_CHECK

MATNR - Material Number

Data type: MARA-MATNR
Optional: No
Call by Reference: Yes

LOCNR - Customer Number of Plant

Data type: T001W-KUNNR
Optional: No
Call by Reference: Yes

DATE - Valid-From Date

Data type: WLK1-DATAB
Default: SY-DATUM
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_MATNR -

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

NO_LOCNR -

Data type:
Optional: No
Call by Reference: Yes

MATERIAL_LISTED -

Data type:
Optional: No
Call by Reference: Yes

NO_LISTING_COND -

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

Copy and paste ABAP code example for MATERIAL_MAINT_LISTING_CHECK 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_matnr  TYPE MARA-MATNR, "   
lv_no_matnr  TYPE MARA, "   
lv_locnr  TYPE T001W-KUNNR, "   
lv_no_locnr  TYPE T001W, "   
lv_date  TYPE WLK1-DATAB, "   SY-DATUM
lv_material_listed  TYPE WLK1, "   
lv_no_listing_cond  TYPE WLK1. "   

  CALL FUNCTION 'MATERIAL_MAINT_LISTING_CHECK'  "
    EXPORTING
         MATNR = lv_matnr
         LOCNR = lv_locnr
         DATE = lv_date
    EXCEPTIONS
        NO_MATNR = 1
        NO_LOCNR = 2
        MATERIAL_LISTED = 3
        NO_LISTING_COND = 4
. " MATERIAL_MAINT_LISTING_CHECK




ABAP code using 7.40 inline data declarations to call FM MATERIAL_MAINT_LISTING_CHECK

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 MARA INTO @DATA(ld_matnr).
 
 
"SELECT single KUNNR FROM T001W INTO @DATA(ld_locnr).
 
 
"SELECT single DATAB FROM WLK1 INTO @DATA(ld_date).
DATA(ld_date) = SY-DATUM.
 
 
 


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!