SAP Reports / Programs | Public Sector Management | Funds Management(PSM-FM) SAP PSM

RFFMRP_MRP_PR SAP ABAP Report - Updating PR's Generated from MRP into FM







RFFMRP_MRP_PR is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Reconstruct the purchase requisitions (PRs) generated from an MRP 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 RFFMRP_MRP_PR into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

FM_MRP_PR - Update MRP PR's to FM


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 RFFMRP_MRP_PR. "Basic submit
SUBMIT RFFMRP_MRP_PR AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMRP_MRP_PR 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: S_WERKS = D .
Selection Text: S_MATNR = D .
Selection Text: S_MATKL = D .
Selection Text: S_FIXKZ = D .
Selection Text: S_DISPO = D .
Selection Text: S_BERID = D .
Selection Text: S_BANFN = D .
Selection Text: S_BADAT = D .
Selection Text: P_TEST = Test Run
Selection Text: P_SKIP = Skip the initial screen
Selection Text: P_REL = Post parked requisition
Selection Text: P_BUKRS = D .
Title: Updating PR's Generated from MRP into FM
Text Symbol: 061 = Execution completed. See the application log.
Text Symbol: 060 = % done
Text Symbol: 042 = Date of Execution :
Text Symbol: 041 = Program Name :
Text Symbol: 040 = Update PR's Created from MRP or Convtd from the Planned Orders to FM
Text Symbol: 036 = Var1
Text Symbol: 035 = Msg No
Text Symbol: 034 = Msg Id
Text Symbol: 033 = Text
Text Symbol: 032 = Msg Typ
Text Symbol: 031 = PR Item
Text Symbol: 030 = PR Number
Text Symbol: 015 = Purchase Requisition can be updated
Text Symbol: 014 = Purchase Requisition is updated
Text Symbol: 013 = Productive Run
Text Symbol: 012 = Test Run
Text Symbol: 011 = Control Parameters
Text Symbol: 010 = Document Selection
Text Symbol: 002 = Company Code:
Text Symbol: 001 = PR's Created by MRP Run


INCLUDES used within this REPORT RFFMRP_MRP_PR

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:

FM_FIKRS_CHECK_ONE_ACTIVE CALL FUNCTION 'FM_FIKRS_CHECK_ONE_ACTIVE' EXPORTING i_bukrs = p_bukrs IMPORTING e_fmakt = g_flg_fm_active e_fikrs = g_fikrs.

FM_LEDGER_CHECK_ACTIVE CALL FUNCTION 'FM_LEDGER_CHECK_ACTIVE' EXPORTING i_fm_area = g_fikrs IMPORTING e_flg_active = g_flg_bl_active.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = c_t_events.

K_WERKS_OF_BUKRS_FIND CALL FUNCTION 'K_WERKS_OF_BUKRS_FIND' EXPORTING bukrs = u_bukrs TABLES itab_001k = c_t001k itab_001w = c_t001w.

FM_ALV_LAYOUT CALL FUNCTION 'FM_ALV_LAYOUT' CHANGING c_f_layout = l_f_layout.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = g_t_list_top_of_page.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = 'EBAN' TABLES x031l_tab = l_t_nametab.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' i_grid_settings = p_l_f_grid_settings is_layout = p_l_f_layout it_fieldcat = p_l_t_fieldcat[] it_sort = p_l_t_sort[] it_events = g_t_events[] TABLES t_outtab = p_g_t_eban.

RWIN_CHECK CALL FUNCTION 'RWIN_CHECK' EXPORTING gjahr = sy-datum+0(4) process = 'BANF' event = 'SEND_FM' TABLES tkomp = u_t_trwin.

RWIN_CHECK CALL FUNCTION 'RWIN_CHECK' EXPORTING gjahr = sy-datum+0(4) process = 'BANF' event = 'CHECKALL' TABLES tkomp = u_t_trwin_k.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

FM_OPEN_ITEM_GET CALL FUNCTION 'FM_OPEN_ITEM_GET' EXPORTING i_flg_delete = con_on.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = l_percentage text = l_temp_mesg.

FM_OPEN_ITEM_GET CALL FUNCTION 'FM_OPEN_ITEM_GET' EXPORTING i_flg_delete = con_on.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 100 text = text-061.

