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

RFFMAR61 SAP ABAP Report - Archiving Budget Totals Records in FM







RFFMAR61 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program documentation RFFMAR61 already exists in English in KI4 Archiving budget totals records in Funds Management (RFFMAR61) This program belongs to archiving object FM_BUDSUM...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 RFFMAR61 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 RFFMAR61. "Basic submit
SUBMIT RFFMAR61 AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMAR61 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_VERSN = D .
Selection Text: R_GEBER = D .
Selection Text: R_FIKRS = 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_AR_ILM = D .
Selection Text: P_TO_FYR = To fiscal year
Selection Text: P_GEN = Short Log
Selection Text: P_DEL = Archive and delete
Selection Text: P_ARCH = Archive
Selection Text: COMMENTS = Archiving Run Memo
Title: Archiving Budget Totals Records in FM
Text Symbol: 030 = Process Control
Text Symbol: 020 = Restrictions
Text Symbol: 010 = Document selection


INCLUDES used within this REPORT RFFMAR61

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 = r_objnr exceptions others = 0.

FM_ARC_AL_EXCLUDE_FUNDS call function 'FM_ARC_AL_EXCLUDE_FUNDS' exporting i_to_fyr = p_to_fyr importing e_cnt_excl_funds = g_cnt_excl_funds e_use_table = g_use_table tables r_geber = r_geber r_funds = r_funds r_fikrs = r_fikrs t_excl_funds = g_t_excl_funds t_ef_key = g_t_ef_key r_objnr = r_objnr t_over_funds = g_t_over_funds 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 tables t_excl_funds = g_t_excl_funds exceptions others = 0.

FM_ARC_BT_DISPLAY_TOTALS_NEW call function 'FM_ARC_BT_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.

FM_ARC_AL_DISPLAY_ERROR_ITEMS2 call function 'FM_ARC_AL_DISPLAY_ERROR_ITEMS2' tables t_items = g_t_error_items exceptions others = 0.

FM_GET_YEAR_FROM_DATE call function 'FM_GET_YEAR_FROM_DATE' exporting i_applc = 'A' i_farea = l_t_fm_areas-fikrs i_date = sy-datum importing e_year = l_current_fm_area_year exceptions others = 0.

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.

TEXT_ARCHIVE_OBJECT





call function 'TEXT_ARCHIVE_OBJECT' exporting archive_handle = l_ar_handle id = fmar_const_text_id_bpms language = '*' name = l_text_name object = fmar_const_text_object_bpdk object_delete_flag = con_on.

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.

FM_FIPEX_GET_FROM_POSIT call function 'FM_FIPEX_GET_FROM_POSIT' exporting i_fikrs = l_fikrs i_posit = l_posit importing e_fipex = l_fipex exceptions input_error = 01 data_not_found = 02.

ARCHIVE_GET_OBJECT call function 'ARCHIVE_GET_OBJECT' exporting object = fmar_const_ar_objekt_budsum tables object_structure = lt_arch_struc exceptions object_not_found = 1 others = 2.



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