SAP Reports / Programs

RFMEUFRUN SAP ABAP Report - Execute the Expenditure Certification







RFMEUFRUN 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 RFMEUFRUN 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 RFMEUFRUN. "Basic submit
SUBMIT RFMEUFRUN AND RETURN. "Return to original report after report execution complete
SUBMIT RFMEUFRUN 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_CERDT = D .
Selection Text: P_CERNO = D .
Selection Text: SO_BLART = D .
Selection Text: SO_BLDAT = D .
Selection Text: SO_BUDAT = D .
Selection Text: SO_BUKRS = D .
Selection Text: SO_FINSR = D .
Selection Text: SO_GJAHR = D .
Selection Text: SO_OPERA = D .
Selection Text: SO_PYDAT = D .
Title: Execute the Expenditure Certification
Text Symbol: 001 = Criteria for document selection
Text Symbol: 002 = Financing Source is complete
Text Symbol: 003 = Doc. line blocked in other run
Text Symbol: 004 = Doc. line completely certified for Financing Source


INCLUDES used within this REPORT RFMEUFRUN

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:

FMEUF_CREATE_APPL_LOG CALL FUNCTION 'FMEUF_CREATE_APPL_LOG' EXPORTING i_cerdt = p_cerdt i_cerno = p_cerno IMPORTING e_log_handle = l_log_handle.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_BLOCK_RUN_FINSRC CALL FUNCTION 'FMEUF_BLOCK_RUN_FINSRC' EXPORTING it_finsrc = lt_fns_list IMPORTING e_cx_msg = l_cx_msg EXCEPTIONS OTHERS = 1.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_CONVERT_DOCUMENT_KEYS CALL FUNCTION 'FMEUF_CONVERT_DOCUMENT_KEYS' EXPORTING it_doc_sel = lt_corr_doc_sel IMPORTING et_fmeuf_doc = lt_fmeuf_doc EXCEPTIONS OTHERS = 0.

FMEUF_GET_FS_INFO CALL FUNCTION 'FMEUF_GET_FS_INFO' EXPORTING i_timesl = l_runpar-timesl it_finsrc = lt_fns_list i_certkey = l_certkey IMPORTING et_finsrc_info = lt_finsrc.

ENQUEUE_EFMEUFRUN CALL FUNCTION 'ENQUEUE_EFMEUFRUN' EXPORTING cerdt = -cerdt cerno = -cerno _scope = '3' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_REFERENCE_RUN_ITEMS CALL FUNCTION 'FMEUF_REFERENCE_RUN_ITEMS' EXPORTING it_run_list = lt_run_list it_fns_list = lt_fns_list it_rt_opera = lt_opera i_correction = l_runpar-correction it_fmeuf_doc = lt_fmeuf_doc IMPORTING et_cert_items = lt_cert_items et_items_to_correct = lt_items_to_be_corrected EXCEPTIONS no_document_lines_selected = 1.

FMEUF_PREPARE_CORRECTION CALL FUNCTION 'FMEUF_PREPARE_CORRECTION' EXPORTING it_fmeuf_doc = lt_fmeuf_doc_to_correct i_paydt_from = r_pydat-low i_paydt_to = r_pydat-high i_rt_opera = lt_opera i_curr = l_runpar-curr i_crtpr = l_runpar-crtpr i_phase = l_runpar-phase i_tax_hand = l_runpar-tax_hand i_rt_bukrs = lt_ra_bukrs IMPORTING et_correction_list = lt_cert_items et_reversed_docs = lt_reversed_docs CHANGING ct_items_to_be_corrected = lt_items_to_be_corrected ct_msg = lt_msg EXCEPTIONS OTHERS = 0.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_BLOCK_RUN_OPERATIONS CALL FUNCTION 'FMEUF_BLOCK_RUN_OPERATIONS' IMPORTING et_excl_opera = lt_excluded_opera CHANGING ct_opera = lt_opera EXCEPTIONS operation_not_blocked = 1.

