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

RFFMRP02N SAP ABAP Report - Reconstruction of Purchase Orders in FM







RFFMRP02N is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Reconstruction of Purchase Orders in Funds Management In the production run, the RFFMRP02N program reconstructs FM commitments for purchase orders which were not updated or deleted...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 RFFMRP02N 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

FMN4N - Reconstruction of Purchase Orders


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 RFFMRP02N. "Basic submit
SUBMIT RFFMRP02N AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMRP02N 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_EKPONR = D .
Selection Text: S_BEDAT = D .
Selection Text: P_TEST = D .
Selection Text: P_PERIOD = D .
Selection Text: P_FMDATE = D .
Selection Text: P_ENQ = D .
Selection Text: P_BUKRS = D .
Selection Text: P_BL = D .
Selection Text: P_BDDATE = D .
Selection Text: P_AVC = D .
Title: Reconstruction of Purchase Orders in FM
Text Symbol: 620 = Doc.no. |Pos. |AccAs|Ld|AmTp|Year
Text Symbol: 612 = Message text
Text Symbol: 611 = Type Appl. area Msgno
Text Symbol: 610 = Doc.no.
Text Symbol: 550 = Business area
Text Symbol: 540 = Cash year
Text Symbol: 530 = Carryforward level
Text Symbol: 520 = Customer
Text Symbol: 510 = Customer field
Text Symbol: 500 = Statistical ID
Text Symbol: 490 = Invoiced quantity
Text Symbol: 480 = Open quantity
Text Symbol: 474 = Budgetary Ledger Document Date
Text Symbol: 473 = Predecessor log. system
Text Symbol: 472 = Predecessor procedure
Text Symbol: 630 = Curr.
Text Symbol: 640 = Excluded documents from the reconciliation:
Text Symbol: 650 = Documents with inconsistencies:
Text Symbol: 660 = Log for the Reconstruction of Purchase Orders in FM
Text Symbol: 670 = Company code
Text Symbol: 680 = Document number
Text Symbol: 695 = Purchase order date
Text Symbol: 700 = FM posting date
Text Symbol: 710 = Period
Text Symbol: 720 = Document date
Text Symbol: 730 = Test run
Text Symbol: 740 = Check / Update Assigned Budget





Text Symbol: 750 = Create Budgetary Ledger Docs
Text Symbol: 760 = FM760: Inconsistency in:
Text Symbol: 770 = is not displayed. Search for OSS Note.
Text Symbol: 780 = Budget Period
Text Symbol: 001 = Reconciliation of Purchase Orders in FM
Text Symbol: 010 = Document selection
Text Symbol: 020 = Processing options
Text Symbol: 040 = Update dates recorded in Funds Management
Text Symbol: 100 = document(s) with error messages
Text Symbol: 101 = (Goto -> Application log)
Text Symbol: 110 = corrected document(s)
Text Symbol: 120 = analyzed document(s)
Text Symbol: 130 = for company code
Text Symbol: 190 = Corrected field
Text Symbol: 191 = BusA
Text Symbol: 200 = Old value
Text Symbol: 210 = New value
Text Symbol: 220 = Correction in FMAC
Text Symbol: 250 = Test run
Text Symbol: 260 = Productive run
Text Symbol: 280 = Document blocked by user:
Text Symbol: 281 = PO header data were not found in table EKKO
Text Symbol: 282 = PO line items were not found in table EKPO
Text Symbol: 283 = Delivery schedule line items not found in EKET
Text Symbol: 284 = Account assignment lines not found in EKKN
Text Symbol: 300 = Missing record
Text Symbol: 310 = Amount in trans. curr.
Text Symbol: 320 = Amount in FM area curr.
Text Symbol: 330 = Commitment item
Text Symbol: 340 = Funds center
Text Symbol: 350 = Fund
Text Symbol: 360 = Functional area
Text Symbol: 370 = G/L account
Text Symbol: 380 = Object number
Text Symbol: 390 = Funded program
Text Symbol: 400 = Grant
Text Symbol: 410 = Text
Text Symbol: 420 = Completion indicator
Text Symbol: 430 = Deletion indicator





