SAP Reports / Programs | Logistics - General | Logistics Basic Data | Material Groups(LO-MD-MG) SAP LO

MWG40F01 SAP ABAP INCLUDE - Include F01 for Material Group Maintenance







MWG40F01 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter MWG40F01 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT MWG40F01. "Basic submit
SUBMIT MWG40F01 AND RETURN. "Return to original report after report execution complete
SUBMIT MWG40F01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: SPART = Division
Selection Text: S_FILIA = Plants
Selection Text: S_LIFNR = Vendors
Selection Text: S_MATNR = Ad. media
Selection Text: S_NET_GE = Net margin >=
Selection Text: S_NET_LE = Net margin <=
Selection Text: S_SATNR = Gen. material no.
Selection Text: S_VTWEG = Distrib. chnl
Selection Text: TXT20 = TXT20
Selection Text: USNAM = Changed by
Selection Text: VKONT = From account
Selection Text: VKORG = Sales organization
Selection Text: VONKONTO = Account number
Selection Text: VTWEG = ?...(VTWEG)
Selection Text: V_AKTHE = Theme
Selection Text: V_ARTNR = Item
Selection Text: V_FILIA = Plants
Selection Text: V_LIFNR = Vendors
Selection Text: V_MATNR = Ad. media
Selection Text: V_SATNR = Gen. material no.
Selection Text: V_VTWEG = Distrib. chnl
Selection Text: XAUTH_NO = ?...(XAUTH_NO
Selection Text: NAME1 = Name 1
Selection Text: BANKL = ?...(BANKL)
Selection Text: BANKS = ?...(BANKS)
Selection Text: BELNR = ?...(BELNR)
Selection Text: BUKRS = Company codes
Selection Text: CALLD = ?...(CALLD)
Selection Text: DATUM = From change date
Selection Text: DYNCL = ?...(DYNCL)
Selection Text: EKORG = ?...(EKORG)
Selection Text: FNAME = ?...(FNAME)
Selection Text: FUNCL = ?...(FUNCL)
Selection Text: GJAHR = ?...(GJAHR)
Selection Text: KKBER = Credit control area
Selection Text: KOART = Account type
Selection Text: KTOPL = Chart of accounts
Selection Text: MABER = Dunning area





Title: Include F01 for Material Group Maintenance
Text Symbol: T05 = Change document
Text Symbol: T04 = Overview
Text Symbol: T03 = Deletions
Text Symbol: T02 = Entries
Text Symbol: 311 = Promotion:
Text Symbol: 310 = Display prices and margins for promotion &


INCLUDES used within this REPORT MWG40F01

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING DIAGNOSETEXT1 = TEXT-201 TEXTLINE1 = TEXT-202 TEXTLINE2 = CTEXT TITEL = BTEXT "Bildüberschrift" DEFAULTOPTION = 'Y' "Antwort 'Y'/'N' IMPORTING ANSWER = ANSWER."'J'/'N'/'A'

CLMA_CLASS_LIST CALL FUNCTION 'CLMA_CLASS_LIST' EXPORTING CLASSNAME = G_CLASS CLASSTYPE = G_ART LANGUAGE = SY-LANGU WITH_ALLOCATIONS = ' ' TABLES TCLASSES = G_I_CLASS EXCEPTIONS NO_CLASSES = 01.

MERCHANDISE_GROUP_SELECT_ALL CALL FUNCTION 'MERCHANDISE_GROUP_SELECT_ALL' EXPORTING MATKL = G_MATKL TABLES O_WWG03 = G_T_T023 EXCEPTIONS NO_BASIS_MG = 01.

CLFM_WWS_CLASSIFICATION CALL FUNCTION 'CLFM_WWS_CLASSIFICATION' EXPORTING CLASS = G_CLASS1 CLASS_TEXT = G_DESC1 UPPER_CLASS = G_CLASS0 UPPER_CLINT = G_CLINT0 UPPER_CLASS_TEXT = G_DESC0 STATUS = H_MODUS WWS_CLASS_IND = G_WWSKZ IMPORTING UPDATEFLAG = H_UPDATEFLAG.

CLFM_WWS_CLASSIFICATION CALL FUNCTION 'CLFM_WWS_CLASSIFICATION' EXPORTING CLASS = G_CLASS2 CLASS_TEXT = G_DESC2 UPPER_CLASS = G_CLASS1 UPPER_CLINT = G_CLINT1 UPPER_CLASS_TEXT = G_DESC1 STATUS = H_MODUS "Anlegen,Aendern,Löschen WWS_CLASS_IND = G_WWSKZ IMPORTING UPDATEFLAG = H_UPDATEFLAG.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING SCHLUESSEL = MTCOM IMPORTING MATDATEN = G_T_MWWS1 RETURN = MTCOR TABLES SEQMAT01 = SEQ_DUMMY EXCEPTIONS ACCOUNT_NOT_FOUND = 1 BATCH_NOT_FOUND = 2 FORECAST_NOT_FOUND = 3 LOCK_ON_ACCOUNT = 4 LOCK_ON_MATERIAL = 5 LOCK_ON_PLANT = 6 LOCK_ON_SALES = 7 LOCK_ON_SLOC = 8 LOCK_ON_BATCH = 9 LOCK_SYSTEM_ERROR = 10 MATERIAL_NOT_FOUND = 11 PLANT_NOT_FOUND = 12 SALES_NOT_FOUND = 13 SLOC_NOT_FOUND = 14 SLOCNUMBER_NOT_FOUND = 15 SLOCTYPE_NOT_FOUND = 16 TEXT_NOT_FOUND = 17 UNIT_NOT_FOUND = 18 INVALID_MCH1_MATNR = 19 INVALID_MTCOM = 20 WAART_ERROR = 21 SA_MATERIAL = 22 WV_MATERIAL = 23 OTHERS = 24.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING SCHLUESSEL = MTCOM IMPORTING MATDATEN = G_T_MWWS1 RETURN = MTCOR TABLES SEQMAT01 = SEQ_DUMMY EXCEPTIONS MATERIAL_NOT_FOUND = 1 OTHERS = 2.

ENQUEUE_E_T023E CALL FUNCTION 'ENQUEUE_E_T023E' EXPORTING MANDT = SY-MANDT MATKL = G_MATKL SPRAS = SY-LANGU WWGPA = ' ' " X_MATKL = ' ' " X_SPRAS = ' ' X_WWGPA = X " _SCOPE = '2' " _WAIT = ' ' EXCEPTIONS FOREIGN_LOCK = 01 SYSTEM_FAILURE = 02.

DEQUEUE_E_T023E CALL FUNCTION 'DEQUEUE_E_T023E' EXPORTING MANDT = SY-MANDT MATKL = G_MATKL SPRAS = G_SPRAS " WWGPA = ' ' " X_MATKL = ' ' " X_SPRAS = ' ' X_WWGPA = X.

TR_OBJECT_INSERT CALL FUNCTION 'TR_OBJECT_INSERT' EXPORTING WI_KO200 = G_T_KO200 * IMPORTING * WE_ORDER = * WE_TASK = * WE_KO200 = TABLES WT_E071K = G_T_E071K EXCEPTIONS CANCEL_EDIT_APPEND_ERROR_KEYS = 01 CANCEL_EDIT_APPEND_ERROR_OBJCT = 02 CANCEL_EDIT_APPEND_ERROR_ORDER = 03 CANCEL_EDIT_BUT_SE01 = 04 CANCEL_EDIT_NO_HEADER_OBJECT = 05 CANCEL_EDIT_NO_ORDER_SELECTED = 06 CANCEL_EDIT_REPAIRED_OBJECT = 07 CANCEL_EDIT_SYSTEM_ERROR = 08 CANCEL_EDIT_TADIR_MISSING = 09 CANCEL_EDIT_TADIR_UPDATE_ERROR = 10 CANCEL_EDIT_UNKNOWN_DEVCLASS = 11 CANCEL_EDIT_UNKNOWN_OBJECTTYPE = 12 SHOW_ONLY_CLOSED_SYSTEM = 13 SHOW_ONLY_CONSOLIDATION_LEVEL = 14 SHOW_ONLY_DDIC_IN_CUSTOMER_SYS = 15 SHOW_ONLY_DELIVERY_SYSTEM = 16 SHOW_ONLY_DIFFERENT_ORDERTYPES = 17 SHOW_ONLY_DIFFERENT_TASKTYPES = 18 SHOW_ONLY_ENQUEUE_FAILED = 19 SHOW_ONLY_GENERATED_OBJECT = 20 SHOW_ONLY_ILL_LOCK = 21 SHOW_ONLY_LOCK_ENQUEUE_FAILED = 22 SHOW_ONLY_MIXED_ORDERS = 23 SHOW_ONLY_MIX_LOCAL_TRANSP_OBJ = 24 SHOW_ONLY_NO_SHARED_REPAIR = 25 SHOW_ONLY_OBJECT_LOCKED = 26 SHOW_ONLY_REPAIRED_OBJECT = 27 SHOW_ONLY_SHOW_CLIENT = 28 SHOW_ONLY_TADIR_MISSING = 29 SHOW_ONLY_UNKNOWN_DEVCLASS = 30 CANCEL_EDIT_NO_CHECK_CALL = 31 CANCEL_EDIT_CATEGORY_MIXTURE = 32 CANCEL_EDIT_OTHER_ERROR = 33.

MERCHANDISE_GROUP_ART_MODIFY CALL FUNCTION 'MERCHANDISE_GROUP_ART_MODIFY' EXPORTING PI_T_MAKT = G_T_MAKT PI_T_MARA = G_T_MARA PI_UPDATE = H_LOESCHEN PI_WMAKG = G_WMAKG.

MERCHANDISE_GROUP_ART_MODIFY CALL FUNCTION 'MERCHANDISE_GROUP_ART_MODIFY' EXPORTING PI_T_MAKT = G_T_MAKT PI_T_MARA = G_T_MARA PI_UPDATE = H_AENDERN.

MERCHANDISE_GROUP_ART_MODIFY CALL FUNCTION 'MERCHANDISE_GROUP_ART_MODIFY' EXPORTING PI_T_MAKT = G_T_MAKT PI_T_MARA = G_T_MARA PI_UPDATE = H_AENDERN.

ARTICLE_TAB_HELP CALL FUNCTION 'ARTICLE_TAB_HELP' EXPORTING BASISWG = G_T_T023-MATKL BEZEICHNUNG = G_T_T023T-WGBEZ TABLES MARAB = G_T_MARAB.

ENQUEUE_EMMARAE





CALL FUNCTION 'ENQUEUE_EMMARAE' EXPORTING MATNR = G_MATNR EXCEPTIONS FOREIGN_LOCK = 01 SYSTEM_FAILURE = 02.

DEQUEUE_EMMARAE CALL FUNCTION 'DEQUEUE_EMMARAE' EXPORTING MATNR = G_MATNR.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name MWG40F01 or its description.