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

RFFMARD1 SAP ABAP Report - Archiving Totals in FM: Write Archive







RFFMARD1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RFFMARD1 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 RFFMARD1. "Basic submit
SUBMIT RFFMARD1 AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMARD1 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: R_FIKRS = D Financial Management Area
Selection Text: R_BUKRS = D Company Code
Selection Text: P_TO_FYR = D To Fiscal Year
Selection Text: P_TEST = D Test Run
Selection Text: P_PROT = D Detail Log
Selection Text: P_EXT = Check of FM actuals documents
Selection Text: P_DEL = Archive and Delete
Selection Text: P_ARCH = Archive
Selection Text: COMMENTS = D Archiving Session Note
Title: Archiving Totals in FM: Write Archive
Text Symbol: 420 = Look at Detail Log in Spool.
Text Symbol: 430 = Archived
Text Symbol: 500 = An External Commitment Item does not end in Table FMFPO
Text Symbol: 510 = for the following internal commitment items:
Text Symbol: 700 = Archiving object
Text Symbol: 701 = was not found!
Text Symbol: 800 = FI
Text Symbol: 810 = PF
Text Symbol: 820 = DT
Text Symbol: 830 = Bl
Text Symbol: 840 = MR
Text Symbol: 850 = No
Text Symbol: 010 = Doc. selection
Text Symbol: 020 = Restrictions
Text Symbol: 030 = Process Control
Text Symbol: 031 = Test Run
Text Symbol: 032 = Archive
Text Symbol: 033 = Archive and Delete
Text Symbol: 050 = Archiving Run Memo
Text Symbol: 205 = Results of Archiving
Text Symbol: 210 = Totals Recs
Text Symbol: 300 = Packing
Text Symbol: 310 = Detail Information in
Text Symbol: 320 = Deleted
Text Symbol: 330 = Imported
Text Symbol: 350 = No Matching Total Records Found for Archiving
Text Symbol: 360 = Upd. run
Text Symbol: 370 = Test Run





Text Symbol: 380 = Funds Center FY Pbl Fund Cur.Tran. Cmmt Item TC CC Bus.Doc.
Text Symbol: 390 = Following Documents must be Archived, Closed or Deleted.
Text Symbol: 400 = Com.Code FM Doc. Ldgr Year ValType Ex.Doc. CC FY
Text Symbol: 410 = Archiving of FM totals is not possible
Text Symbol: 415 = Run Archiving with a Detailed Log and
Text Symbol: 417 = Look at the Details


INCLUDES used within this REPORT RFFMARD1

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:

ARCHIVE_WRITE_STATISTICS * CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' * EXPORTING * archive_handle = g_ar_handle * EXCEPTIONS * internal_error = 01 * OTHERS = 02.

ARCHIVE_CLOSE_FILE * CALL FUNCTION 'ARCHIVE_CLOSE_FILE' * EXPORTING * archive_handle = g_ar_handle.

ARCHIVE_OPEN_FOR_WRITE * CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' * EXPORTING * call_delete_job_in_test_mode = l_flg_test * create_archive_file = l_flg_create * object = l_const_ar_objekt * comments = comments * IMPORTING * archive_handle = l_ar_handle * EXCEPTIONS * internal_error = 01 * object_not_found = 02 * open_error = 03 * not_authorized = 04 * OTHERS = 05.

ARCHIVE_NEW_OBJECT * CALL FUNCTION 'ARCHIVE_NEW_OBJECT' * EXPORTING * archive_handle = l_ar_handle * EXCEPTIONS * internal_error = 01 * wrong_access_to_archive = 02 * OTHERS = 03.

ARCHIVE_PUT_RECORD * CALL FUNCTION 'ARCHIVE_PUT_RECORD' * EXPORTING * archive_handle = ll_ar_handle * record = record * record_structure = record_structure * EXCEPTIONS * internal_error = 01 * wrong_access_to_archive = 02 * invalid_record_structure = 03 * OTHERS = 04.

ARCHIVE_SAVE_OBJECT * CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' * EXPORTING * archive_handle = l_ar_handle * EXCEPTIONS * file_io_error = 01 * internal_error = 02 * open_error = 03 * termination_requested = 04 * wrong_access_to_archive = 05 * OTHERS = 06.

GET_FIPOS_FROM_POSIT * CALL FUNCTION 'GET_FIPOS_FROM_POSIT' * EXPORTING * ip_fikrs = l_t_zzfmsu_arch-fikrs * ip_posit = l_t_zzfmsu_arch-posit * IMPORTING * op_fipos = l_t_zzfmsu_arch-fipos * EXCEPTIONS * not_found = 01.

FMAU_AUTHORITY_FIFM * CALL FUNCTION 'FMAU_AUTHORITY_FIFM' * EXPORTING * i_actvt = fmau_ac_ini * i_auth_object = 'F_FICB_FKR' * i_fikrs = l_t_fm_area-fikrs * i_msgty = 'E'.

FMFK_FIKRS_READ * CALL FUNCTION 'FMFK_FIKRS_READ' * EXPORTING * ip_fikrs = u_fikrs * IMPORTING * f_fm01 = l_f_fm01 * EXCEPTIONS * input_error = 1 * not_found = 2 * OTHERS = 3.



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