Text Symbol: 440 = Vendor
Text Symbol: 450 = Predecessor doc.cat.
Text Symbol: 460 = Pred.doc.no.
Text Symbol: 461 = Predec. organization
Text Symbol: 470 = Pred doc.item
Text Symbol: 471 = Pred. acct asst


INCLUDES used within this REPORT RFFMRP02N

FMREQUAT,
SBAL_CONSTANTS.


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:

FMFK_GET_FIKRS_FROM_BUKRS CALL FUNCTION 'FMFK_GET_FIKRS_FROM_BUKRS' EXPORTING i_bukrs = p_bukrs IMPORTING e_fikrs = g_f_control_data-fikrs.

FM_GET_VALID_PERIOD_FROM_DATE CALL FUNCTION 'FM_GET_VALID_PERIOD_FROM_DATE' EXPORTING i_fm_area = g_f_control_data-fikrs i_date = p_fmdate i_old_period = p_period IMPORTING e_new_period = p_period.

FM_CHECK_SPECIAL_PERIOD CALL FUNCTION 'FM_CHECK_SPECIAL_PERIOD' EXPORTING i_fm_area = g_f_control_data-fikrs i_fm_update_date = p_fmdate i_fm_period = p_period.

FMCA_GET_INIT_INFO CALL FUNCTION 'FMCA_GET_INIT_INFO' EXPORTING i_bukrs = p_bukrs i_fikrs = g_f_control_data-fikrs CHANGING c_f_control_data = g_f_control_data.

EXIT_SAPLFMFA_004 CALL FUNCTION 'EXIT_SAPLFMFA_004' IMPORTING e_flg_display_panel = g_flg_display_panel.

FM_LEDGER_CHECK_ACTIVE CALL FUNCTION 'FM_LEDGER_CHECK_ACTIVE' EXPORTING i_fm_area = g_f_control_data-fikrs IMPORTING e_flg_active = g_flg_bl_active.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

ENQUEUE_EMEKKOE CALL FUNCTION 'ENQUEUE_EMEKKOE' EXPORTING ebeln = l_f_orders-ebeln EXCEPTIONS foreign_lock = 01 system_failure = 02.

ME_STATISTICS_RKO CALL FUNCTION 'ME_STATISTICS_RKO' "#EC * EXPORTING i_ekko = g_t_ekko i_appl_refresh = l_applc i_avc_pruefen = p_avc TABLES t_ekbe = g_t_ekbe t_ekbes = g_t_ekbes t_ekbnk = g_t_ekbnk t_ekbz = g_t_ekbz t_eket = g_t_eket t_ekkn = g_t_ekkn t_ekpo = g_t_bekpo t_komv = g_t_komv t_ekbe_ma = g_t_ekbe_ma t_ekbz_ma = g_t_ekbz_ma EXCEPTIONS OTHERS = 1.

FM_OPEN_ITEM_GET CALL FUNCTION 'FM_OPEN_ITEM_GET' TABLES t_fmioi = g_t_fmioi_new t_fmioi_chg = g_t_fmioi_chg t_fmioi_old = g_t_fmioi_old t_fmioi_del = g_t_fmioi_del.

FM_OPEN_ITEM_INIT CALL FUNCTION 'FM_OPEN_ITEM_INIT'.

RWIN_CHECK CALL FUNCTION 'RWIN_CHECK' EXPORTING gjahr = g_gjahr process = 'AVC ' event = 'PRUEFEN' TABLES tkomp = trwin EXCEPTIONS OTHERS = 0.

FM_OPEN_ITEM_NUMBER CALL FUNCTION 'FM_OPEN_ITEM_NUMBER' EXCEPTIONS number_missing = 1 OTHERS = 2.

FM_OPEN_ITEM_INIT CALL FUNCTION 'FM_OPEN_ITEM_INIT'.

FM_OPEN_ITEM_INIT



CALL FUNCTION 'FM_OPEN_ITEM_INIT'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

FM_OPEN_ITEM_INIT CALL FUNCTION 'FM_OPEN_ITEM_INIT'.

