SAP Reports / Programs

RFFMEDWR SAP ABAP Report - Archiving Budget Entry Documents in FM (BCS): Write Program







RFFMEDWR is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Use this program to archive data of FM budget entry documents (archiving object FM_ED) from database tables FMBH and FMBL (header and lines of the entry document respectively)...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 RFFMEDWR 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 RFFMEDWR. "Basic submit
SUBMIT RFFMEDWR AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMEDWR 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: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_TOYEAR = to Fiscal Year
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Selection Text: SO_AREA = D .
Selection Text: SO_DOCNR = D .
Selection Text: SO_DYEAR = D .
Selection Text: SO_FUND = D .
Selection Text: SO_VERS = D .
Title: Archiving Budget Entry Documents in FM (BCS): Write Program
Text Symbol: 001 = FM entry documents
Text Symbol: 002 = Further Selection Criteria
Text Symbol: 003 = Processing Options


INCLUDES used within this REPORT RFFMEDWR

INCLUDE IBUKUCON.


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_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE_APPL'.

PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_msgid = 'FMAR' i_msgno = 010 i_output_immediately = 'X'.

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

PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_msgid = 'FMAR' i_msgno = 011 i_output_immediately = 'X'.

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

PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_msgid = 'FMAR' i_msgno = 052 i_processed = lv_cnt_pro i_total = lv_cnt_tot IMPORTING e_progress_sent = lv_msg_sent.

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

PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_msgid = 'FMAR' i_msgno = 052 i_processed = lv_cnt_pro i_total = lv_cnt_tot i_output_immediately = 'X'.

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

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = ih_archive_handle.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = ih_archive_handle record = iw_fmbh record_structure = 'FMBH'.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = ih_archive_handle record_structure = 'FMBL' TABLES table = it_fmbl.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = ih_archive_handle EXCEPTIONS termination_requested = 4.

ARCHIVE_PROTOCOL_COLLECT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING i_object = lv_objtext "FM_AREA/DOCYEAR/DOCNR i_msgtype = lv_msgtype i_msgid = 'FMAR' i_msgno = lv_msgid.



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