MMDRFORM is a standard ABAP INCLUDE 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 MMDRFORM into the relevant SAP transactions such as SE38 or SE80
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.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ME_EINA_READ CALL FUNCTION 'ME_EINA_READ' TABLES pti_matnr = lt_mat_tab pto_eina = lt_eina_tab EXCEPTIONS no_records_found = 1 OTHERS = 2.
ME_EINA_READ_WITH_MATNR CALL FUNCTION 'ME_EINA_READ_WITH_MATNR' EXPORTING pi_matnr = p_lt_mdmwx-matnr TABLES pto_eina = lt_lifnr_tab EXCEPTIONS no_records_found = 1 OTHERS = 2.
MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' EXPORTING matnr = p_lt_mdmwx-matnr spras = sy-langu IMPORTING wmakt = ls_makt EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.
WY_LFA1_GET_NAME CALL FUNCTION 'WY_LFA1_GET_NAME' EXPORTING pi_lifnr = lt_lifnr_tab-lifnr IMPORTING po_name1 = lv_name1 EXCEPTIONS no_records_found = 1 internal_error = 2 OTHERS = 3.
MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' EXPORTING matnr = lt_eina_tab-matnr spras = sy-langu IMPORTING wmakt = ls_makt EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.
WY_LFA1_GET_NAME CALL FUNCTION 'WY_LFA1_GET_NAME' EXPORTING pi_lifnr = lt_eina_tab-lifnr IMPORTING po_name1 = lv_name1 EXCEPTIONS no_records_found = 1 internal_error = 2 OTHERS = 3.
SMI_MASTERIDOC_CREATE_PROACT CALL FUNCTION 'SMI_MASTERIDOC_CREATE_PROACT' "#EC * EXPORTING pi_supplier = lv_supplier pi_logsys = logsys pi_plant = lv_werk pi_mat_source = lt_mat_source pi_articles = lt_product_cap pi_labst_items = lt_labst pi_klabst_items = lt_klabst pi_slabst_items = lt_slabst pi_insme_items = lt_insme pi_kinsme_items = lt_kinsme pi_sinsme_items = lt_sinsme pi_speme_items = lt_speme pi_kspeme_items = lt_kspeme pi_sspeme_items = lt_sspeme pi_umlme_items = lt_umlme pi_demand_items = lt_demand pi_weref_tab = lt_weref_tab[] pi_docnum = lv_idoc_temp_id pi_utc = p_lv_utc pi_konsi_flag = lv_nurks pi_eigen_flag = lv_self pi_koneig_flag = lv_kself pi_banf_flag = lv_banfd pi_plauf_flag = lv_plafd pi_best_flag = lv_bestd " n_1352807 pi_lplan_flag = lv_lplnd pi_null_flag = lv_synch pi_synull_flag = lv_synul pi_datefr = lv_datefr pi_dateto = lv_dateto pi_labst_flag = lv_labst pi_insme_flag = lv_insme pi_speme_flag = lv_speme pi_umlme_flag = lv_stockintransfer IMPORTING pe_idoc_header_item = ls_idoc_header_item TABLES pe_idoc_data_items = lt_idoc_data_items CHANGING pi_banf_items = lt_banf pi_plauf_items = lt_plauf pi_best_items = lt_best pi_lplan_items = lt_lplan.
MASTER_IDOC_DISTRIBUTE CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' EXPORTING master_idoc_control = ls_idoc_header_item TABLES communication_idoc_control = lt_idoc_comm_control master_idoc_data = lt_idoc_data_items EXCEPTIONS error_in_idoc_control = 01 error_writing_idoc_status = 02 error_in_idoc_data = 03 sending_logical_system_unknown = 04.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
EDI_DOCUMENT_DEQUEUE_LATER CALL FUNCTION 'EDI_DOCUMENT_DEQUEUE_LATER' EXPORTING docnum = ls_idoc_comm_control-docnum EXCEPTIONS idoc_is_not_to_dequeue = 1 OTHERS = 2.
SMI_MASTERIDOC_CREATE_PROACT CALL FUNCTION 'SMI_MASTERIDOC_CREATE_PROACT' "#EC * EXPORTING pi_supplier = lv_supplier pi_logsys = logsys pi_plant = lv_werk pi_mat_source = lt_mat_source pi_articles = lt_product pi_weref_tab = lt_weref_tab[] pi_docnum = lv_idoc_temp_id pi_utc = lv_utc
IMPORTING pe_idoc_header_item = ls_idoc_header_item TABLES pe_idoc_data_items = lt_idoc_data_items.
MASTER_IDOC_DISTRIBUTE CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' EXPORTING master_idoc_control = ls_idoc_header_item TABLES communication_idoc_control = lt_idoc_comm_control master_idoc_data = lt_idoc_data_items EXCEPTIONS error_in_idoc_control = 01 error_writing_idoc_status = 02 error_in_idoc_data = 03 sending_logical_system_unknown = 04.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
EDI_DOCUMENT_DEQUEUE_LATER CALL FUNCTION 'EDI_DOCUMENT_DEQUEUE_LATER' EXPORTING docnum = ls_idoc_comm_control-docnum EXCEPTIONS idoc_is_not_to_dequeue = 1 OTHERS = 2.
SMI_DR_WE_MOVEMENT_READ CALL FUNCTION 'SMI_DR_WE_MOVEMENT_READ' EXPORTING iv_werk = p_lv_werk iv_berid = p_lv_berid iv_welif = p_lv_welif "Note 975875 iv_wepo = p_lv_wepo "Note 975875 iv_grc = gv_grc iv_log_handle = ls_log_handle IMPORTING et_weref_tab = p_lt_weref TABLES it_range_dispo = lt_dispo[] "global table it_range_dismm = lt_dismm[] "global table it_range_beskz = lt_beskz[] "global table it_range_sobsl = lt_sobsl[] "global table it_range_wedate = p_lt_wedat[] it_range_matnr = p_lt_marnr[] it_range_vrtyp = lt_vrtyp[] "global table it_range_lifnr = p_lt_lifnr[] CHANGING it_we_time = lt_wetim.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.