PPH_COMPARE_MRP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to compare the results of the classic MRP run with the results of the MRP Live run...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter PPH_COMPARE_MRP 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.
Selection Text: IN_RESLO = RESLO
Selection Text: IN_PSPEL = PSPEL
Selection Text: IN_PRURG = PRIO_URG
Selection Text: IN_PRREQ = PRIO_REQ
Selection Text: IN_PLUMI = PLUMI
Selection Text: IN_PLIFZ = PLIFZ
Selection Text: IN_PALTR = PALTR
Selection Text: IN_MONKZ = MONKZ
Selection Text: IN_MNG03 = MNG03
Selection Text: IN_MNG02 = MNG02
Selection Text: IN_MDMNG = MDMNG
Selection Text: IN_LIFNR = LIFNR
Selection Text: IN_LGORT = LGORT
Selection Text: IN_KZVBR = KZVBR
Selection Text: IN_KZBWS = KZBWS
Selection Text: IN_KNTTP = KNTTP
Selection Text: IN_KDPOS = KDPOS
Selection Text: IN_KDAUF = KDAUF
Selection Text: IN_KAPFX = KAPFX
Selection Text: IN_GLMNG = GLMNG
Selection Text: IN_FIX02 = FIX02
Selection Text: IN_FIX01 = FIX01
Selection Text: IN_EMATN = EMATN
Selection Text: IN_EKORG = EKORG
Selection Text: IN_EDGNO = EDGNO
Selection Text: IN_EBELP = EBELP
Selection Text: IN_EBELN = EBELN
Selection Text: IN_DELPS = DELPS
Selection Text: IN_DELNR = DELNR
Selection Text: IN_DELET = DELET
Selection Text: IN_DBSKZ = DBSKZ
Selection Text: IN_DAT03 = DAT03
Selection Text: IN_DAT02 = DAT02
Selection Text: IN_DAT01 = DAT01
Selection Text: IN_CUOBJ = CUOBJ
Selection Text: P_WERKS = D .
Selection Text: P_V02 = MRP Live Version V02
Selection Text: P_V01 = MRP Live Version V01
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-005 * DIAGNOSE_OBJECT = ' ' text_question = text-004 * TEXT_BUTTON_1 = 'Ja'(001) * ICON_BUTTON_1 = ' ' * TEXT_BUTTON_2 = 'Nein'(002) * ICON_BUTTON_2 = ' ' default_button = '2' * DISPLAY_CANCEL_BUTTON = 'X' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * POPUP_TYPE = * IV_QUICKINFO_BUTTON_1 = ' ' * IV_QUICKINFO_BUTTON_2 = ' ' IMPORTING answer = l_answer * TABLES * PARAMETER = * EXCEPTIONS * TEXT_NOT_FOUND = 1 * OTHERS = 2 .
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = con_repid i_callback_pf_status_set = con_pf_status_set_main i_callback_user_command = con_user_command_main it_fieldcat = lt_fieldcat TABLES t_outtab =
EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * i_interface_check = 'X' "JR --> nur zu Testzwecken i_callback_program = con_repid i_callback_pf_status_set = con_pf_status_set_main i_callback_user_command = con_user_command_main i_grid_title = l_grid_title is_layout = ls_layout it_fieldcat = lt_fieldcat TABLES t_outtab =
EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * i_interface_check = 'X' "JR --> nur zu Testzwecken i_structure_name = lv_structure_name i_grid_title = l_grid_title is_layout = ls_layout it_fieldcat = lt_fieldcat TABLES t_outtab =
EXCEPTIONS program_error = 1 OTHERS = 2.
POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING * NO_VALUE_CHECK = ' ' popup_title = text-008 * START_COLUMN = '5' * START_ROW = '5' * IMPORTING * RETURNCODE = TABLES fields = lt_fields * EXCEPTIONS * ERROR_IN_FIELDS = 1 * OTHERS = 2 .
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * i_interface_check = 'X' "JR --> nur zu Testzwecken i_grid_title = text-s08 "'Statistics'.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = con_tab-pph_mrp_alv_except_cnt_compare CHANGING ct_fieldcat = lt_fieldcat.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * i_interface_check = 'X' "JR --> nur zu Testzwecken * i_structure_name = 'PPH_MRP_ALV_EXCEPT_CNT_COMPARE' i_grid_title = text-s09 "'Materials compared' is_layout = ls_layout it_fieldcat = lt_fieldcat TABLES t_outtab = lt_mrp_alv EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = con_tab-pph_mrp_result CHANGING ct_fieldcat = lt_fieldcat.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * i_interface_check = 'X' "JR --> nur zu Testzwecken * I_CALLBACK_PROGRAM = g_repid * i_structure_name = 'PPH_MRP_RESULT' i_grid_title = text-s10 "'Materials not compared (not planned in HANA)' is_layout = ls_layout it_fieldcat = lt_fieldcat TABLES t_outtab = lt_hana_check_result EXCEPTIONS program_error = 1 OTHERS = 2.
POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING * NO_VALUE_CHECK = ' ' popup_title = text-016 * START_COLUMN = '5' * START_ROW = '5' * IMPORTING * RETURNCODE = TABLES fields = lt_fields * EXCEPTIONS * ERROR_IN_FIELDS = 1 * OTHERS = 2 .
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * i_interface_check = 'X' "JR --> nur zu Testzwecken i_grid_title = text-017 is_layout = ls_layout it_fieldcat = lt_fieldcat TABLES t_outtab = gt_ctrl_mrp_exc EXCEPTIONS program_error = 1 OTHERS = 2.
DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = con_tab-cm61m all_types = abap_true "to get also structures TABLES dfies_tab = lt_dfies_cm61m EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.
DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = con_tab-mdkp all_types = abap_true "to get also structures TABLES dfies_tab = lt_dfies_mdkp EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.
DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = con_tab-mt61d all_types = abap_true "to get also structures TABLES dfies_tab = lt_dfies_mt61d EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.
DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = con_tab-cm61d all_types = abap_true "to get also structures TABLES dfies_tab = lt_dfies_cm61d EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * i_interface_check = 'X' "JR --> nur zu Testzwecken i_grid_title = text-018 is_layout = ls_layout it_fieldcat = lt_fieldcat TABLES t_outtab = lt_comp EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * i_interface_check = 'X' "JR --> nur zu Testzwecken * i_structure_name = lv_structure_name i_grid_title = text-002 is_layout = ls_layout it_fieldcat = lt_fieldcat TABLES t_outtab = lt_exc_all EXCEPTIONS program_error = 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 PPH_COMPARE_MRP or its description.
PPH_COMPARE_MRP - Compare Result: Classic MRP and MRP Live In HANA PPH_COMPARE_MRP - Compare Result: Classic MRP and MRP Live In HANA PPH_COMPARE_BOM_MRP - Compare BOM Explosion Result: Classic MRP and MRP Live in HANA PPH_COMPARE_BOM_MRP - Compare BOM Explosion Result: Classic MRP and MRP Live in HANA PPH_CMP_MDPS_FIELDS_DISPO_COMP - Include PPH_CMP_MDPS_FIELDS_DISPO_COMP PPH_CMP_MDPS_FIELDS_DISPO - Compare MRP (Single Item, single level)