SAP Reports / Programs

RFFMRP04 SAP ABAP Report - Copy document from parked documents







RFFMRP04 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Document Transfer of Parked Documents This program reconstructs parked Financial Accounting documents in Funds Management (FM)...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 RFFMRP04 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

FMR0 - Reconstruct Parked Documents


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 RFFMRP04. "Basic submit
SUBMIT RFFMRP04 AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMRP04 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_BELNR = D .
Selection Text: P_TEST = D .
Selection Text: P_PRECHK = D .
Selection Text: P_NOPBET = D .
Selection Text: P_GJAHR = D .
Selection Text: P_ERROR = D .
Selection Text: P_DELETE = D .
Selection Text: P_CMPLET = D .
Selection Text: P_BUKRS = D .
Title: Copy document from parked documents
Text Symbol: 291 = Time:
Text Symbol: 290 = Date
Text Symbol: 281 = No. of documents not posted:
Text Symbol: 280 = No. of docs posted:
Text Symbol: 261 = No
Text Symbol: 260 = Ye
Text Symbol: 255 = Int. Check:
Text Symbol: 251 = Upd. Run
Text Symbol: 250 = Test Run
Text Symbol: 140 = Old Data Processing
Text Symbol: 130 = Process Control
Text Symbol: 110 = Selection Using Invoice Refer.
Text Symbol: 100 = Selection
Text Symbol: 001 = Log: Document Transfer from Financial Accounting
001 CoCd Doc.no. AA No.lns Remarks


INCLUDES used within this REPORT RFFMRP04

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:

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

FM_CCF_REBUILD_PREPARE_FI CALL FUNCTION 'FM_CCF_REBUILD_PREPARE_FI' EXPORTING i_bukrs = uf_document-bukrs i_knbelnr = uf_document-belnr i_kngjahr = uf_document-gjahr i_flg_reverse = con_on i_flg_test = u_test i_flg_rebuild_chain = g_flg_expert i_flg_rebuild = 'X' TABLES i_t_wrttp = r_t_wrttp EXCEPTIONS fm_doc_missing = 1 cf_impossible = 3 OTHERS = 5.

FM_DOCUMENT_DELETE CALL FUNCTION 'FM_DOCUMENT_DELETE' EXPORTING u_gjahr = uf_document-gjahr u_belnr = uf_document-belnr u_bukrs = uf_document-bukrs u_test = u_test u_flg_ccf_del = con_on u_flg_reas_del = con_on u_flg_oncommit = con_off TABLES i_t_rldnr = r_t_rldnr i_t_wrttp = r_t_wrttp EXCEPTIONS document_vendor_interface = 2 no_document_found = 3 document_not_deleted = 4 document_acnew = 5 document_not_in_ledger = 8 OTHERS = 9.

PRELIMINARY_POSTING_DOC_READ CALL FUNCTION 'PRELIMINARY_POSTING_DOC_READ' EXPORTING belnr = uf_document-belnr bukrs = uf_document-bukrs gjahr = uf_document-gjahr TABLES t_vbkpf = lt_vbkpf t_vbseg = lt_vbseg t_vbsec = lt_vbsec t_vbset = lt_vbset EXCEPTIONS document_line_not_found = 1 document_not_found = 2 input_incomplete = 3 OTHERS = 4.

FM_REBUILD_INIT CALL FUNCTION 'FM_REBUILD_INIT'.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

FM_DOCUMENT_CLOSE CALL FUNCTION 'FM_DOCUMENT_CLOSE' TABLES t_acccr = lt_acccr t_acchd = lt_acchd t_accit = lt_accit EXCEPTIONS error_message = 8.

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

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = lt_mesg.

FM_FUNDS_CHECK_LAST CALL FUNCTION 'FM_FUNDS_CHECK_LAST'.

FM_DOCUMENT_POST CALL FUNCTION 'FM_DOCUMENT_POST' EXPORTING i_awtyp = lt_acchd-awtyp i_awref = lt_acchd-awref i_aworg = lt_acchd-aworg i_flg_delete = con_on.

FMFK_GET_FIKRS_FROM_BUKRS CALL FUNCTION 'FMFK_GET_FIKRS_FROM_BUKRS' EXPORTING i_bukrs = u_bukrs IMPORTING e_fikrs = l_fikrs.

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

FMCA_GET_INIT_INFO CALL FUNCTION 'FMCA_GET_INIT_INFO' EXPORTING i_bukrs = u_bukrs CHANGING c_f_control_data = gf_control_data.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RFFMRP04' i_callback_user_command = 'USER_COMMAND' i_callback_html_top_of_page = 'HTML_TOP_OF_PAGE' i_callback_top_of_page = 'TOP_OF_PAGE' i_grid_title = l_text is_layout = lf_layout it_fieldcat = lt_fieldcat TABLES t_outtab = u_t_totlist.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'fmrpfi_outlist' CHANGING ct_fieldcat = ct_fieldcat.

MASS_MESSAGE_SHOW_LONGTEXT CALL FUNCTION 'MASS_MESSAGE_SHOW_LONGTEXT' EXPORTING arbgb = l_arbgb msgnr = l_msgnr msgv1 = lf_outlist-msgv1 msgv2 = lf_outlist-msgv2 msgv3 = lf_outlist-msgv3 msgv4 = lf_outlist-msgv4.

FMALE_READ_CUST





CALL FUNCTION 'FMALE_READ_CUST' IMPORTING central_system = l_central_system EXCEPTIONS central_system_not_defined = 1 OTHERS = 2.

OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = l_own_system.

FM_GET_EXPERT_MODE CALL FUNCTION 'FM_GET_EXPERT_MODE' IMPORTING e_exception_active = l_fmale_ignore_system.

FUNC_AREA_CONVERSION_OUTBOUND CALL FUNCTION 'FUNC_AREA_CONVERSION_OUTBOUND' EXPORTING i_func_area_long = -fkber IMPORTING e_func_area = lf_bseg-fkber e_func_area_long = lf_bseg-fkber_long.

CO_SF_NETWORKACTIVITY_CHECK CALL FUNCTION 'CO_SF_NETWORKACTIVITY_CHECK' EXPORTING aufnr_imp = -nplnr vornr_imp = -vornr IMPORTING aplzl_exp = lf_bseg-aplzl aufpl_exp = lf_bseg-aufpl EXCEPTIONS OTHERS = 0.

FI_DOC_TO_ACC_TRANSFORM CALL FUNCTION 'FI_DOC_TO_ACC_TRANSFORM' TABLES t_bkpf = lt_bkpf t_bseg = lt_bseg t_acchd = ct_acchd t_accit = ct_accit t_acccr = ct_acccr.



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