SAP Reports / Programs | Supply Chain Management | SCM Basis(SCM-BAS) SAP SCM

OEMPRF01 SAP ABAP INCLUDE - documentation and ABAP source code







OEMPRF01 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 OEMPRF01 into the relevant SAP transactions such as SE38 or SE80


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 OEMPRF01. "Basic submit
SUBMIT OEMPRF01 AND RETURN. "Return to original report after report execution complete
SUBMIT OEMPRF01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT OEMPRF01

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:

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.

MD_READ_MATERIAL_SIMPLE * CALL FUNCTION 'MD_READ_MATERIAL_SIMPLE' * EXPORTING * ewerks = lv_werk * ematnr = p_lt_matso-matnr * eberid = p_lt_matso-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 = p_ls_filt * IMPORTING * icm61m = ls_cm61m * imdkp = ls_mdkp * imdsta = ls_mdsta * TABLES * mdpsx = lt_mdpsx * 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 = logsys pi_plant = 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_labst_flag = lv_labst pi_insme_flag = lv_insme pi_speme_flag = 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.

SMI_MASTERIDOC_CREATE_PROACT CALL FUNCTION 'SMI_MASTERIDOC_CREATE_PROACT' "#EC DOM_EQUAL EXPORTING pi_supplier = lv_supplier pi_logsys = logsys pi_plant = 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_labst_flag = lv_labst pi_insme_flag = lv_insme pi_speme_flag = 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.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-repid dynumb = sy-dynnr translate_to_upper = 'X' TABLES dynpfields = l_user_sel_fields EXCEPTIONS OTHERS.

HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING selectfield = l_selectfield use_user_selections = ' ' IMPORTING ind = l_ind TABLES fields = l_fields full_table = l_full_table user_sel_fields = l_user_sel_fields EXCEPTIONS OTHERS = 1.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = l_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.

MC_PG_STRUKTUR CALL FUNCTION 'MC_PG_STRUKTUR' EXPORTING iprgrp = p_lv_prgrp iwerks = p_lv_werk TABLES ipgmit = lt_pgmitx EXCEPTIONS EXCEPTIONS pg_or_material_not_found = 1 unit_conversion_not_possible = 2 OTHERS = 3.



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