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

MWWG1I01 SAP ABAP INCLUDE - PAI Modules for MG Maintenance







MWWG1I01 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 MWWG1I01 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 MWWG1I01. "Basic submit
SUBMIT MWWG1I01 AND RETURN. "Return to original report after report execution complete
SUBMIT MWWG1I01 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: XAUTH_NO = ?...(XAUTH_NO
Selection Text: V_VTWEG = Distrib. chnl
Selection Text: V_SATNR = Gen. material no.
Selection Text: V_MATNR = Prod. cat.
Selection Text: V_LIFNR = Vendors
Selection Text: V_FILIA = Plants
Selection Text: V_ARTNR = Item
Selection Text: V_AKTHE = Theme
Selection Text: VONKONTO = Account number
Selection Text: VKORG = Sales organization
Selection Text: VKONT = From account
Selection Text: USNAM = Changed by
Selection Text: TXT20 = TXT20
Selection Text: S_VTWEG = Distrib. chnl
Selection Text: S_SATNR = Gen. material no.
Selection Text: S_NET_LE = Net margin <=
Selection Text: S_NET_GE = Net margin >=
Selection Text: S_MATNR = Prod. cat.
Selection Text: S_LIFNR = Vendors
Selection Text: S_FILIA = Plants
Selection Text: S_BRU_LE = Gross margin <=
Selection Text: SPART = Division
Selection Text: NAME1 = Name 1
Selection Text: MABER = Dunning area
Selection Text: KTOPL = Chart of accounts
Selection Text: KOART = Account type
Selection Text: KKBER = Credit control area
Selection Text: DATUM = From change date
Selection Text: BUKRS = Company codes
Title: PAI Modules for MG Maintenance
Title: Customer master record changes
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 promtion &


INCLUDES used within this REPORT MWWG1I01

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-610 DIAGNOSETEXT2 = TEXT-612 TEXTLINE1 = TEXT-602 TITEL = TEXT-502 IMPORTING ANSWER = ANSWER.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING DIAGNOSETEXT1 = TEXT-611 DIAGNOSETEXT2 = TEXT-612 TEXTLINE1 = TEXT-602 TITEL = TEXT-502 IMPORTING ANSWER = ANSWER.

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 EXCEPTIONS NO_BASIS_MG = 01 NO_MG_HIER = 02.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING DIAGNOSETEXT1 = TEXT-500 DIAGNOSETEXT2 = TEXT-503 TEXTLINE1 = TEXT-501 TITEL = TEXT-502 IMPORTING ANSWER = ANSWER.

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_WGH01 EXCEPTIONS NO_MG_HIER = 01.

MERCHANDISE_GROUP_HIER_ART_SEL CALL FUNCTION 'MERCHANDISE_GROUP_HIER_ART_SEL' EXPORTING MATKL = G_T_T023-MATKL SPRAS = SY-LANGU TABLES O_WGH01 = G_T_WGH01 EXCEPTIONS NO_BASIS_MG = 01 NO_MG_HIER = 02.

MERCHANDISE_GROUP_HIER_ART_SEL CALL FUNCTION 'MERCHANDISE_GROUP_HIER_ART_SEL' EXPORTING MATKL = G_T_T023-MATKL SPRAS = SY-LANGU TABLES O_WGH01 = G_T_WGH01 "von WGH02 auf WGH01 geƤ.

MERCHANDISE_GROUP_HIER_ART_SEL CALL FUNCTION 'MERCHANDISE_GROUP_HIER_ART_SEL' EXPORTING MATKL = G_T_T023-MATKL SPRAS = SY-LANGU TABLES O_WGH01 = G_T_WGH01 EXCEPTIONS NO_BASIS_MG = 01 NO_MG_HIER = 02.

MG_HIER_ART_MODIFY CALL FUNCTION 'MG_HIER_ART_MODIFY' IN UPDATE TASK TABLES PI_T_T023S = G_T_T023S.

MERCHANDISE_GROUP_HIER_ART_SEL CALL FUNCTION 'MERCHANDISE_GROUP_HIER_ART_SEL' EXPORTING MATKL = G_T_T023-MATKL SPRAS = SY-LANGU TABLES O_WGH01 = G_T_WGH01 EXCEPTIONS NO_BASIS_MG = 01 NO_MG_HIER = 02.

MERCHANDISE_GROUP_HIER_ART_SEL CALL FUNCTION 'MERCHANDISE_GROUP_HIER_ART_SEL' EXPORTING MATKL = G_T_T023-MATKL SPRAS = G_SPRAS TABLES O_WGH01 = G_T_WGH01 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 = WWGD-CLASS1 SPRAS = SY-LANGU TABLES O_WGH01 = G_T_WGH01 EXCEPTIONS NO_MG_HIER = 01.

MERCHANDISE_GROUP_HIER_ART_SEL CALL FUNCTION 'MERCHANDISE_GROUP_HIER_ART_SEL' EXPORTING MATKL = G_T_T023-MATKL SPRAS = SY-LANGU TABLES O_WGH01 = G_T_WGH01 EXCEPTIONS NO_BASIS_MG = 01 NO_MG_HIER = 02.

MG_HIER_ART_MODIFY CALL FUNCTION 'MG_HIER_ART_MODIFY' IN UPDATE TASK TABLES PI_T_T023S = G_T_T023S.

MG_HIER_ART_MODIFY CALL FUNCTION 'MG_HIER_ART_MODIFY' IN UPDATE TASK TABLES PI_T_T023S = G_T_T023S.

MERCHANDISE_GROUP_MODIFY CALL FUNCTION 'MERCHANDISE_GROUP_MODIFY' EXPORTING PI_UPDATE = H_ANLEGEN PI_CLASS0 = G_CLASS0 PI_CLINT0 = G_CLINT0 PI_DESC0 = G_DESC0 TABLES PX_T_T023 = G_T_T023 PX_T_T023T = G_T_T023T EXCEPTIONS BASIS_MG_EXIST = 01 BASIS_MG_NOT_EXIST = 02 ARTICLES_EXIST = 03 INTERNAL_ERROR = 04 NO_AUTHORITY = 05 RECORD_LOCKED = 06 OTHER_CLASS_EXIST = 07 CLASSIFICATION_EXIST = 08 PLANT_MG_EXIST = 09 CLASS_NOT_EXIST = 10 NO_CLASSIFICATION = 11.

MG_HIER_ART_MODIFY CALL FUNCTION 'MG_HIER_ART_MODIFY' IN UPDATE TASK TABLES PI_T_T023S = G_T_T023S.

MERCHANDISE_GROUP_MODIFY CALL FUNCTION 'MERCHANDISE_GROUP_MODIFY' EXPORTING PI_UPDATE = H_AENDERN TABLES PX_T_T023 = G_T_T023 PX_T_T023T = G_T_T023T PX_T_O_T023 = G_T_O_T023 PX_T_O_T023T = G_T_O_T023T EXCEPTIONS BASIS_MG_NOT_EXIST = 02 INTERNAL_ERROR = 04 NO_AUTHORITY = 05 RECORD_LOCKED = 06 OTHER_CLASS_EXIST = 07 CLASSIFICATION_EXIST = 08 PLANT_MG_EXIST = 09 REFERENCE_ARTICLE_IS_LINKED = 12.

POPUP_TO_CONFIRM_WITH_MESSAGE





CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING DIAGNOSETEXT1 = TEXT-600 DIAGNOSETEXT2 = TEXT-601 TEXTLINE1 = TEXT-602 TITEL = TEXT-502 IMPORTING ANSWER = ANSWER.

MG_HIER_ART_MODIFY CALL FUNCTION 'MG_HIER_ART_MODIFY' IN UPDATE TASK TABLES PI_T_T023S = G_T_T023S.

MERCHANDISE_GROUP_MODIFY CALL FUNCTION 'MERCHANDISE_GROUP_MODIFY' EXPORTING PI_UPDATE = H_LOESCHEN TABLES PX_T_T023 = G_T_T023 PX_T_T023T = G_T_T023T EXCEPTIONS ARTICLES_EXIST = 03 INTERNAL_ERROR = 04 RECORD_LOCKED = 06 OTHER_CLASS_EXIST = 07 CLASSIFICATION_EXIST = 08 PLANT_MG_EXIST = 09 REFERENCE_ARTICLE_IS_LINKED = 12.



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