MMWE0F01 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 MMWE0F01 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.
Title: FORM Routines for Transaction MEW0
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
BAPI_ACCSERV_CHECKACCASSIGNMT call function 'BAPI_ACCSERV_CHECKACCASSIGNMT' exporting check_codingblock = bapicobl importing changed_codingblock = bapicobl tables return = return1 exceptions error_message = 1.
BAPI_PO_CREATE call function 'BAPI_PO_CREATE' exporting po_header = po_head importing purchaseorder = h_ebeln tables po_items = po_item po_item_schedules = po_sched po_item_account_assignment = po_acct po_item_text = po_text return = return exceptions others = 0.
TRANSACTION_BEGIN call function 'TRANSACTION_BEGIN' "94702/KB importing "94702/KB transaction_id = transaction_id "94702/KB exceptions "94702/KB others = 1. "94702/KB
BAPI_PO_CREATE call function 'BAPI_PO_CREATE' "94702/KB exporting "94702/KB po_header = po_head "94702/KB importing "94702/KB purchaseorder = h_ebeln "94702/KB tables "94702/KB po_items = po_item "94702/KB po_item_schedules = po_sched "94702/KB po_item_account_assignment = po_acct "94702/KB po_item_text = po_text "94702/KB return = return "94702/KB exceptions "94702/KB others = 0. "94702/KB
TRANSACTION_STATUS call function 'TRANSACTION_STATUS' "94702/KB importing "94702/KB status = status_of_transaction "94702/KB exceptions "94702/KB others = 1. "94702/KB
TRANSACTION_END call function 'TRANSACTION_END' "94702/KB exporting "94702/KB transaction_id = transaction_id "94702/KB exceptions "94702/KB others = 1. "94702/KB
BAPI_REQUISITION_CREATE call function 'BAPI_REQUISITION_CREATE' exporting skip_items_with_error = 'X' importing number = h_banfn tables requisition_items = req_item requisition_account_assignment = req_acct requisition_item_text = req_text return = return exceptions others = 0.
BAPI_RESERVATION_CREATE call function 'BAPI_RESERVATION_CREATE' exporting reservation_header = res_head importing reservation = h_rsnum tables reservation_items = res_item return = return exceptions others = 0.
CURRENCY_CODE_ISO_TO_SAP call function 'CURRENCY_CODE_ISO_TO_SAP' exporting iso_code = h_currency importing sap_code = h_waers exceptions not_found = 1 others = 2.
BAPI_INFORECORD_GETLIST call function 'BAPI_INFORECORD_GETLIST' exporting vendor = dmi_vendor vend_mat = dmi_vendormat purchorg_data = ' ' general_data = 'X' tables inforecord_general = heina return = return exceptions others = 0.
BAPI_CREDITOR_FIND call function 'BAPI_CREDITOR_FIND' tables selopt_tab = cred_exp result_tab = cred_imp exceptions others = 0.
BAPI_MATERIAL_GETLIST call function 'BAPI_MATERIAL_GETLIST' tables manufacturerpartnumb = hmfrpn matnrlist = hmat exceptions others = 0.
BAPI_PROCOPERATION_GETCATALOGS call function 'BAPI_PROCOPERATION_GETCATALOGS' exporting material_group = gca_mat_grp plant = gca_plant tables valid_catalogs = h_cat return = return.
BAPI_COMPANYCODE_GETDETAIL call function 'BAPI_COMPANYCODE_GETDETAIL' exporting companycodeid = global-co_code importing companycode_detail = compdeta.
BAPI_CREDITOR_GETDETAIL call function 'BAPI_CREDITOR_GETDETAIL' exporting creditorid = sel_vendor companycode = global-co_code importing creditor_company_detail = bapi1008_5 return = bapireturn exceptions others = 0.
BAPI_HELPVALUES_GET call function 'BAPI_HELPVALUES_GET' exporting objname = ghv_objname method = ghv_method parameter = ghv_parameter field = ghv_field tables selection_for_helpvalues = f4_tab1 helpvalues = f4_tab2 values_for_field = f4_tab3 description_for_helpvalues = f4_tab4 exceptions others = 0.
ME_ACCOUNT_ASSIGNMENT call function 'ME_ACCOUNT_ASSIGNMENT' exporting i_matnr = ban-pur_mat i_werks = ban-plant i_bwtar = space i_sobkz = space i_vbeln = space i_vbelp = '000000' i_ps_psp_pnr = h_wbs_elem i_kzbws = space i_knttp = ban-acctasscat i_matkl = ban-mat_grp importing e_sakto = bsc-g_l_acct exceptions others = 0.
ME_ACCOUNT_ASSIGNMENT call function 'ME_ACCOUNT_ASSIGNMENT' exporting i_matnr = space i_werks = bapipogn-plant i_bwtar = space i_sobkz = space i_vbeln = space i_vbelp = '000000' i_ps_psp_pnr = h_wbs_elem i_kzbws = space i_knttp = bapipogn-acctasscat i_matkl = bapipogn-mat_grp importing e_sakto = bapipogna-g_l_acct exceptions others = 0.
call function 'BAPI_MATERIAL_AVAILABILITY' exporting plant = maa_plant material = maa_material unit = maa_unit check_rule = '03' importing endleadtme = end_rlt av_qty_plt = avail_qty_plant dialogflag = not_available tables wmdvsx = xwmdvsx wmdvex = xwmdvex exceptions error_message = 1.
MATERIAL_READ call function 'MATERIAL_READ' exporting schluessel = mtcom importing matdaten = mt06e return = mtcor tables seqmat01 = tdummy exceptions error_message = 01.
MM_ENQUEUE_DOCUMENT call function 'MM_ENQUEUE_DOCUMENT' exporting i_ebeln = object_po-number i_bstyp = 'F'.
BAPI_PO_GETDETAIL call function 'BAPI_PO_GETDETAIL' exporting purchaseorder = object_po-number tables po_items = po_itemdet return = return.
ME_UPDATE_DOCUMENT_RESPONSE call function 'ME_UPDATE_DOCUMENT_RESPONSE' "IN UPDATE TASK tables xekpo = xekpo exceptions update_mistake = 01.
DEQUEUE_EMEKKOE call function 'DEQUEUE_EMEKKOE' exporting ebeln = object_po-number.
BAPI_PO_GETITEMS call function 'BAPI_PO_GETITEMS' exporting doc_date = sel_date preq_name = sy-uname with_po_headers = 'X' tables po_headers = spo_head po_items = po_item return = return exceptions others = 0.
BAPI_PO_GETDETAIL call function 'BAPI_PO_GETDETAIL' exporting purchaseorder = h_ebeln items = 'X' account_assignment = 'X' schedules = 'X' history = 'X' tables po_items = po_itemdet po_item_account_assignment = po_acct po_item_schedules = po_sched po_item_history = po_hist po_item_history_totals = po_hist_sum return = return exceptions others = 0.
BAPI_PO_GETDETAIL call function 'BAPI_PO_GETDETAIL' exporting purchaseorder = h_ebeln items = 'X' account_assignment = 'X' schedules = 'X' history = 'X' tables po_items = po_itemdet po_item_account_assignment = po_acct po_item_schedules = po_sched po_item_history = po_hist po_item_history_totals = po_hist_sum return = return exceptions others = 0.
BAPI_REQUISITION_GETITEMS call function 'BAPI_REQUISITION_GETITEMS' exporting preq_name = sy-uname preq_date = sel_date closed_items = closed_items partially_ordered_items = 'X' assigned_items = 'X' tables requisition_items = req_item return = return exceptions others = 0.
BAPI_REQUISITION_GETDETAIL call function 'BAPI_REQUISITION_GETDETAIL' exporting number = req_stat-preq_no account_assignment = 'X' tables requisition_items = req_itemdet requisition_account_assignment = req_acct return = return exceptions others = 0.
BAPI_CREDITOR_GETDETAIL call function 'BAPI_CREDITOR_GETDETAIL' exporting creditorid = sreq_item-fixed_vend importing creditor_general_detail = bapi1008_4.
BAPI_RESERVATION_GETITEMS call function 'BAPI_RESERVATION_GETITEMS' exporting gr_rcpt = sy-uname req_date = sel_date closed_items = closed_items tables reservation_items = res_stat1 return = return exceptions others = 0.
BAPI_RESERVATION_GETDETAIL call function 'BAPI_RESERVATION_GETDETAIL' exporting reservation = reskey-res_no importing reservation_header = bapirkpf tables reservation_items = res_itemdet return = return exceptions others = 0.
BAPI_PROCOPERATION_GETINFO call function 'BAPI_PROCOPERATION_GETINFO' tables procurement_item = proc procurement_account = proc_acct return = return exceptions others = 0.
UNIT_OF_MEASURE_SAP_TO_ISO call function 'UNIT_OF_MEASURE_SAP_TO_ISO' exporting sap_code = uof_unit importing iso_code = h_unit_iso exceptions not_found = 1 no_iso_code = 2 others = 3.
UNIT_OF_MEASURE_ISO_TO_SAP call function 'UNIT_OF_MEASURE_ISO_TO_SAP' exporting iso_code = uof_unit importing sap_code = h_unit exceptions not_found = 1 others = 2.
BAPI_CURRENCY_CONV_TO_EXTERNAL call function 'BAPI_CURRENCY_CONV_TO_EXTERNAL' exporting currency = vtb_currency amount_internal = vtb_preis importing amount_external = vtb_preqprice exceptions others = 1.
CURRENCY_AMOUNT_IDOC_TO_SAP call function 'CURRENCY_AMOUNT_IDOC_TO_SAP' exporting currency = vts_currency idoc_amount = vts_value importing sap_amount = h_price exceptions others = 1.
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 MMWE0F01 or its description.