SAP Reports / Programs

RWRFMATCHARVAL SAP ABAP Report - Characteristic Value Change to Generic Material Variants







RWRFMATCHARVAL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for With this report you can revaluate variants...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

WRFMATCHARVAL - Char. Value Change to Variants


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 RWRFMATCHARVAL. "Basic submit
SUBMIT RWRFMATCHARVAL AND RETURN. "Return to original report after report execution complete
SUBMIT RWRFMATCHARVAL 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_VARNR = D .
Selection Text: P_ATNAM = D .
Selection Text: P_PURCH = Check Purchase Order Documents
Selection Text: P_PROT = Issue Log
Selection Text: P_PROMO = Check Promotions
Selection Text: P_MATNR = Generic Material
Selection Text: P_ERROR = Use Error
Selection Text: P_DESC = Adjust Material Short Text
Selection Text: P_ALLOC = Check Allocation
Title: Characteristic Value Change to Generic Material Variants
Text Symbol: XT1 = Confirmation Prompt
Text Symbol: XB2 = No
Text Symbol: XB1 = Yes
Text Symbol: X02 = Do you want to adjust the material descriptions?
Text Symbol: X01 = The system will overwrite differing variant descriptions during adjustment of the material descriptions
Text Symbol: TM2 = Variant Valuation
Text Symbol: TM1 = Variants for Generic Material
Text Symbol: T07 = Material Number
Text Symbol: T06 = Material Number for Matrix Display
Text Symbol: T04 = Matrix Display
Text Symbol: T03 = Variants for S
Text Symbol: T02 = Multiple Processing
Text Symbol: T01 = Individual Processing
Text Symbol: PB3 = Select Values and Variants
Text Symbol: PB2 = Classification
Text Symbol: PB1 = Display Material
Text Symbol: PB0 = Change Material
Text Symbol: 003 = General Control Parameters
Text Symbol: 002 = Define Inspection Scope
Text Symbol: 001 = Material Selection


INCLUDES used within this REPORT RWRFMATCHARVAL

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:

WRF_MATERIAL_CHANGE_CHARVAL call function 'WRF_MATERIAL_CHANGE_CHARVAL' exporting iv_generic_article = gs_generic_article-matnr it_change_list_var = gt_changes iv_change_desc = p_desc iv_check_purch = p_purch iv_check_alloc = p_alloc iv_check_promo = p_promo iv_check_as_error = p_error importing et_messages = gt_return.

MATERIAL_INIT_CLASSIFICATION call function 'MATERIAL_INIT_CLASSIFICATION'.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting matnr = p_satnr sperrmodus = c_enqmode_e importing wmara = ls_mara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

LESEN_VARIANTEN_ZU_SA call function 'LESEN_VARIANTEN_ZU_SA' exporting sammelartikel = p_satnr sperrmodus = c_enqmode_e tables varianten = lt_mara exceptions enqueue_mode_changed = 1 lock_on_material = 2 lock_system_error = 3 wrong_call = 4 not_found = 5 no_maw1_for_mara = 6 lock_on_marc = 7 lock_on_mbew = 8 lock_on_mvke = 9 lock_on_mlgn = 10 others = 11.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting matnr = p_varnr importing wmara = ls_mara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

F4IF_GET_SHLP_DESCR call function 'F4IF_GET_SHLP_DESCR' exporting shlpname = 'MAT1_A_APPEND_GENERIC_ARTICLE' importing shlp = ls_shlp_descr.

F4IF_START_VALUE_REQUEST call function 'F4IF_START_VALUE_REQUEST' exporting shlp = ls_shlp_descr disponly = space multisel = space importing rc = lv_subrc tables return_values = lt_return_values.

DEQUEUE_ALL call function 'DEQUEUE_ALL'.

WRF_MATERIAL_DEFINE_CHARVAL call function 'WRF_MATERIAL_DEFINE_CHARVAL' exporting iv_generic_article = p_satnr iv_char_name = p_atnam importing et_messages = lt_messages changing ct_change_list_var = gt_changes.

