SAP Reports / Programs | Logistics - General | Logistics Basic Data | Material Master(LO-MD-MM) SAP LO

MMCHANGEVAR SAP ABAP Report - Characteristic Value Change of a Generic Article Variant







MMCHANGEVAR is a standard Executable ABAP Report 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 MMCHANGEVAR 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 MMCHANGEVAR. "Basic submit
SUBMIT MMCHANGEVAR AND RETURN. "Return to original report after report execution complete
SUBMIT MMCHANGEVAR 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: P_SHOW = Display Variant Numbers
Selection Text: P_MM42 = Maintain Material (MM42)
Selection Text: P_MATNR = D Variant Number
Selection Text: P_MAKT = Adjust Material Short Text
Selection Text: P_KONT = Check Contracts
Selection Text: P_AUFT = Check Allocation
Selection Text: P_AKT = Check Action
Title: Characteristic Value Change of a Generic Article Variant
Text Symbol: T07 = Material Number
Text Symbol: T06 = Material No. for Matrix Display
Text Symbol: T05 = List Display
Text Symbol: T04 = Matrix Display
Text Symbol: T03 = Variants for S
Text Symbol: T02 = Variant Valuation
Text Symbol: T01 = Variants for Generic Material
Text Symbol: P02 = Display Material
Text Symbol: P01 = Classification
Text Symbol: N04 = System Is Changing Master Data for Material &
Text Symbol: N03 = System Is Checking Contracts for Material &
Text Symbol: N02 = System is checking the promotional data of material &
Text Symbol: N01 = System is checking the allocation of material &
Text Symbol: 003 = Selection Parameters


INCLUDES used within this REPORT MMCHANGEVAR

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:

DEQUEUE_ALL call function 'DEQUEUE_ALL'.

BAPI_MATERIAL_EDIT call function 'BAPI_MATERIAL_EDIT' exporting material = p_matnr skip_1st_screen = 'X' importing return = g_t_return.

MATERIAL_INIT_CLASSIFICATION call function 'MATERIAL_INIT_CLASSIFICATION'.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting kzrfb = 'X' matnr = p_satnr sperrmodus = 'E' importing wmara = g_s_mara_ref exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting kzrfb = 'X' matnr = p_matnr sperrmodus = 'E' importing wmara = g_s_mara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting text = out_string exceptions others = 1.

K_ABC_LIST_POPUP call function 'K_ABC_LIST_POPUP' exporting win_status = '200' win_title = '303' importing funct_code = list_okcode tables fieldtab = fieldtab valuetab = valuetab sel_values = sel_values sel_lines = sel_lines exceptions others = 1.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting text = out_string exceptions others = 1.

K_ABC_LIST_POPUP call function 'K_ABC_LIST_POPUP' exporting win_status = '200' win_title = '303' importing funct_code = list_okcode tables fieldtab = fieldtab valuetab = valuetab sel_values = sel_values sel_lines = sel_lines exceptions others = 1.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting text = out_string exceptions others = 1.

K_ABC_LIST_POPUP call function 'K_ABC_LIST_POPUP' exporting win_status = '200' win_title = '303' importing funct_code = list_okcode tables fieldtab = fieldtab valuetab = valuetab sel_values = sel_values sel_lines = sel_lines exceptions others = 1.

MGW_UTILITIES_BUILD_MESSAGE call function 'MGW_UTILITIES_BUILD_MESSAGE' exporting i_id = p_msgid i_number = p_msgno i_type = l_type i_message_v1 = p_msgv1 i_message_v2 = p_msgv2 i_message_v3 = p_msgv3 i_message_v4 = p_msgv4 tables t_return = pt_return.

MATERIAL_READ_CLASSIFIC_RT call function 'MATERIAL_READ_CLASSIFIC_RT' exporting p_matnr = p_satnr kz_mara_read = ' ' p_mara = g_s_mara_ref kz_kltyp_read = 'X' kz_int_art = 'X' kzrfb = 'X' importing p_class = l_s_rmmw2-class p_kltyp = l_s_rmmw2-kltyp tables exp_var_tab = l_t_varnr exp_char_vari = l_t_char exp_valu_vari = l_t_valu exceptions wrong_call = 1 mara_not_exist = 2 no_class = 3 no_char = 4 no_valu_vari = 5 valu_not_allowed = 6 others = 7.

CONVERSION_EXIT_MATN1_OUTPUT call function 'CONVERSION_EXIT_MATN1_OUTPUT' exporting input = l_t_vartab-matnr importing output = l_t_wseltab-cwert.

MGW_UTILITIES_SET_VALU call function 'MGW_UTILITIES_SET_VALU' exporting i_vart = g_s_vart tables t_api_vali = g_t_valu.

MGW_UTILITIES_MATRIX_SHELL_RA call function 'MGW_UTILITIES_MATRIX_SHELL_RA' exporting object = l_object class_type = l_class_art include_header = l_s_subclass start_mode = '1' titel = 'Varianten zum Sammelmaterial'(t01) nodelist_titel = 'Variantenbewertung'(t02) * STATUS_PROG = * STATUS = * BUTTON_01 = * BUTTON_02 = * PF3_POSI = 'X' * PF8_POSI = ' ' pf11_posi = ' ' pf12_posi = 'X' pf15_posi = ' ' xy_change_posi = ' ' display_only = ' ' check_exit = 'X' * SUBSCR = ' ' init_matrix = 'X' * SKIP_AXIS_SEL = ' ' f4_special_check = 'X' knsta_gen_nodes = ' ' function_exit = 'MGW_UTILITIES_WMMB_TO_BUFFER' reactivate_nodes = ' ' importing return_functioncode = l_fcode * MTX_SCNR = tables var_art = l_t_vartab var_wsel = l_t_wseltab vb_char = l_t_obj_char vb_val = l_t_obj_val modes = l_t_mtrxmode * LIST_HEADER = * OK_CODES = exceptions mode_error = 1 inputdata_error = 2 no_value = 3 no_char = 4 no_cuobj = 5 no_classification_found = 6 classification_error = 7 matrix_cancelled = 8 others = 9.

MGW_UTILITIES_GET_VALU call function 'MGW_UTILITIES_GET_VALU' importing e_vart = g_s_vart tables t_api_vali = g_t_valu.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting text = l_string exceptions others = 1.

MAKT_GENERIC_READ_WITH_MATNR





call function 'MAKT_GENERIC_READ_WITH_MATNR' exporting kzrfb = 'X' matnr = ps_mara_v-matnr tables * KTEXT = makt_tab = l_t_makt exceptions wrong_call = 1 not_found = 2 others = 3.

CLSE_SELECT_CAWN call function 'CLSE_SELECT_CAWN' exporting * KEY_DATE = SY-DATUM bypassing_buffer = 'X' tables in_cabn = r_atinn t_cawn = l_t_cawn exceptions no_entry_found = 1 others = 2.

CLSE_SELECT_CAWNT call function 'CLSE_SELECT_CAWNT' exporting language = space * KEY_DATE = SY-DATUM * BYPASSING_BUFFER = ' ' tables in_cabn = r_atinn t_cawnt = l_t_cawnt exceptions no_entry_found = 1 others = 2.

BAPI_MATERIAL_MAINTAINDATA_RT call function 'BAPI_MATERIAL_MAINTAINDATA_RT' exporting headdata = l_s_headdata importing return = l_s_return tables materialdescription = l_t_description.

BAPI_MATERIAL_DISPLAY call function 'BAPI_MATERIAL_DISPLAY' exporting material = l_material importing return = g_t_return.



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