SAP Reports / Programs | Logistics - General | Logistics Basic Data | Plant Master(LO-MD-PL) SAP LO

R2RMMR_MATERIAL_CHG_MASSUPDATE SAP ABAP Report - Mass Update for Planned Price for Material Masters







R2RMMR_MATERIAL_CHG_MASSUPDATE 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 R2RMMR_MATERIAL_CHG_MASSUPDATE 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

R2RMM126 - Misc. Mass Update for Matl Master


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 R2RMMR_MATERIAL_CHG_MASSUPDATE. "Basic submit
SUBMIT R2RMMR_MATERIAL_CHG_MASSUPDATE AND RETURN. "Return to original report after report execution complete
SUBMIT R2RMMR_MATERIAL_CHG_MASSUPDATE 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: FILE = D File name
Selection Text: P_PRICE = Planned Price 1
Selection Text: P_PRICE3 = Planned Price 3
Selection Text: P_PRODHR = Product Hierarchy
Selection Text: P_STATUS = Plant Specific Material Status
Title: Mass Update for Planned Price for Material Masters
Text Symbol: 001 = Selection-Criteria
Text Symbol: 002 = No of matarials successfully updated
Text Symbol: 003 = No of materials with errors
Text Symbol: 004 = Material
Text Symbol: 005 = could not be updated
Text Symbol: 006 = Update Criteria
Text Symbol: C00 = Planned Price 1
Text Symbol: C01 = Material(18 ) /Plant(4) / Price(11 )/ Date(8)
Text Symbol: C02 = Planned Price 3
Text Symbol: C03 = Plant Specific Material Status
Text Symbol: C04 = Material(18 ) /Plant(4)
Text Symbol: C05 = Product Hierarchy
Text Symbol: C06 = Material(18) / Product Hierarchy(18)


INCLUDES used within this REPORT R2RMMR_MATERIAL_CHG_MASSUPDATE

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:

KD_GET_FILENAME_ON_F4 CALL FUNCTION 'KD_GET_FILENAME_ON_F4' EXPORTING mask = ',Text file,*.txt' "#EC NOTEXT

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL' * EXPORTING * _SYNCHRON = ' ' .

WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' * EXPORTING * filename = file * filetype = 'DAT' ** dat_d_format = 'YYYYMMDD' * TABLES * data_tab = itab * EXCEPTIONS * conversion_error = 1 * file_open_error = 2 * file_read_error = 3 * invalid_type = 4 * no_batch = 5 * unknown_error = 6 * invalid_table_width = 7 * gui_refuse_filetransfer = 8 * customer_error = 9 * OTHERS = 10.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = itab EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17.

CONVERSION_EXIT_MATN1_INPUT CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT' EXPORTING input = itab-matnr IMPORTING output = itab-matnr EXCEPTIONS length_error = 1 OTHERS = 2.

BAPI_MATERIAL_SAVEDATA CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA' EXPORTING headdata = header plantdata = bapi_marc plantdatax = bapi_marcx valuationdata = bapi_mbew valuationdatax = bapi_mbewx IMPORTING return = return.

BAPI_MATERIAL_SAVEDATA CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA' EXPORTING headdata = header valuationdata = bapi_mbew valuationdatax = bapi_mbewx IMPORTING return = return.

WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' * EXPORTING * filename = file * filetype = 'DAT' * dat_d_format = 'MM/DD/YYYY' * TABLES * data_tab = itab1 * EXCEPTIONS * conversion_error = 1 * file_open_error = 2 * file_read_error = 3 * invalid_type = 4 * no_batch = 5 * unknown_error = 6 * invalid_table_width = 7 * gui_refuse_filetransfer = 8 * customer_error = 9 * OTHERS = 10.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = itab1 EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17.

CONVERSION_EXIT_MATN1_INPUT CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT' EXPORTING input = itab1-matnr IMPORTING output = itab1-matnr EXCEPTIONS length_error = 1 OTHERS = 2.

BAPI_MATERIAL_SAVEDATA CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA' EXPORTING headdata = header clientdata = bapi_mara clientdatax = bapi_marax IMPORTING return = return.

WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' * EXPORTING * filename = file * filetype = 'DAT' * dat_d_format = 'MM/DD/YYYY' * TABLES * data_tab = itab2 * EXCEPTIONS * conversion_error = 1 * file_open_error = 2 * file_read_error = 3 * invalid_type = 4 * no_batch = 5 * unknown_error = 6 * invalid_table_width = 7 * gui_refuse_filetransfer = 8 * customer_error = 9 * OTHERS = 10.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = itab2 EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17.

BAPI_MATERIAL_SAVEDATA CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA' EXPORTING headdata = header plantdata = bapi_marc plantdatax = bapi_marcx IMPORTING return = 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 R2RMMR_MATERIAL_CHG_MASSUPDATE or its description.