PRT_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 PRT_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.
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 = gv_werk ecm61x = gs_cm61x IMPORTING icm61w = gs_cm61w it399d = gs_t399d EXCEPTIONS error = 1 OTHERS = 2.
MC_PG_STRUKTUR CALL FUNCTION 'MC_PG_STRUKTUR' "#EC ARGCHECKED EXPORTING iprgrp = gv_prgrp iwerks = gv_werk TABLES ipgmit = gt_pgmitx EXCEPTIONS pg_or_material_not_found = 1 unit_conversion_not_possible = 2 OTHERS = 3.
MD_READ_MATERIAL_SIMPLE CALL FUNCTION 'MD_READ_MATERIAL_SIMPLE' EXPORTING ewerks = gv_werk ematnr = gt_mdmwx-matnr eberid = gt_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.
BAPI_MATERIAL_STOCK_REQ_LIST CALL FUNCTION 'BAPI_MATERIAL_STOCK_REQ_LIST' EXPORTING material = gt_mdmwx-matnr plant = gt_mdmwx-werks * MRP_AREA = * PLAN_SCENARIO = * SELECTION_RULE = * DISPLAY_FILTER = * PERIOD_INDICATOR = * GET_ITEM_DETAILS = * GET_IND_LINES = 'X' * GET_TOTAL_LINES = * IGNORE_BUFFER = * MATERIAL_EVG = * IMPORTING * MRgIST = * MRP_CONTROL_PARAM = * MRP_STOCK_DETAIL = * RETURN = TABLES mrp_items = lt_mrpit mrp_ind_lines = lt_mrpil mrp_total_lines = lt_mrptl * EXTENSIONOUT = .
AUFBAUEN_MDPSX_ANZEIGEN CALL FUNCTION 'AUFBAUEN_MDPSX_ANZEIGEN' EXPORTING ecm61w = gs_cm61w ecm61x = gs_cm61x emt61d = ls_mt61d et399d = gs_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 = lv_lfnr2 EXCEPTIONS not_found = 1 OTHERS = 2.
ROUND CALL FUNCTION 'ROUND' EXPORTING decimals = ls_t006-andec input = l_menge sign = '+' "rounding up IMPORTING output = l_menge EXCEPTIONS input_invalid = 01 overflow = 02 type_invalid = 03.
MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' "#EC * EXPORTING matnr = gt_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 = ls_eord-lifnr IMPORTING po_name1 = lv_name1 EXCEPTIONS no_records_found = 1 internal_error = 2 OTHERS = 3.
CALL FUNCTION 'ME_EKPO_SINGLE_READ' EXPORTING pi_ebeln = ls_eord-ebeln pi_ebelp = ls_eord-ebelp IMPORTING po_ekpo = ls_ekpo EXCEPTIONS no_records_found = 1 OTHERS = 2.
MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' "#EC * EXPORTING matnr = gt_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 = ls_eord-lifnr IMPORTING po_name1 = lv_name1 EXCEPTIONS no_records_found = 1 internal_error = 2 OTHERS = 3.
ME_EKPO_SINGLE_READ CALL FUNCTION 'ME_EKPO_SINGLE_READ' EXPORTING pi_ebeln = ls_eord-ebeln pi_ebelp = ls_eord-ebelp IMPORTING po_ekpo = ls_ekpo EXCEPTIONS no_records_found = 1 OTHERS = 2.
ICH_BIF_PROACT_OUT CALL FUNCTION 'ICH_BIF_PROACT_OUT' EXPORTING is_proact =
IMPORTING et_return = lt_return EXCEPTIONS structure_validation_error = 1 outbound_communication_error = 2 master_data_error = 3 OTHERS = 4.
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 PRT_ROUTINE or its description.