ENQUEUE_EMEBANE CALL FUNCTION 'ENQUEUE_EMEBANE' EXPORTING banfn = c_t_requisitions-banfn bnfpo = c_t_requisitions-bnfpo EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

MBEW_SINGLE_READ CALL FUNCTION 'MBEW_SINGLE_READ' EXPORTING matnr = l_u_t_eban-matnr bwkey = u_t_001w-bwkey bwtar = l_u_t_eban-bwtar IMPORTING wmbew = l_t_mbew.

MR_ACCOUNT_ASSIGNMENT





CALL FUNCTION 'MR_ACCOUNT_ASSIGNMENT' EXPORTING bewertungsklasse = l_t_mbew-bklas bewertung_modif = u_t_001k-bwmod kontenplan = t001-ktopl soll_haben_kennzeichen = 'S' vorgangsschluessel = 'BSX' IMPORTING konto = l_cobl-saknr.

DETERMINE_PERIOD CALL FUNCTION 'DETERMINE_PERIOD' EXPORTING date = l_u_t_eban-badat version = t001-periv IMPORTING period = l_cobl-monat year = l_cobl-gjahr.

ME_ACCOUNT_ASSIGNMENT CALL FUNCTION 'ME_ACCOUNT_ASSIGNMENT' EXPORTING i_matnr = l_u_t_eban-matnr i_werks = l_u_t_eban-werks i_bwtar = l_u_t_eban-bwtar i_sobkz = l_u_t_eban-sobkz i_vbeln = l_u_t_ebkn-vbeln i_vbelp = l_u_t_ebkn-vbelp i_ps_psp_pnr = l_u_t_ebkn-ps_psp_pnr i_kzbws = l_u_t_eban-kzbws i_knttp = l_u_t_eban-knttp i_matkl = l_u_t_eban-matkl IMPORTING e_sakto = l_cobl-saknr.

DETERMINE_PERIOD CALL FUNCTION 'DETERMINE_PERIOD' EXPORTING date = l_u_t_eban-badat version = t001-periv IMPORTING period = l_cobl-monat year = l_cobl-gjahr.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS i_message = 1 w_message = 2 e_message = 3 a_message = 4 OTHERS = 8.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_mesg.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

ME_STATISTICS_EBAN_RKO CALL FUNCTION 'ME_STATISTICS_EBAN_RKO' EXPORTING i_refresh = g_flg_refresh i_avc_pruefen = con_on i_component = space i_first_call = con_on i_co_set_date = con_on TABLES t_eban = l_t_eban_fin t_ebkn = l_t_ebkn_fin.

FM_OPEN_ITEM_GET CALL FUNCTION 'FM_OPEN_ITEM_GET' EXPORTING i_flg_delete = con_on.

FM_ALV_LAYOUT CALL FUNCTION 'FM_ALV_LAYOUT' CHANGING c_f_layout = l_f_layout.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING is_layout = l_f_layout it_fieldcat = l_t_fieldcat1 i_callback_program = g_repid it_events = g_t_events[] TABLES t_outtab = u_t_excluded.

MBEW_SINGLE_READ CALL FUNCTION 'MBEW_SINGLE_READ' EXPORTING matnr = l_t_eban-matnr bwkey = g_t_001w-bwkey bwtar = l_t_eban-bwtar IMPORTING wmbew = l_t_mbew.

MR_ACCOUNT_ASSIGNMENT CALL FUNCTION 'MR_ACCOUNT_ASSIGNMENT' EXPORTING bewertungsklasse = l_t_mbew-bklas bewertung_modif = g_t_001k-bwmod kontenplan = t001-ktopl soll_haben_kennzeichen = 'S' vorgangsschluessel = 'BSX' IMPORTING konto = l_t_ebkn-sakto.

FMFG_MM_REQ_CHANGE CALL FUNCTION 'FMFG_MM_REQ_CHANGE' EXPORTING im_banfn = c_t_eban-banfn im_testrun = p_test im_release_park = p_rel TABLES return = l_t_error im_mereq_item = l_t_eban im_mereq_itemx = l_t_ebanx im_acct = l_t_ebkn im_acctx = l_t_ebknx. "Note 917256

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = l_s_log IMPORTING e_log_handle = l_log_handle.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = l_log_handle i_s_msg = l_s_msg.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = l_t_disp_prof i_s_log_filter = l_t_log_filter.



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