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

MWG40I02 SAP ABAP INCLUDE - Include I01 for Material Group Maintenance







MWG40I02 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 MWG40I02 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 MWG40I02. "Basic submit
SUBMIT MWG40I02 AND RETURN. "Return to original report after report execution complete
SUBMIT MWG40I02 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: S_ARTNR = Material no.
Selection Text: S_AUF_GE = Mark-up % rate >=
Selection Text: S_AUF_LE = Mark-up % rate <=
Selection Text: S_BRU_GE = Gross margin >=
Selection Text: S_BRU_LE = Gross margin <=
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: S_AKTHE = Themes
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
Selection Text: NAME1 = Name 1
Selection Text: SPART = Division
Title: Include I01 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 &
003 % % %
002 Net Gross SP value


INCLUDES used within this REPORT MWG40I02

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:

MERCHANDISE_GROUP_HIER_SELECT CALL FUNCTION 'MERCHANDISE_GROUP_HIER_SELECT' EXPORTING MATKL = G_MATKL SPRAS = SY-LANGU WG_BEZ = ' ' WG_STUFEN = G_STUFE MERKMALSPROFIL = X NO_BWG = X CLASS1 = G_CLASS0 TABLES O_WGHIER = G_T_WGHIER * I_WERT = EXCEPTIONS NO_BASIS_MG = 01 NO_MG_HIER = 02.

MG_POSSIBLE_HIER_ART_SELECT CALL FUNCTION 'MG_POSSIBLE_HIER_ART_SELECT' EXPORTING MATKL = T023D-MATKL KLASSE = G_T_WWGD-CLASS1 SPRAS = SY-LANGU TABLES O_WGH01 = G_T_WGH02 EXCEPTIONS NO_MG_HIER = 01.

MATERIAL_MAINTAIN_DIAL_RETAIL CALL FUNCTION 'MATERIAL_MAINTAIN_DIAL_RETAIL' EXPORTING IRMMW1 = G_T_RMMW1 T_TCODE = 'MM41' * P_PSTAT = ' ' * FLG_STAT_ALL = ' ' * KZ_EIN_DARK = ' ' * FLG_CAD_AKTIV = ' ' * FLG_MATNR_RES = ' ' FLG_WAGR_PFLEGE = 'X' IMPORTING MATERIAL_NO = H_MATNR_WGHIER UPDATE_OK = H_UPDATE_FLAG_WGHIER TABLES IAUSWG = G_T_MGAUSWG EXCEPTIONS NO_AUTHORITY = 1 OTHERS = 2.

MATERIAL_MAINTAIN_DIAL_RETAIL CALL FUNCTION 'MATERIAL_MAINTAIN_DIAL_RETAIL' EXPORTING IRMMW1 = G_T_RMMW1 T_TCODE = 'MM42' * P_PSTAT = ' ' * FLG_STAT_ALL = ' ' * KZ_EIN_DARK = ' ' * FLG_CAD_AKTIV = ' ' * FLG_MATNR_RES = ' ' FLG_WAGR_PFLEGE = 'X' IMPORTING MATERIAL_NO = H_MATNR_WGHIER UPDATE_OK = H_UPDATE_FLAG_WGHIER TABLES IAUSWG = G_T_MGAUSWG EXCEPTIONS NO_AUTHORITY = 1 OTHERS = 2.

MATERIAL_MAINTAIN_DIAL_RETAIL CALL FUNCTION 'MATERIAL_MAINTAIN_DIAL_RETAIL' EXPORTING IRMMW1 = G_T_RMMW1 T_TCODE = 'MM43' * P_PSTAT = ' ' * FLG_STAT_ALL = ' ' * KZ_EIN_DARK = ' ' * FLG_CAD_AKTIV = ' ' * FLG_MATNR_RES = ' ' FLG_WAGR_PFLEGE = 'X' IMPORTING MATERIAL_NO = H_MATNR_WGHIER UPDATE_OK = H_UPDATE_FLAG_WGHIER TABLES IAUSWG = G_T_MGAUSWG EXCEPTIONS NO_AUTHORITY = 1 OTHERS = 2.



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 MWG40I02 or its description.