SAP Reports / Programs

MMASSIGNMAT SAP ABAP Report - Assignment of a Single Material to a Generic Material







MMASSIGNMAT 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 MMASSIGNMAT 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 MMASSIGNMAT. "Basic submit
SUBMIT MMASSIGNMAT AND RETURN. "Return to original report after report execution complete
SUBMIT MMASSIGNMAT 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_WERKS = D Plant
Selection Text: S_TABNR = D Table
Selection Text: S_LIFNR = D Vendor
Selection Text: S_KSCHL = D Condition Type
Selection Text: S_INFNR = D Purchasing Info Record
Selection Text: S_ESOKZ = D Info Record Category
Selection Text: S_EKORG = D Purchasing Organization
Selection Text: P_SHOW = Display Variant Numbers
Selection Text: P_SATNR = Generic Material
Selection Text: P_MM42 = Maintain Material (MM42)
Selection Text: P_MATNR = Single Material
Selection Text: P_KONT = Check Contracts
Selection Text: P_KOND = Compare Material Conditions
Selection Text: P_EINA = Compare Purch. Info Record
Selection Text: P_AUFT = Check Allocation
Selection Text: P_AKT = Check Action
Title: Assignment of a Single Material to a Generic Material
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: P03 = Display Material
Text Symbol: P02 = Change 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: 005 = Restrictions for Condition Transfer
Text Symbol: 004 = Restrictions for Info Record Transfer
Text Symbol: 003 = Selection Parameters


INCLUDES used within this REPORT MMASSIGNMAT

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.

MGW_ASSIGN_MATERIAL_TO_GA





call function 'MGW_ASSIGN_MATERIAL_TO_GA' exporting i_satnr = p_satnr i_matnr = p_matnr i_blocking_indicator = p_spera i_refresh_buffer = p_kzrfb i_generate_gen_ausp = 'X' tables t_api_vali = pt_value exceptions error = 1 others = 2.

MGW_COPY_INFORECORDS call function 'MGW_COPY_INFORECORDS' exporting i_matnr = p_satnr i_rmatn = p_matnr tables t_return = pt_return r_infnr = lr_infnr r_lifnr = s_lifnr r_ekorg = s_ekorg r_esokz = lr_esokz r_werks = s_werks.

MGW_COPY_CONDITIONS call function 'MGW_COPY_CONDITIONS' exporting i_matnr = p_satnr i_rmatn = p_matnr tables t_return = pt_return r_kschl = lr_kschl r_tabnr = lr_tabnr.

DEQUEUE_EMMARAE call function 'DEQUEUE_EMMARAE' exporting matnr = l_material.

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

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