SAP Reports / Programs

RMMMBIM0 SAP ABAP Report - Create Batch Input Session: Create/Change Material







RMMMBIM0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this program to generate sessions for creating and changing material master records in the system...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 RMMMBIM0 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

OV/4 - RV Batch Input Program
OMSU - C MM-BD Mat. Master Data Transfer


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 RMMMBIM0. "Basic submit
SUBMIT RMMMBIM0 AND RETURN. "Return to original report after report execution complete
SUBMIT RMMMBIM0 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: ANZ_MODE = Display mode
Selection Text: DS_NAME = Name of sequential file
Selection Text: KZ_PRF = Make preliminary check
Selection Text: LDS_NAME = Name of logical file
Selection Text: UPDATE = Update mode
Selection Text: XCALL = Call transaction ... using ..
Title: Create Batch Input Session: Create/Change Material
Text Symbol: 200 = No.
Text Symbol: 201 = Session name
Text Symbol: 202 = Transactions


INCLUDES used within this REPORT RMMMBIM0

INCLUDE RMMMBIMX.
INCLUDE RMMMBIMC.
INCLUDE RMMMBIMW.


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:

FILE_LOGFILE_ALIAS_PBO CALL FUNCTION 'FILE_LOGFILE_ALIAS_PBO' EXPORTING ed_logfile_appl = lds_const_for_log_name ed_parameter_name = 'LDS_NAME' CHANGING cd_logfile_param = lds_name.

FILE_LOGFILE_ALIAS_PAI CALL FUNCTION 'FILE_LOGFILE_ALIAS_PAI' EXPORTING ed_logfile_appl = lds_const_for_log_name CHANGING cd_logfile = lds_name EXCEPTIONS OTHERS = 1.

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = lds_name IMPORTING file_name = ds_name EXCEPTIONS file_not_found = 01.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = lds_name_int CHANGING physical_filename = ds_name EXCEPTIONS OTHERS = 1.

MATERIAL_BDCDATA CALL FUNCTION 'MATERIAL_BDCDATA' EXPORTING ibmm00 = bmm00 ibmmh1 = bmmh1 kzmappe = x kzprf = kz_prf nodata_sign = nodata trans_cnt = trans_count TABLES ibdcdata = ft ibmmh2 = xbmmh2 ibmmh3 = xbmmh3 ibmmh4 = xbmmh4 ibmmh5 = xbmmh5 ibmmh6 = xbmmh6 ibmmh7 = xbmmh7 ibmmh8 = xbmmh8 EXCEPTIONS components_flref_not_found = 01 dynpro_sequence_error = 01 dynpro_sequence_error_2 = 01 dynpro_sequence_error_3 = 01 material_increase_error = 01 matnr_missing = 02 matnr_not_existing = 03 mbrsh_missing = 04 mbrsh_not_existing = 05 mtart_missing = 06 mtart_not_existing = 07 nodata_wrong = 08 no_active_dynpro_selected = 09 no_authority = 10 no_changeable_view = 11 no_dynpro = 01 no_increasable_view = 12 selection_orgvalue_mismatch = 13 t138b_error = 01 t138m_error = 01 tcode_missing = 14 tcode_not_existing = 15 tcode_not_supported = 16 transaction_skipped = 17 valuation_level_missing = 18 valuation_type_not_existing = 19 vkorg_without_country = 20 wrong_valuation_level = 21 material_mtart_wrong = 22 material_mbrsh_wrong = 23.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING client = bgr00-mandt group = bgr00-group holddate = bgr00-start keep = bgr00-xkeep user = bgr00-usnam.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' * exporting tcode = bmm00-tcode mk/4.0A Namensraumerweiterung

BDC_INSERT CALL FUNCTION 'BDC_INSERT' * exporting tcode = bmm00-tcode mk/4.0A Namensraumerweiterung

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = gc_pf_status i_callback_user_command = gc_user_command is_layout = gs_layout it_fieldcat = gt_fieldcat i_save = gc_save it_events = gt_eventtab TABLES t_outtab = gt_list EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_structure_name = gc_structure i_inclname = g_repid CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.

FILE_LOGFILE_ALIAS_F4 CALL FUNCTION 'FILE_LOGFILE_ALIAS_F4' EXPORTING ed_logfile_appl = lds_const_for_log_name ed_parameter_name = 'LDS_NAME' CHANGING cd_logical_file = lds_name.



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