SAP Reports / Programs

RFFMAR21 SAP ABAP Report - Archiving CO Postings in FM







RFFMAR21 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 RFFMAR21 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 RFFMAR21. "Basic submit
SUBMIT RFFMAR21 AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMAR21 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_FONDS = D .
Selection Text: S_BELNR = D .
Selection Text: R_FIKRS = D .
Selection Text: R_BUKRS = D .
Selection Text: P_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_TO_FY = D .
Selection Text: P_TO_FP = 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_FR_FY = D .
Selection Text: P_FR_FP = D .
Selection Text: P_DEST = D .
Selection Text: P_DELTST = D .
Selection Text: P_COMENT = D .
Selection Text: P_AR_ILM = D .
Selection Text: P_TO_FYR = To fiscal year
Selection Text: P_GEN = Short Log
Selection Text: P_EXCL = Brief Detail Log
Selection Text: P_DEL = Archive and delete
Selection Text: P_ARCH = Archive
Selection Text: COMMENTS = Archiving Run Memo
Title: Archiving CO Postings in FM
Text Symbol: S01 = Fiscal Year / Period
Text Symbol: 203 = To
Text Symbol: 040 = Log control
Text Symbol: 030 = Process Control
Text Symbol: 020 = Restrictions
Text Symbol: 010 = Doc. selection


INCLUDES used within this REPORT RFFMAR21

INCLUDE IFMARSEL_ARC_LOG.


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_area-fikrs i_actvt = fmau_ac_ini i_msgty = 'E'.

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 = fmar_const_ar_objekt_fmia comments = p_coment importing archive_handle = g_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 = g_ar_handle exceptions internal_error = 01 wrong_access_to_archive = 02 others = 03.

ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = g_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 = g_ar_handle exceptions file_io_error = 01 internal_error = 02 open_error = 03 termination_requested = 04 wrong_access_to_archive = 05 others = 06.

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_IA_DISPLAY_LINE_ITEMS_N call function 'FM_ARC_IA_DISPLAY_LINE_ITEMS_N' exporting i_function = fmar_const_archiving i_oner = l_excl i_test = p_writst i_first = g_first_display tables t_docs = g_t_documents_pack exceptions others = 0.

FM_ARC_IA_DISPLAY_LINE_ITEMS_N call function 'FM_ARC_IA_DISPLAY_LINE_ITEMS_N' exporting i_function = fmar_const_archiving i_oner = p_prot i_test = p_writst i_first = g_first_display tables t_docs_e = g_t_display_docs exceptions others = 0.

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.



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