SAP Reports / Programs

PPH_COMPARE_MRP SAP ABAP Report - Compare Result: Classic MRP and MRP Live In HANA







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


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


Text pool values


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





Selection Text: P_TECSET = Show Field Options
Selection Text: P_STRGR = D .
Selection Text: P_SOBSL = D .
Selection Text: P_ROWS = List Missing Rows
Selection Text: P_PLMOD = D .
Selection Text: P_NOPACK = No Package Execution
Selection Text: P_NONAGG = Read Non-Aggregated from HDB
Selection Text: P_NAME = D .
Selection Text: P_MATNR = D .
Selection Text: P_LABEL = D .
Selection Text: P_DISPO = D .
Selection Text: P_DISPD = D .
Selection Text: P_DISMM = D .
Selection Text: P_DISLS = D .
Selection Text: P_CWO = D .
Selection Text: P_BESKZ = D .
Selection Text: IN_ZUVKZ = ZUVKZ
Selection Text: IN_WRK02 = WRK02
Selection Text: IN_WRK01 = WRK01
Selection Text: IN_WEBAZ = WEBAZ
Selection Text: IN_WAMNG = WAMNG
Selection Text: IN_VSTAT = VSTAT
Selection Text: IN_VRPLA = VRPLA
Selection Text: IN_VRFKZ = VRFKZ
Selection Text: IN_VPZUO = VPZUO
Selection Text: IN_VERVP = VERVP
Selection Text: IN_VERTO = VERTO
Selection Text: IN_VERID = VERID
Selection Text: IN_TECHS = TECHS
Selection Text: IN_SOBKZ = SOBKZ
Selection Text: IN_SOBES = SOBES
Selection Text: IN_SERNR = SERNR
Selection Text: IN_BESKZ = BESKZ
Selection Text: IN_BERTY = BERTY
Selection Text: IN_BAART = BAART
Selection Text: IN_AUFNR = AUFNR
Selection Text: IN_ARSPS = ARSPS
Selection Text: IN_ARSNR = ARSNR
Title: Compare Result: Classic MRP and MRP Live In HANA





Text Symbol: 018 = MRP Live Control Parameters Field List
Text Symbol: 021 = Initial MRP Situation of MRP Live
Text Symbol: 022 = Initial MRP Situation of Classic MRP
Text Symbol: F01 = Reservation with MRP Distribution Key exists. MRP Live does not support MRP Distribution Key.
Text Symbol: F04 = MRP Live only supports subcontracting using explicit MRP areas
Text Symbol: F05 = Dynamic subcontracting planning segments (PLAAB = '30') exist
Text Symbol: F06 = MRP Live only supports deletion of purchase requisitions and planned orders
Text Symbol: F07 = MRP Live only supports creation of purchase requisitons and planned orders
Text Symbol: F08 = Material with safety stock: MRP Live creates individual lot for safety stock, classic MRP adds safety stock to first lot
Text Symbol: F09 = Exceptions exist in elements for deletion
Text Symbol: F12 = Reorder point planning: MRP Live creates individual lot for reorder point, classic MRP adds reorder point to first lot
Text Symbol: F13 = Periodic lot-sizing with no. of periods > 1: Periods may be deferred
Text Symbol: F14 = Stock transfer demands in plant resulting from corresponding MRP area are simultaneously planned in MRP Live
Text Symbol: F15 = Totals of Quantities in CDB and HDB are equal for MATNR, WERKS
Text Symbol: S01 = Number of Material/Plant Combinations
Text Symbol: S02 = …Thereof Number of Material/Plant Combinations Compared (MRP Live Possible)
Text Symbol: 017 = Comparison result of MRP Control Parameters
Text Symbol: 016 = Specify data
Text Symbol: 015 = MRP Control Parameters used by MRP Live
Text Symbol: 014 = MRP Elements to be Deleted by MRP Live
Text Symbol: 013 = MRP Elements to be Deleted by Classic MRP
Text Symbol: 012 = New MRP Elements of MRP Live
Text Symbol: 011 = New MRP Elements of Classic MRP
Text Symbol: 010 = Row to read MRP Live result for comparison
Text Symbol: 009 = Row to read Classic MRP result for comparison
Text Symbol: 008 = Specify lines to be compared
Text Symbol: 007 = Comparison Result of MRP Elements to be Deleted
Text Symbol: 006 = Comparison Result of MRP Elements to be Created
Text Symbol: 005 = Restriction for Data Selection Missing
Text Symbol: 004 = All materials will be processed. Do you want to continue?
Text Symbol: 002 = Comparison Result of all Missing MRP Elements
Text Symbol: 001 = Performance
Text Symbol: T09 = MRP Options
Text Symbol: T08 = Exclude Fields from Comparison of Items to be Inserted
Text Symbol: T07 = Keyword
Text Symbol: T05 = Options for Classic MRP
Text Symbol: T03 = Options for Comparison Result
Text Symbol: T02 = Options for MRP Live
Text Symbol: T01 = Selection



Text Symbol: S27 = Starttime
Text Symbol: S26 = ...Strategy Group
Text Symbol: S25 = ...Special Procurement
Text Symbol: S24 = ...Lot Size
Text Symbol: S23 = ...MRP Type
Text Symbol: S22 = …Thereof Number of Material/Plant Combinations with Exceptions in Control Parameters
Text Symbol: S21 = ...Version
Text Symbol: S20 = Range Defined
Text Symbol: S19 = ...Procurement Type
Text Symbol: S18 = ...MRPController
Text Symbol: S17 = ...Plant
Text Symbol: S16 = ...Material
Text Symbol: S15 = ...Planning Mode
Text Symbol: S14 = ...Planning Date
Text Symbol: S13 = …Thereof Number of Exceptions of Elements for Deletion
Text Symbol: S12 = …Thereof Number of Exceptions of Elements for Insertion
Text Symbol: S11 = …Thereof Number of Material/Plant Combinations with Exceptions
Text Symbol: S10 = Messages from MRP Live
Text Symbol: S09 = Materials Compared
Text Symbol: S08 = Statistics
Text Symbol: S07 = Performance MRP Live in HANA
Text Symbol: S06 = Performance Classic MRP
Text Symbol: S05 = Number of Exceptions
Text Symbol: S04 = Number of Elements to be Deleted by MRP
Text Symbol: S03 = Number of Elements to be Inserted by MRP


INCLUDES used within this REPORT PPH_COMPARE_MRP

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:

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.



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