FMEUF_BLOCK_RUN_OPERATIONS CALL FUNCTION 'FMEUF_BLOCK_RUN_OPERATIONS' IMPORTING et_excl_opera = lt_excluded_opera CHANGING ct_opera = lt_opera EXCEPTIONS operation_not_blocked = 1.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_STORE_MESS_APPL_LOG





CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_READ_OTHER_RUNS CALL FUNCTION 'FMEUF_READ_OTHER_RUNS' EXPORTING i_exclude_non_final = 'X' i_certkey = l_certkey i_correction = l_runpar-correction IMPORTING et_prev_cert_docs = lt_previous_runs et_lines_to_be_excluded = lt_excluded_lines CHANGING ct_cert_items = lt_cert_items ct_msg = lt_msg.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_CERT_GET_CONTRIBUTIONS CALL FUNCTION 'FMEUF_CERT_GET_CONTRIBUTIONS' EXPORTING it_prev_cert_docs = lt_previous_runs it_finsrc = lt_finsrc i_correction = l_runpar-correction importing e_no_compl_itm = l_no_compl_itm changing ct_cert_items = lt_cert_items ct_certinfo = lt_certinfo.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

FMEUF_PROPOSE_CERT_AMOUNTS CALL FUNCTION 'FMEUF_PROPOSE_CERT_AMOUNTS' EXPORTING io_ec_badi = mybadi IMPORTING et_used_fns = lt_used_fns_list CHANGING ct_cert_items = lt_cert_items ct_finsrc = lt_finsrc.

FMEUF_CORRECTION CALL FUNCTION 'FMEUF_CORRECTION' EXPORTING i_certkey = l_certkey it_reversed_docs = lt_reversed_docs IMPORTING et_used_fns = lt_used_fns_list et_exceeded_fns = lt_exceeded_fns CHANGING ct_fmeufexp = lt_items_to_be_corrected ct_cert_items = lt_cert_items ct_finsrc = lt_finsrc ct_msg = lt_msg.

FMEUF_INSERT_RUN CALL FUNCTION 'FMEUF_INSERT_RUN' EXPORTING it_cert_items = lt_cert_items i_certkey = l_certkey i_status = l_end_status i_simulation = l_runpar-simulation it_certinfo = lt_certinfo.

FMEUF_SAVE_CORRECTED CALL FUNCTION 'FMEUF_SAVE_CORRECTED' EXPORTING it_corrected_items = lt_items_to_be_corrected.

FMEUF_RUN_UPDATE_CONSUM CALL FUNCTION 'FMEUF_RUN_UPDATE_CONSUM' EXPORTING i_certkey = l_certkey it_finsrc = lt_finsrc i_status = l_end_status i_timesl = l_runpar-timesl.

FMEUF_STORE_MESS_APPL_LOG CALL FUNCTION 'FMEUF_STORE_MESS_APPL_LOG' EXPORTING i_log_handle = l_log_handle it_fmeuf_msg = lt_msg.

DEQUEUE_ALL * Do not do a CALL FUNCTION 'DEQUEUE_ALL' because the locks * are inherited automatically to the DB process
* End








********************************************************** * FORM finsrc_in_ref_run ********************************************************** FORM finsrc_in_ref_run USING ut_fns_list TYPE fmeuf_t_fns u_certkey TYPE cl_fmeuf_wd_certify_0=>key_type u_timesl TYPE fmeuf_timeslp CHANGING ct_finsrc TYPE fmeuf_t_cert_finsrc c_cx_msg TYPE REF TO cx_fmeuf_msg.

FMEUF_GET_FS_INFO CALL FUNCTION 'FMEUF_GET_FS_INFO' EXPORTING i_timesl = u_timesl it_finsrc = ut_fns_list i_certkey = u_certkey IMPORTING et_finsrc_info = ct_finsrc.

FMEUF_BLOCK_RUN_FINSRC CALL FUNCTION 'FMEUF_BLOCK_RUN_FINSRC' EXPORTING it_finsrc = ut_fns_list IMPORTING e_cx_msg = c_cx_msg EXCEPTIONS OTHERS = 0.



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