RFVIRE02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report retrieves data in order to print an invoice for rent and prints the letter using
If you would like to execute this report or see the full code listing simply enter RFVIRE02 into the relevant SAP transactions such as SE38 or SE80
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.
Title: Correspondence - Print Invoice for Rent
Text Symbol: 0** = * Report title / Selection parameters
Text Symbol: 1** = * List headings
Text Symbol: 2** = * Texts
Text Symbol: 201 = Invoice for rent ;
Text Symbol: 202 = SINGLE TOTALS
Text Symbol: 5** = * Name of elements which the program expects in the form
INCLUDE RFVIMVD1_PRINT_LETTER.
INCLUDE RFVIMVCA.
INCLUDE RFVIMVCC.
INCLUDE RFVZTVI2.
INCLUDE RFVZTVI3.
No SAP DATABASE tables are accessed within this REPORT code!
POPUP_TTXBS CALL FUNCTION 'POPUP_TTXBS' TABLES itxbs = loc_tab_ttxbs EXCEPTIONS zurueck = 01.
FORM_CHECK CALL FUNCTION 'FORM_CHECK' EXPORTING i_pzfor = fle_ttxbf-tdform EXCEPTIONS not_defined = 1.
OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING form = fle_ttxbf-tdform options = linkitcpo device = 'PRINTER' dialog = hlp_fbkz IMPORTING result = linkitcpp EXCEPTIONS canceled = 1 device = 2 form = 3 options = 4 unclosed = 5.
PAYMENT_MEDIUM_PRINT CALL FUNCTION 'PAYMENT_MEDIUM_PRINT' EXPORTING i_paymo = fle_paymo i_itcpo = linkitcpo EXCEPTIONS OTHERS = 0.
CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' IMPORTING result = linkitcpp EXCEPTIONS unopened = 1.
PAYMENT_MEDIUM_PRINT CALL FUNCTION 'PAYMENT_MEDIUM_PRINT' EXPORTING i_paymo = fle_paymo i_itcpo = linkitcpo EXCEPTIONS OTHERS = 0.
RE_ASSEMBLE_OBJECTKEY CALL FUNCTION 'RE_ASSEMBLE_OBJECTKEY' EXPORTING i_key = fle_virekey IMPORTING e_businessobject_key = sav_objkey e_businessobject_name = sav_busobj_name e_kz_key_parts_missing = flg_key_parts_missing EXCEPTIONS unknown_object_type = 1 name_of_key_not_valid = 2 object_key_not_found = 3 OTHERS = 4.
RE_GET_OPT_ARC_VALUES CALL FUNCTION 'RE_GET_OPT_ARC_VALUES' EXPORTING i_busobj_name = sav_busobj_name i_objkey = sav_objkey i_ar_object = sav_ar_object * I_INFO = ' ' i_name1 = debiadr-name1 CHANGING c_arc_params = tab_opt_archive-fle_arc_params c_toa_dara = tab_opt_archive-fle_toa_dara EXCEPTIONS busobj_not_used_for_re_opt_arc = 1 wrong_object_combination = 2 OTHERS = 3.
RE_GET_OPT_ARC_VALUES CALL FUNCTION 'RE_GET_OPT_ARC_VALUES' EXPORTING i_busobj_name = sav_busobj_name i_objkey = sav_objkey i_ar_object = sav_ar_object * I_INFO = ' ' i_name1 = debiadr-name1 CHANGING c_arc_params = tab_opt_archive-fle_arc_params c_toa_dara = tab_opt_archive-fle_toa_dara EXCEPTIONS busobj_not_used_for_re_opt_arc = 1 wrong_object_combination = 2 OTHERS = 3.
OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING archive_params = tab_opt_archive-fle_arc_params form = fle_ttxbf-tdform options = linkitcpo device = 'PRINTER' dialog = hlp_fbkz IMPORTING result = linkitcpp EXCEPTIONS canceled = 1 device = 2 form = 3 options = 4 unclosed = 5.
CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' IMPORTING result = linkitcpp EXCEPTIONS unopened = 1.
START_FORM CALL FUNCTION 'START_FORM' EXPORTING form = form language = viscript-sprslrcp startpage = 'FIRST' EXCEPTIONS form = 1 format = 2 unended = 3 unopened = 4 unused = 5.
START_FORM CALL FUNCTION 'START_FORM' EXPORTING archive_index = tab_opt_archive-fle_toa_dara form = form language = viscript-sprslrcp startpage = 'FIRST' EXCEPTIONS form = 1 format = 2 unended = 3 unopened = 4 unused = 5.
END_FORM CALL FUNCTION 'END_FORM'.
READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING id = rstxt-tdid language = rstxt-tdspras name = rstxt-tdname object = rstxt-tdobject IMPORTING header = fle_thead TABLES lines = tab_tline EXCEPTIONS id = 04 language = 04 name = 04 not_found = 04.
WRITE_FORM_LINES CALL FUNCTION 'WRITE_FORM_LINES' EXPORTING header = fle_thead window = 'MAIN' TABLES lines = tab_tline EXCEPTIONS window = 08.
PAYMENT_MEDIUM_INIT CALL FUNCTION 'PAYMENT_MEDIUM_INIT' IMPORTING e_paymo = e_paymo EXCEPTIONS OTHERS = 0.
PAYMENT_MEDIUM_DATA CALL FUNCTION 'PAYMENT_MEDIUM_DATA' EXPORTING i_paymi = e_paymi IMPORTING e_paymo = e_paymo EXCEPTIONS no_print = 1 OTHERS = 2.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RFVIRE02 - Correspondence - Print Invoice for Rent RFVIRE02 - Correspondence - Print Invoice for Rent RFVIRE01 - Invoice for Rent on Basis of FI Documents: Correspondence RFVIRE01 - Invoice for Rent on Basis of FI Documents: Correspondence RFVIRE00 - Real Estate Hierarchy extended to including Building Hierarchy RFVIRE00 - Real Estate Hierarchy extended to including Building Hierarchy