SAP Reports / Programs

RFFMAR31 SAP ABAP Report - Archiving of commitment/actual totals record im FM







RFFMAR31 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 RFFMAR31 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 RFFMAR31. "Basic submit
SUBMIT RFFMAR31 AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMAR31 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_FONDS = D .
Selection Text: R_FIKRS = D .
Selection Text: R_BUKRS = D .
Selection Text: P_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_TEST = D .
Selection Text: P_SNAP = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_LOG = D .
Selection Text: P_DEST = D .
Selection Text: P_DELTST = D .
Selection Text: P_COMENT = D .
Selection Text: P_TO_FYR = To fiscal year
Selection Text: P_DEL = Archive and delete
Selection Text: P_AR_ILM = D .
Selection Text: P_ARCH = Archive
Selection Text: COMMENTS = Archiving Run Memo
Title: Archiving of commitment/actual totals record im FM
Text Symbol: 030 = Process Control
Text Symbol: 020 = Restrictions
Text Symbol: 010 = Document selection


INCLUDES used within this REPORT RFFMAR31

INCLUDE IFMARSEL_ARC_LOG1.


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_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

FM_AUTH_CHECK_FM_AREA call function 'FM_AUTH_CHECK_FM_AREA' exporting i_fikrs = l_t_fm_areas-fikrs i_actvt = fmau_ac_ini i_msgty = 'E'.

FM_ARC_AL_GET_OBJNR_FROM_FIKRS call function 'FM_ARC_AL_GET_OBJNR_FROM_FIKRS' tables t_fm_areas = g_t_fm_areas r_objnr = g_r_objnr exceptions others = 0.

PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_msgid = 'FMAR' i_msgno = '056' i_output_immediately = l_immidiate.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'FMAR' i_msgno = '056'.

PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_msgid = 'FMAR' i_msgno = '052' i_processed = gf_progress_counter-processed i_total = gf_progress_counter-total i_output_immediately = l_immidiate.

PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_msgid = 'FMAR' i_msgno = '052' i_processed = gf_progress_counter-processed i_total = gf_progress_counter-total i_output_immediately = l_immidiate IMPORTING e_progress_sent = l_progress_sent.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'. "force immediate output of message

FM_ARC_AL_DISPLAY_EXCL_FUNDS_N call function 'FM_ARC_AL_DISPLAY_EXCL_FUNDS_N' exporting i_number = g_cnt_excl_funds i_to_fyr = p_to_fyr i_actual = con_on tables t_excl_funds = g_t_excl_funds exceptions others = 0.

FM_ARC_AT_DISPLAY_TOTALS_NEW call function 'FM_ARC_AT_DISPLAY_TOTALS_NEW' exporting i_test = p_writst i_first = l_first_display_details i_function = fmar_const_archiving tables t_totals = g_t_totals_disp.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = g_ar_handle exceptions others = 0.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = g_ar_handle.

ARCHIVE_PROTOCOL_INIT call function 'ARCHIVE_PROTOCOL_INIT' exporting i_detailprotocol = p_prot I_PROTOCOL_OUTPUT = p_prot_o.

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 = l_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_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.

ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = l_ar_handle record = l_record record_structure = l_record_structure exceptions internal_error = 01 wrong_access_to_archive = 02 invalid_record_structure = 03 others = 04.



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