RFUVXX00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You run this program to generate an advance return for tax on sales/purchases as a DME file, which you can then send to the tax authorities, for instance, via e-mail...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 RFUVXX00 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.
Selection Text: UMSV3 = Summation per customizing
Selection Text: UMSV2 = Summation on level
Selection Text: UKRS = Tax Code
Selection Text: SEL_UKRS = Umkrs
Selection Text: SEL_REOI = Reorganization for Run ID
Selection Text: SEL_BKRS = Bukrs
Selection Text: PAR_TEL = Telephone Number
Selection Text: PAR_REOD = Reorganization up to Run Date
Selection Text: PAR_LAUI = D .
Selection Text: PAR_LAUD = D .
Selection Text: PAR_ID3 = D .
Selection Text: PAR_ID2 = D .
Selection Text: PAR_FILE = File Name on Applic. Server
Selection Text: PAR_CHEC = File Name on Applic. Server
Selection Text: PAR_CHE2 = Save on Local System
Selection Text: PAR_A = Display XML File
Selection Text: BKRS = Company Code
Title: DME File for Summarized Advance Tax Return
Text Symbol: FBU = Additional Parameters
Text Symbol: 022 =
Text Symbol: 017 = File name
Text Symbol: 016 = Format tree
Text Symbol: 015 = Company Code
Text Symbol: 014 = Tax on Sales/Purchase Group
Text Symbol: 013 = Reorganization
Text Symbol: 011 = Customized Summarization
Text Symbol: 010 = Summarization by Tax Code
Text Symbol: 009 = Save to PC
Text Symbol: 008 = Save on Application Server
Text Symbol: 007 = Company Code
Text Symbol: 006 = Tax on Sls/Purch Grp
Text Symbol: 005 = Customized Screen Fields
Text Symbol: 002 = Output Control
Text Symbol: 001 = General Selections
INCLUDE RFUVXX00_TOP.
INCLUDE RFUVXX00_F00.
No SAP DATABASE tables are accessed within this REPORT code!
SET_ARROW_ICON CALL FUNCTION 'SET_ARROW_ICON' EXPORTING i_parameter = lc_xentries i_icon_text = text-fbu IMPORTING e_arrow_icon = fbutton.
SET_ARROW_ICON CALL FUNCTION 'SET_ARROW_ICON' EXPORTING i_parameter = lc_xentries i_icon_text = text-fbu IMPORTING e_arrow_icon = fbutton2.
KD_GET_FILENAME_ON_F4 CALL FUNCTION 'KD_GET_FILENAME_ON_F4' EXPORTING static = 'X' CHANGING file_name = par_fil2.
DIC2DYN CALL FUNCTION 'DIC2DYN' EXPORTING i_saptabname = stf_dmee-param_struc i_tittext = text-005 IMPORTING e_xsapentry = lc_xsapentry CHANGING c_sapentries = lc_sappar.
DIC2DYN CALL FUNCTION 'DIC2DYN' EXPORTING i_saptabname = stf_dmee-param_struc i_tittext = text-005 IMPORTING e_xsapentry = lc_xsapentry CHANGING c_sapentries = lc_sappar.
HELP_OBJECT_SHOW CALL FUNCTION 'HELP_OBJECT_SHOW' EXPORTING dokclass = 'DE' * DOKLANGU = SY-LANGU dokname = 'BUKRS' TABLES links = my_tline EXCEPTIONS object_not_found = 1 sapscript_error = 2 OTHERS = 3.
HELP_OBJECT_SHOW CALL FUNCTION 'HELP_OBJECT_SHOW' EXPORTING dokclass = 'DE' * DOKLANGU = SY-LANGU dokname = 'UMKRS' TABLES links = my_tline EXCEPTIONS object_not_found = 1 sapscript_error = 2 OTHERS = 3.
ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING address_selection = selection IMPORTING address_value = address_value sadr = stf_itab_fsadr EXCEPTIONS address_not_exist = 1 OTHERS = 2.
ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING address_selection = selection IMPORTING address_value = address_value sadr = stf_itab_sadr EXCEPTIONS address_not_exist = 1 OTHERS = 2.
ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING address_selection = selection IMPORTING address_value = address_value sadr = stf_itab_sadr EXCEPTIONS address_not_exist = 1 OTHERS = 2.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = tree_type i_tree_id = par_id2 item = dmee_item_2 * param = lc_sappar uparam = lc_sappar TABLES file_output = output sort_fields = sort-fields.
TAX_REP_SORT_DMEE_TABLE CALL FUNCTION 'TAX_REP_SORT_DMEE_TABLE' TABLES t_item = lt_tax_item_2 t_dme_sortfields = sort-fields.
DMEE_PUT_ITEM CALL FUNCTION 'DMEE_PUT_ITEM' EXPORTING item = dmee_item_2 * param = lc_sappar uparam = lc_sappar TABLES file_output = output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = tree_type i_tree_id = par_id3 item = dmee_item_3 * param = lc_sappar uparam = lc_sappar TABLES file_output = output.
DMEE_PUT_ITEM CALL FUNCTION 'DMEE_PUT_ITEM' EXPORTING item = dmee_item_3 * param = lc_sappar uparam = lc_sappar TABLES file_output = output.
DMEE_END CALL FUNCTION 'DMEE_END' EXPORTING uparam = lc_sappar * param = lc_sappar IMPORTING e_xml = lf_xml TABLES file_output = output.
GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = filename filetype = 'ASC' TABLES data_tab = it_pcfile "884613 EXCEPTIONS file_write_error = 1 OTHERS = 22.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING * CLIENT = SY-MANDT LOGICAL_FILENAME = gc_filename PARAMETER_1 = sy-cprog * PARAMETER_2 = ' ' * PARAMETER_3 = ' ' * WITH_FILE_EXTENSION = ' ' * USE_BUFFER = ' ' * ELIMINATE_BLANKS = 'X' * IMPORTING * VALIDATION_ACTIVE = * TS_ALIAS = CHANGING PHYSICAL_FILENAME = par_file EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3 .
CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = file_name FILETYPE = 'ASC' codepage = '0000' write_lf = space "do not append CR/LF trunc_trailing_blanks = space "do not delete any blanks trunc_trailing_blanks_eol = space "do not delete any blanks TABLES DATA_TAB = it_str EXCEPTIONS FILE_WRITE_ERROR = 1 OTHERS = 22.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING * CLIENT = SY-MANDT LOGICAL_FILENAME = gc_filename PARAMETER_1 = sy-cprog * PARAMETER_2 = ' ' * PARAMETER_3 = ' ' * WITH_FILE_EXTENSION = ' ' * USE_BUFFER = ' ' * ELIMINATE_BLANKS = 'X' * IMPORTING * VALIDATION_ACTIVE = * TS_ALIAS = CHANGING PHYSICAL_FILENAME = par_file EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3 .
DMEE_HANDLE_XML_DOCUMENT CALL FUNCTION 'DMEE_HANDLE_XML_DOCUMENT' EXPORTING i_save = space i_display = display.
DMEE_GET_XML_DATA * CALL FUNCTION 'DMEE_GET_XML_DATA' * IMPORTING * e_xmlsize = xmlsize * TABLES * t_xmltable = xml_c_tab.
GUI_DOWNLOAD * CALL FUNCTION 'GUI_DOWNLOAD' * EXPORTING * bin_filesize = xmlsize * filename = filename * filetype = 'BIN' * TABLES * data_tab = xml_c_tab * EXCEPTIONS * file_write_error = 1 * OTHERS = 22.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING * CLIENT = SY-MANDT LOGICAL_FILENAME = gc_filename PARAMETER_1 = sy-cprog * PARAMETER_2 = ' ' * PARAMETER_3 = ' ' * WITH_FILE_EXTENSION = ' ' * USE_BUFFER = ' ' * ELIMINATE_BLANKS = 'X' * IMPORTING * VALIDATION_ACTIVE = * TS_ALIAS = CHANGING PHYSICAL_FILENAME = par_file EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3 .
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 RFUVXX00 or its description.