MEDCMM_CREATE_REVISION_MANAGER CALL FUNCTION 'MEDCMM_CREATE_REVISION_MANAGER' EXPORTING im_bstyp = g_t_ekko-bstyp im_bsart = g_t_ekko-bsart im_ekorg = g_t_ekko-ekorg im_edokn = g_t_ekko-ebeln im_persistent = con_on im_activity = con_aktyp im_version = g_t_ekko-revno IMPORTING ex_instance = l_mgr EXCEPTIONS OTHERS = 2.

FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING i_fikrs = u_fikrs i_actvt = fmau_ac_ini i_msgty = 'E'.

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

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_mesg.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

FMFK_BUKRS_CHECK_FMAKTIV CALL FUNCTION 'FMFK_BUKRS_CHECK_FMAKTIV' EXPORTING ip_bukrs = g_t_ekpo-bukrs ip_applc = applc_ca IMPORTING op_is_active = l_flg_fmactive EXCEPTIONS no_fikrs_for_bukrs = 01 wrong_input_flag = 02.

RV_KONV_SELECT CALL FUNCTION 'RV_KONV_SELECT' EXPORTING comm_head_i = komk TABLES tkomv = g_t_komv.

ME_READ_HISTORY CALL FUNCTION 'ME_READ_HISTORY' EXPORTING ebeln = g_t_ekko-ebeln ebelp = g_t_ekpo-ebelp webre = space vrtkz = g_t_ekpo-vrtkz "N. 1488101

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'FM_GET_PREDELIVERY_ACTIVATION' EXCEPTIONS function_not_exist = 1 OTHERS = 2.

FM_GET_PREDELIVERY_ACTIVATION CALL FUNCTION 'FM_GET_PREDELIVERY_ACTIVATION' EXPORTING i_predelivery = con_po_protect CHANGING c_active = s_flg_po_protect.

FMCA_GET_INIT_INFO CALL FUNCTION 'FMCA_GET_INIT_INFO' EXPORTING i_bukrs = p_bukrs CHANGING c_f_control_data = g_f_control_data.

FMCA_GET_INIT_INFO CALL FUNCTION 'FMCA_GET_INIT_INFO' EXPORTING i_bukrs = p_bukrs CHANGING c_f_control_data = g_f_control_data.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_pf_status_set = 'PF_STATUS_SET' i_callback_program = g_repid i_callback_user_command = 'USER_COMMAND' it_fieldcat = l_t_fieldcat_alv it_events = gt_events[] is_variant = gs_variant i_save = g_save TABLES t_outtab = u_t_all_records EXCEPTIONS program_error = 1 OTHERS = 2.

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

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.

FM_UPDATE_DATE_VALUES CALL FUNCTION 'FM_UPDATE_DATE_VALUES' EXPORTING i_mass_process = con_on i_fm_update_date = p_fmdate i_fm_update_period = p_period i_fm_doc_date = p_bddate.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = l_f_log IMPORTING e_log_handle = c_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.

BAL_GLB_MSG_DEFAULTS_SET CALL FUNCTION 'BAL_GLB_MSG_DEFAULTS_SET' EXPORTING i_s_msg_defaults = l_f_message_defaults EXCEPTIONS OTHERS = 0.

BAL_GLB_MSG_DEFAULTS_GET CALL FUNCTION 'BAL_GLB_MSG_DEFAULTS_GET' IMPORTING e_s_msg_defaults = l_f_mdef EXCEPTIONS OTHERS = 0.

BAL_GLB_MSG_DEFAULTS_SET CALL FUNCTION 'BAL_GLB_MSG_DEFAULTS_SET' EXPORTING i_s_msg_defaults = l_f_mdef EXCEPTIONS OTHERS = 0.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = l_f_display_profile i_t_log_handle = l_t_log_handle EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = l_f_msg EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

FM_OPEN_ITEM_READ CALL FUNCTION 'FM_OPEN_ITEM_READ' EXPORTING i_refbn = l_refbn i_refbt = l_refbt i_rforg = l_rforg i_rftyp = l_rftyp i_rfsys = l_rfsys TABLES t_fmioi = c_t_fmioi_old.



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