OEMOEM_ROUTINE 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 OEMOEM_ROUTINE 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: Include OEMOEM_ROUTINE
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-repid dynumb = sy-dynnr translate_to_upper = 'X' TABLES dynpfields = lt_user_sel_fields EXCEPTIONS OTHERS.
DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-repid dynumb = sy-dynnr translate_to_upper = 'X' TABLES dynpfields = lt_user_sel_fields EXCEPTIONS OTHERS.
HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING selectfield = lv_selectfield use_user_selections = ' ' IMPORTING ind = lv_ind TABLES fields = lt_fields full_table = lt_full_table user_sel_fields = lt_user_sel_fields EXCEPTIONS OTHERS = 1.
DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = lt_user_sel_fields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 OTHERS = 8.
DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-repid dynumb = sy-dynnr translate_to_upper = 'X' TABLES dynpfields = lt_user_sel_fields EXCEPTIONS OTHERS.
DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-repid dynumb = sy-dynnr translate_to_upper = 'X' TABLES dynpfields = lt_user_sel_fields EXCEPTIONS OTHERS.
HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING selectfield = lv_selectfield use_user_selections = ' ' IMPORTING ind = lv_ind TABLES fields = lt_fields full_table = lt_full_table user_sel_fields = lt_user_sel_fields EXCEPTIONS OTHERS = 1.
DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = lt_user_sel_fields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 OTHERS = 8.
MD_READ_PLANT CALL FUNCTION 'MD_READ_PLANT' EXPORTING ewerks = p_lv_werk ecm61x = p_ls_cm61x IMPORTING icm61w = p_ls_cm61w it399d = p_ls_t399d EXCEPTIONS error = 1 OTHERS = 2.
SMI_MASTERIDOC_CREATE_PROACT CALL FUNCTION 'SMI_MASTERIDOC_CREATE_PROACT' "#EC DOM_EQUAL EXPORTING pi_supplier = lv_supplier pi_logsys = p_logsys pi_plant = p_lv_werk * pi_mat_source = lt_mat_source pi_articles = lt_product * 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_demand_items = lt_proact * pi_weref_tab = lt_weref_tab[] pi_docnum = lv_idoc_temp_id * pi_utc = lv_utc * pi_konsi_flag = lv_nurks pi_eigen_flag = lv_self * pi_koneig_flag = lv_kself pi_null_flag = p_lv_zoqty pi_labst_flag = p_lv_labst pi_insme_flag = p_lv_insme pi_speme_flag = p_lv_speme pi_processid = gc_processid_oem 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_MASTERIDOC_CREATE_PROACT CALL FUNCTION 'SMI_MASTERIDOC_CREATE_PROACT' "#EC DOM_EQUAL EXPORTING pi_supplier = lv_supplier pi_logsys = p_logsys pi_plant = p_lv_werk pi_mat_source = lt_mat_source pi_articles = lt_product * 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_demand_items = lt_proact * pi_weref_tab = lt_weref_tab[] pi_docnum = lv_idoc_temp_id * pi_utc = lv_utc * pi_konsi_flag = lv_nurks pi_eigen_flag = lv_self * pi_koneig_flag = lv_kself pi_null_flag = p_lv_zoqty pi_labst_flag = p_lv_labst pi_insme_flag = p_lv_insme pi_speme_flag = p_lv_speme pi_processid = gc_processid_oem 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.
MC_PG_STRUKTUR CALL FUNCTION 'MC_PG_STRUKTUR' "#EC ARGCHECKED EXPORTING iprgrp = p_lv_prgrp iwerks = p_lv_werk TABLES ipgmit = lt_pgmitx EXCEPTIONS pg_or_material_not_found = 1 unit_conversion_not_possible = 2 OTHERS = 3.
CALL FUNCTION 'MD_READ_MATERIAL_SIMPLE' EXPORTING ewerks = p_lv_werk ematnr = p_lt_mdmwx-matnr eberid = p_lt_mdmwx-berid ekzrfb = xflag CHANGING cmt61d = ls_mt61d ccm61b = ls_cm61b EXCEPTIONS material_mrp_area_not_found = 1 missing_parameter = 2 material_plant_not_found = 3 material_mrp_area_deleted = 4 OTHERS = 5.
AUFBAUEN_MDPSX_ANZEIGEN CALL FUNCTION 'AUFBAUEN_MDPSX_ANZEIGEN' EXPORTING ecm61w = p_ls_cm61w ecm61x = p_ls_cm61x emt61d = ls_mt61d et399d = p_ls_t399d ecm61b = ls_cm61b esfilt = ls_filt IMPORTING icm61m = ls_cm61m imdkp = ls_mdkp imdsta = ls_mdsta TABLES mdpsx = lt_mdpsx EXCEPTIONS error = 1 OTHERS = 2.
MDEZX_AUFBAUEN CALL FUNCTION 'MDEZX_AUFBAUEN' EXPORTING ecm61m = ls_cm61m emdkp = ls_mdkp emasel = ls_masel ecm61b = ls_cm61b emt61d = ls_mt61d IMPORTING imdkp = ls_mdkp imasel = ls_masel TABLES mdezx = lt_mdezx mdpsx = lt_mdpsx.
LFA1_SINGLE_READ CALL FUNCTION 'LFA1_SINGLE_READ' EXPORTING lfa1_lifnr = ll_lifnr EXCEPTIONS not_found = 1 OTHERS = 2.
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 OEMOEM_ROUTINE or its description.