SAP Reports / Programs

RFFMRP07N SAP ABAP Report - Reconstruction of Sales Orders in Funds Management







RFFMRP07N is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Reconstruction of Sales Orders in Funds Management (FM) During a production run, program RFFMRP07N reconstructs FM commitments for sales orders that were not properly 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 RFFMRP07N 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

FMNSDN - Reconstruction of Sales 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 RFFMRP07N. "Basic submit
SUBMIT RFFMRP07N AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMRP07N 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: P_ACC_AS = Derive New Account Assignment
Selection Text: P_AVC = D .
Selection Text: P_BDDATE = D .
Selection Text: P_BL = D .
Selection Text: P_BUKRS = D .
Selection Text: P_ENQ = D .
Selection Text: P_FMDATE = D .
Selection Text: P_PERIOD = D .
Selection Text: P_TEST = D .
Selection Text: S_AUD = D .
Selection Text: S_ERD = D .
Selection Text: S_KUN = D .
Selection Text: S_ORD = D .
Title: Reconstruction of Sales Orders in Funds Management
Text Symbol: 490 = Invoiced quantity
Text Symbol: 500 = Statistical ID
Text Symbol: 510 = Customer field
Text Symbol: 520 = Customer
Text Symbol: 530 = Carryforward level
Text Symbol: 540 = Cash year
Text Symbol: 550 = Business Area
Text Symbol: 610 = Doc.no.
Text Symbol: 611 = Type Appl. area Msgno
Text Symbol: 612 = Message text
Text Symbol: 620 = Doc.no. Pos. Ldgr AmTp Year
Text Symbol: 630 = Curr.
Text Symbol: 640 = Excluded documents from the reconciliation:
Text Symbol: 650 = Documents with inconsistencies:
Text Symbol: 660 = Selection paramaters:
Text Symbol: 670 = Company code
Text Symbol: 680 = Sales Document
Text Symbol: 695 = Date on which the record was created
Text Symbol: 696 = Document date (date received/sent)
Text Symbol: 697 = Sold-to party
Text Symbol: 700 = FM posting date
Text Symbol: 710 = Period
Text Symbol: 720 = Document date
Text Symbol: 730 = Test run





Text Symbol: 760 = Document
Text Symbol: 770 = was corrected but the inconsistency cannot be displayed.
Text Symbol: 780 = Log for the Reconstruction of Sales Orders in FM
Text Symbol: 790 = Budget Period
Text Symbol: 001 = Reconciliation of Sales Orders in Funds Management
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: 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
Text Symbol: 472 = Predecessor procedure
Text Symbol: 473 = Predecessor log. system
Text Symbol: 474 = Budgetary Ledger Document Date
Text Symbol: 480 = Open quantity


INCLUDES used within this REPORT RFFMRP07N

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.

FM_RC_GET_APPLC CALL FUNCTION 'FM_RC_GET_APPLC' EXPORTING i_bl = p_bl i_avc = p_avc IMPORTING e_applc = l_applc CHANGING c_avc = p_avc.

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.

DIALOG_SET_NO_DIALOG CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.

SD_SALES_DOCUMENT_INIT CALL FUNCTION 'SD_SALES_DOCUMENT_INIT'.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

ENQUEUE_EVVBAKE CALL FUNCTION 'ENQUEUE_EVVBAKE' EXPORTING vbeln = l_f_orders-vbeln EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

SD_SALES_DOCUMENT_READ CALL FUNCTION 'SD_SALES_DOCUMENT_READ' EXPORTING document_number = l_f_orders-vbeln IMPORTING evbak = ls_vbak evbkd = ls_vbkd.

SD_SALES_ITEM_LIST_READ CALL FUNCTION 'SD_SALES_ITEM_LIST_READ' TABLES eivbap = lt_items.

SD_SALES_ITEM_READ CALL FUNCTION 'SD_SALES_ITEM_READ' EXPORTING item_number = lt_items-posnr IMPORTING evbap = ls_vbap evbkd = ls_vbkd EXCEPTIONS item_number_missing = 1 OTHERS = 2.

FM_CO_ASS_INPUT_MAINTAIN_SD



CALL FUNCTION 'FM_CO_ASS_INPUT_MAINTAIN_SD' EXPORTING i_cobl = ls_cobl i_vbak = ls_vbak i_vbap = ls_vbap i_actyp = 'B' IMPORTING e_flg_assignment_change = lv_acc_assign_change.

FM_CO_ASS_INPUT_POST_SD CALL FUNCTION 'FM_CO_ASS_INPUT_POST_SD' TABLES t_fmco_post_sd = lt_fmco_post_sd.

FM_RC_PARAMETER_BUFFER_SET_GET CALL FUNCTION 'FM_RC_PARAMETER_BUFFER_SET_GET' EXPORTING i_test = p_test i_applc = l_applc.

SD_SALES_DOCU_MAINTAIN CALL FUNCTION 'SD_SALES_DOCU_MAINTAIN' EXPORTING i_vbakkom = ls_vbakkom i_vbakkomx = ls_vbakkomx TABLES return = lt_messages.

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_INIT CALL FUNCTION 'FM_OPEN_ITEM_INIT'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

FM_OPEN_ITEM_INIT CALL FUNCTION 'FM_OPEN_ITEM_INIT'.

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' "#EC * 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'.

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.

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.

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.



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