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

RFFM_MIGRATE_GRIR_TO_GR SAP ABAP Report - Report RFFM_MIGRATE_GRIR_TO_GR







RFFM_MIGRATE_GRIR_TO_GR 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 RFFM_MIGRATE_GRIR_TO_GR 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 RFFM_MIGRATE_GRIR_TO_GR. "Basic submit
SUBMIT RFFM_MIGRATE_GRIR_TO_GR AND RETURN. "Return to original report after report execution complete
SUBMIT RFFM_MIGRATE_GRIR_TO_GR 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: NOPAY = Do not offset payments
Selection Text: OLD = No offset 2-way, offset 3-way
Selection Text: PAY = Offset payment related lines
Selection Text: P_BUDAT = D .
Selection Text: P_BUKRS = D .
Selection Text: P_CRBL = D .
Selection Text: P_ERROR = D .
Selection Text: P_GJAHR = D .
Selection Text: P_HKONT = D .
Selection Text: P_NOCF = Do not check carry forward
Selection Text: P_PERIO = D .
Selection Text: P_RECSZE = Record count for commit
Selection Text: P_RMRP = Only GR and LIV Invoice
Selection Text: P_TEST = D .
Selection Text: P_TSTAV = Check/Update AVC
Selection Text: SO_BELNR = D .
Selection Text: SO_BLART = BL Doc types (excl from sel.)
Selection Text: SO_BLDAT = D .
Selection Text: SO_BUDAT = D .
Selection Text: SO_CPUDT = D .
Selection Text: SO_EBELN = D .
Selection Text: SO_EBELP = D .
Selection Text: SO_PERIO = D .
Title: Report RFFM_MIGRATE_GRIR_TO_GR
Text Symbol: 340 = *** Doc. from ALE Distribtn Reconstructn Only in Decentral System
Text Symbol: 001 = Log: Transfer documents from Financial Acctng
Text Symbol: 010 = Free Selection
Text Symbol: 020 = GR/IR Account
Text Symbol: 040 = *** Payment Already Exists
Text Symbol: 050 = Document already exists
Text Symbol: 101 = Selection Using Invoice Reference
Text Symbol: 120 = Process Control
Text Symbol: 122 = Posting Parameter
Text Symbol: 125 = Old Data Processing
Text Symbol: 200 = Offset logic
Text Symbol: 225 = *** Payment Updated
Text Symbol: 235 = *** Document not updated (The document was correct or not relevant for update)
Text Symbol: 236 = *** Document updated





Text Symbol: 250 = Test run
Text Symbol: 251 = Update run
Text Symbol: 255 = Int. Check:
Text Symbol: 260 = Yes
Text Symbol: 261 = No
Text Symbol: 280 = No. of documents posted:
Text Symbol: 281 = No. of documents not posted:
Text Symbol: 290 = Date:
Text Symbol: 291 = Time:
Text Symbol: 300 = Message Text
Text Symbol: 301 = Text
Text Symbol: 330 = PO reference


INCLUDES used within this REPORT RFFM_MIGRATE_GRIR_TO_GR

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:

DOCHEADER_PERIOD_FIND_CHECK CALL FUNCTION 'DOCHEADER_PERIOD_FIND_CHECK' EXPORTING i_bukrs = p_bukrs i_bldat = p_budat i_budat = p_budat IMPORTING e_gjahr = g_gjahr_post CHANGING c_monat = p_perio.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

FMALE_READ_CUST CALL FUNCTION 'FMALE_READ_CUST' IMPORTING central_system = s_cent_sys EXCEPTIONS central_system_not_defined = 1 OTHERS = 2.

FM_CCF_REBUILD_PREPARE_FI CALL FUNCTION 'FM_CCF_REBUILD_PREPARE_FI' EXPORTING i_bukrs = u_t_bkpf-bukrs i_knbelnr = u_t_bkpf-belnr i_kngjahr = u_t_bkpf-gjahr i_flg_reverse = con_on i_flg_avc = con_on i_flg_test = u_flg_test EXCEPTIONS fm_doc_missing = 1 cf_impossible = 3 OTHERS = 5.

FM_DOCUMENT_DELETE CALL FUNCTION 'FM_DOCUMENT_DELETE' EXPORTING u_gjahr = u_t_bkpf-gjahr u_bukrs = u_t_bkpf-bukrs u_belnr = u_t_bkpf-belnr u_test = u_flg_test u_flg_ccf_del = con_on u_flg_reas_del = con_on TABLES i_t_rldnr = r_t_rldnr i_t_wrttp = r_t_wrttp EXCEPTIONS no_document_found = 1 document_not_deleted = 2 document_acnew = 3 document_cfnew = 4 document_not_in_ledger = 5 document_vendor_interface = 6 OTHERS = 7.

FM_REBUILD_INIT CALL FUNCTION 'FM_REBUILD_INIT'.

FI_DOC_TO_ACC_TRANSFORM CALL FUNCTION 'FI_DOC_TO_ACC_TRANSFORM' TABLES t_bkpf = u_t_bkpf t_bseg = u_t_bseg t_acchd = l_t_acchd t_accit = l_t_accit t_acccr = l_t_acccr.

FAGL_SPL_ACCIT_GET CALL FUNCTION 'FAGL_SPL_ACCIT_GET' CHANGING ct_acchd = l_t_acchd[] ct_accit = l_t_accit_spl[] ct_accit_ex = l_t_accit_ex[] ct_acccr = l_t_acccr_spl[].

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