POPUP_TO_CONFIRM call function 'POPUP_TO_CONFIRM' exporting titlebar = lv_title text_question = lv_text text_button_1 = lv_but_01 text_button_2 = lv_but_02 default_button = lv_def_but display_cancel_button = lv_but_ex importing answer = lv_answer exceptions text_not_found = 1 others = 2.

WRF_MATERIAL_DEFINE_CHARVAL call function 'WRF_MATERIAL_DEFINE_CHARVAL' exporting iv_generic_article = p_satnr iv_char_name = p_atnam importing et_messages = lt_messages changing ct_change_list_var = gt_changes.

MATERIAL_READ_CLASSIFIC_RT call function 'MATERIAL_READ_CLASSIFIC_RT' exporting p_matnr = p_satnr kz_mara_read = space p_mara = gs_generic_article kz_kltyp_read = true kz_int_art = true kzrfb = true 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 = gs_matrix_variant tables t_api_vali = gt_values.

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 = text-tm1 nodelist_titel = text-tm2 pf11_posi = ' ' pf12_posi = 'X' pf15_posi = ' ' xy_change_posi = ' ' display_only = ' ' check_exit = 'X' init_matrix = 'X' f4_special_check = 'X' knsta_gen_nodes = ' ' function_exit = 'MGW_UTILITIES_WMMB_TO_BUFFER' reactivate_nodes = ' ' importing return_functioncode = l_fcode 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 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 = gs_matrix_variant tables t_api_vali = gt_values.

MATERIAL_READ_CLASSIFIC_RT call function 'MATERIAL_READ_CLASSIFIC_RT' exporting p_matnr = p_satnr kz_mara_read = space p_mara = gs_generic_article kz_kltyp_read = true kz_int_art = true kzrfb = true tables exp_char_vari = gt_charname exceptions wrong_call = 1 mara_not_exist = 2 no_class = 3 no_char = 4 no_valu_vari = 5 valu_not_allowed = 6 others = 7.

F4IF_GET_SHLP_DESCR call function 'F4IF_GET_SHLP_DESCR' exporting shlpname = 'MERKB' importing shlp = ls_shlp_descr.

F4IF_START_VALUE_REQUEST





call function 'F4IF_START_VALUE_REQUEST' exporting shlp = ls_shlp_descr disponly = space multisel = space importing rc = lv_subrc tables return_values = lt_return_values.

MATERIAL_READ_CLASSIFIC_RT call function 'MATERIAL_READ_CLASSIFIC_RT' exporting p_matnr = p_satnr kz_mara_read = space p_mara = gs_generic_article kz_kltyp_read = true kz_int_art = true kzrfb = true tables exp_char_vari = gt_charname exceptions wrong_call = 1 mara_not_exist = 2 no_class = 3 no_char = 4 no_valu_vari = 5 valu_not_allowed = 6 others = 7.

DEQUEUE_ALL call function 'DEQUEUE_ALL'.

REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' exporting i_structure_name = 'BAPIRET2' is_layout = ls_layout tables t_outtab = gt_return exceptions program_error = 1 others = 2.

ICON_CREATE * call function 'ICON_CREATE' * exporting * name = icon_change * text = text-pb0 * importing * result = sscrfields-functxt_01 * exceptions * icon_not_found = 1 * outputfield_too_short = 2 * others = 3.

ICON_CREATE * call function 'ICON_CREATE' * exporting * name = icon_display * text = text-pb1 * importing * result = sscrfields-functxt_02 * exceptions * icon_not_found = 1 * outputfield_too_short = 2 * others = 3.

DYNP_VALUES_READ call function 'DYNP_VALUES_READ' exporting dyname = lv_repid dynumb = lv_dynnr perform_conversion_exits = 'X' tables dynpfields = lt_dynpfields exceptions others = 01.

CONVERSION_EXIT_MATN1_INPUT call function 'CONVERSION_EXIT_MATN1_INPUT' exporting input = lt_dynpfields-fieldvalue importing output = p_satnr exceptions length_error = 1 others = 2.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting matnr = p_satnr sperrmodus = c_enqmode_e importing wmara = ls_mara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.



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