FM_DOCUMENT_CLOSE CALL FUNCTION 'FM_DOCUMENT_CLOSE' TABLES t_acccr = l_t_acccr t_acchd = l_t_acchd t_accit = l_t_accit t_accit_ext_spl = l_t_accit_ex t_acccr_spl = l_t_acccr_spl t_accit_spl = l_t_accit_spl EXCEPTIONS error_message = 8.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS i_message = 1 w_message = 2 e_message = 3 a_message = 4 OTHERS = 8.






MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_mesg.

FM_DOCUMENT_GET CALL FUNCTION 'FM_DOCUMENT_GET' TABLES t_fmifihd = l_t_fmifihd t_fmifiit = l_t_fmifiit.

BP_CHECK_FUNDS_LAST_FI CALL FUNCTION 'BP_CHECK_FUNDS_LAST_FI' TABLES t_acchd = l_t_acchd t_accit = l_t_accit t_acccr = l_t_acccr.

FM_FUNDS_CHECK_FI CALL FUNCTION 'FM_FUNDS_CHECK_FI' EXPORTING u_vorgn = 'RFBU' i_check_funds_last = con_on i_level_vg = 'REAS' TABLES t_fmifiit = l_t_fmifiit.

FM_FUNDS_POST CALL FUNCTION 'FM_FUNDS_POST' EXPORTING i_orgvg = 'RFBU' i_refbn = l_t_acchd-awref.

FM_LEDGER_LAST_CHECK CALL FUNCTION 'FM_LEDGER_LAST_CHECK'.

FM_DOCUMENT_POST CALL FUNCTION 'FM_DOCUMENT_POST' EXPORTING i_awtyp = l_t_accit-awtyp i_awref = l_t_accit-awref i_aworg = l_t_accit-aworg.

FMFK_GET_FIKRS_FROM_BUKRS CALL FUNCTION 'FMFK_GET_FIKRS_FROM_BUKRS' EXPORTING i_bukrs = u_bukrs IMPORTING e_fikrs = l_fikrs.

FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING i_fikrs = l_fikrs i_actvt = fmau_ac_ini i_msgty = 'E'.

FMCA_GET_INIT_INFO CALL FUNCTION 'FMCA_GET_INIT_INFO' EXPORTING i_bukrs = u_bukrs CHANGING c_f_control_data = g_f_control_data.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RFFMRPFI' i_callback_user_command = 'USER_COMMAND' i_callback_html_top_of_page = 'HTML_TOP_OF_PAGE' i_callback_top_of_page = 'TOP_OF_PAGE' i_grid_title = l_text is_layout = l_f_layout it_fieldcat = l_t_fieldcat TABLES t_outtab = u_t_totlist.

FM_DOCUMENT_PUT CALL FUNCTION 'FM_DOCUMENT_PUT' EXPORTING i_flg_delete = con_on TABLES t_fmifiit = c_t_fmifiit t_fmifihd = c_t_fmifihd.

FM_PUR_SET_PAYFLG CALL FUNCTION 'FM_PUR_SET_PAYFLG' EXPORTING i_flg_post = con_on TABLES ct_fmifiit = l_t_fmifiit_new.

FI_DOC_TO_ACC_TRANSFORM CALL FUNCTION 'FI_DOC_TO_ACC_TRANSFORM' TABLES t_bkpf = u_t_bkpf t_bseg = u_t_bseg t_acchd = l_t_acchd t_accit = l_t_accit t_acccr = l_t_acccr.

FAGL_SPL_ACCIT_GET CALL FUNCTION 'FAGL_SPL_ACCIT_GET' CHANGING ct_acchd = l_t_acchd[] ct_accit = l_t_accit_spl[] ct_accit_ex = l_t_accit_ex[] ct_acccr = l_t_acccr_spl[].

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

FM_PUR_DOCUMENT_CLOSE CALL FUNCTION 'FM_PUR_DOCUMENT_CLOSE' EXPORTING i_flg_rebuild = con_on TABLES t_acccr = l_t_acccr t_acchd = l_t_acchd t_accit = l_t_accit t_accit_ext_spl = l_t_accit_ex t_acccr_spl = l_t_acccr_spl t_accit_spl = l_t_accit_spl t_fmifiit_doc = u_t_fmifiit EXCEPTIONS error_message = 8.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS i_message = 1 w_message = 2 e_message = 3 a_message = 4 OTHERS = 8.

MESSAGES_GIVE



CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_mesg.

FM_PUR_DOCUMENT_GET CALL FUNCTION 'FM_PUR_DOCUMENT_GET' EXPORTING i_delete = con_on TABLES t_fmifiit = l_t_fmifiit.

FM_REVERSE_PBET_ITEM CALL FUNCTION 'FM_REVERSE_PBET_ITEM' EXPORTING i_f_control_data = g_f_control_data TABLES i_t_fmifiit_old = l_t_fmifiit_old i_t_fmifiit_new = c_t_fmifiit_new c_t_fmifiit_new = l_t_fmifiit.

FM_PUR_DOCUMENT_PUT CALL FUNCTION 'FM_PUR_DOCUMENT_PUT' EXPORTING i_flg_delete = con_on TABLES t_fmifiit = l_t_fmifiit.

FM_PUR_DOCUMENT_POST CALL FUNCTION 'FM_PUR_DOCUMENT_POST' EXPORTING i_flg_rebuild = con_on.

FM_STUNR_GET CALL FUNCTION 'FM_STUNR_GET' EXPORTING i_flg_flush_buffer = con_on IMPORTING e_stunr = c_t_fmifiit_new-stunr EXCEPTIONS error_message = 1 OTHERS = 2.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = c_t_fmifiit_new-zhldt i_periv = u_f_control_data-periv IMPORTING e_buper = c_t_fmifiit_new-perio e_gjahr = u_t_fmifiit_new-gjahr.



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