SAP Reports / Programs

RFUVPT00 SAP ABAP Report -







RFUVPT00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report program RFUVPT00 creates a tax declaration for Portugal...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 RFUVPT00 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 RFUVPT00. "Basic submit
SUBMIT RFUVPT00 AND RETURN. "Return to original report after report execution complete
SUBMIT RFUVPT00 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_LSTDCL = Last periodic declaration?
Selection Text: P_INVAT = VAT Sys. Intra Com Transact.
Selection Text: P_INTGT = Integrate ECSL file?
Selection Text: P_HQLOCM = Madeira
Selection Text: P_HQLOCC = Continents
Selection Text: P_HQLOCA = Azores
Selection Text: P_FSTDEC = First periodic declaration?
Selection Text: P_FSTDCL = First Message
Selection Text: P_FSCCH = FISCAL-ID of Chartered Accntt
Selection Text: P_EXEREP = Exceeding To Be Reported
Selection Text: P_ENDDT = Date for Ending Activity
Selection Text: P_DMEE = D .
Selection Text: P_DDLINE = Within deadline?
Selection Text: P_CONT = Continents
Selection Text: P_BVPER = Sales Revenue
Selection Text: P_AZOR = Azores
Selection Text: P_ART3Y2 = Operation Ref to Art. 3 (App)
Selection Text: P_ART3Y = Operation Ref to Art. 3
Selection Text: P_APMDT3 = Ver. Appendix M (Madeira)
Selection Text: P_APMDT2 = Ver. Appendix M (Azores)
Selection Text: P_APMDT1 = Ver. Appendix M (Continents)
Selection Text: P_APLDT1 = Version Appendix L
Selection Text: P_ACTVCD = Indicator of Business Activity
Selection Text: P_ACTFA = Activities with Fixed Assets
Selection Text: PAR_SPRA = Language
Selection Text: PANMTXAM = Tax Amount
Selection Text: PANMOPYR = Operation in reporting year?
Selection Text: PANMBSAM = Not Closed by December 31
Selection Text: PANMATRV = Premature Revenues
Selection Text: VERSI_M = Version for Monthly Return
Selection Text: VERSI_A = Version for Annual Return
Selection Text: TREE_ID = Format Tree
Selection Text: P_VRTRM = Vrsn - Transportation Means
Selection Text: P_VRDET4 = Version for VAT Det4
Selection Text: P_VRDET3 = Version for VAT Det3
Selection Text: P_VRDET2 = Version for VAT Det2
Selection Text: P_VRDET1 = Version for VAT Det1
Selection Text: P_VRAPR6 = Appendix R Detail 2 (3)





Selection Text: P_VRAPR5 = Appendix R Detail 1 (3)
Selection Text: P_VRAPR4 = Version for App R Det2 2
Selection Text: P_VRAPR3 = Version for App R Det2 1
Selection Text: P_VRAPR2 = Version for App R Det1 2
Selection Text: P_VRAPR1 = Version for App R Det1 1
Selection Text: P_TXVATC = Tax Rebate on Basis of DSCIVA
Selection Text: P_TXLGRP = Tax No.:Company Representative
Selection Text: P_TXCHAC = Tax Number: Tax Consultant
Selection Text: P_TXAHCD = ID of Tax Authority
Selection Text: P_TROTHM = Madeira
Selection Text: P_TROTHC = Continents
Selection Text: P_TROTHA = Azores
Selection Text: P_STDT = Starting Date in VAT System
Selection Text: P_SBTDCL = Substitution Return
Selection Text: P_RFNDRQ = Refund Request
Selection Text: P_PRD_TO = To Period
Selection Text: P_PRDFRM = From Period
Selection Text: P_PRD = Period / Year
Selection Text: P_OPREF = No Op. in Referred Period
Selection Text: P_MADI = Madeira
Selection Text: PANLTXAM = Tax Amount
Selection Text: APPLFIAP = File Name - Application Server
Selection Text: APPLFILE = File Name - Local
Selection Text: APPL_O_P = D .
Selection Text: B_MONTH = Monthly Return
Selection Text: B_NO = List Without Tax Return
Selection Text: B_YEAR = Annual Return
Selection Text: FILE = File Name - Local
Selection Text: FILEINT = ECSL File Name (AS)
Selection Text: FILE_AP = File Name - Application Server
Selection Text: LEVEL1 = Tax Groups
Selection Text: LEVEL2 = Tax Code
Selection Text: LEVEL3 = Documents
Selection Text: PANLATRV = Premature Revenues
Selection Text: PANLBSAM = Not Closed by December 31
Selection Text: PANLOPYR = Operation in reporting year?
Title:
Text Symbol: 250 = Form for completing sales/purchase tax declaration
Text Symbol: 246 = Document type





Text Symbol: 245 = Document number
Text Symbol: 244 = Fiscal year
Text Symbol: 243 = To
Text Symbol: 242 = from
Text Symbol: 241 = Period
Text Symbol: 240 = Date
Text Symbol: 222 = Annual tax return
Text Symbol: 221 = Monthly tax return
Text Symbol: 220 = Amounts not specified in the tax return
Text Symbol: 208 = Doc. item
Text Symbol: 207 = Document no.
Text Symbol: 206 = Tax code
Text Symbol: 205 = Frames
Text Symbol: 204 = Tax amount
Text Symbol: 203 = Tax Base Amount
Text Symbol: 202 = text
Text Symbol: 201 = Page
Text Symbol: 200 = Company Code
Text Symbol: 251 = Tax code not allocated to annual return
Text Symbol: 252 = Tax code not allocated to monthly return
Text Symbol: 300 = Mess. type
Text Symbol: 301 = OutputType
Text Symbol: 302 = Currncy
Text Symbol: 400 = Deb./Cred.
Text Symbol: 401 = Revers.doc.
Text Symbol: 402 = CreditMemo
Text Symbol: 500 = Periodic File O/P Params
Text Symbol: 501 = Tax Group Versions
Text Symbol: 502 = File Parameters
Text Symbol: 503 = Detail Parameters DPIVA
Text Symbol: 504 = Company Headquarter Location
Text Symbol: 505 = Transaction in Area Other than Headquarters
Text Symbol: 506 = Annual File O/P Params
Text Symbol: 507 = Detail Parameter(Append)
Text Symbol: 508 = Select Appendixes
Text Symbol: 509 = Detail Parameter (App L)
Text Symbol: 510 = Detail Parameter (App M)
Text Symbol: 511 = Select "Annual" radio button for annual submission
Text Symbol: 512 = Select "Periodic" radio button for periodic submission



Text Symbol: 517 = /


INCLUDES used within this REPORT RFUVPT00

INCLUDE RFUVPT00_ALVLIST.


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:

CALCULATE_TAX_FROM_GROSSAMOUNT call function 'CALCULATE_TAX_FROM_GROSSAMOUNT' EXPORTING i_bukrs = t001-bukrs i_mwskz = bset-mwskz i_waers = t001-waers i_wrbtr = brutto IMPORTING E_FWSTE = STEUER TABLES t_mwdat = dummy.

CHECK_PLANTS_ABROAD_ACTIVE CALL FUNCTION 'CHECK_PLANTS_ABROAD_ACTIVE' EXPORTING i_bukrs = br_bukrs-low IMPORTING e_fi_isactive = plants_abroad_active.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = gui_file filetype = 'ASC' * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' trunc_trailing_blanks_eol = ' ' "928726 * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = TABLES data_tab = downtab EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22.

CHECK_PLANTS_ABROAD_ACTIVE CALL FUNCTION 'CHECK_PLANTS_ABROAD_ACTIVE' EXPORTING i_bukrs = br_bukrs-low IMPORTING e_fi_isactive = plants_abroad_active.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename parameter_1 = sy-repid parameter_2 = br_bukrs-low parameter_3 = 'PERIOD_WRITE' CHANGING physical_filename = p_sefile_name EXCEPTIONS OTHERS = 1.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename parameter_1 = sy-repid parameter_2 = br_bukrs-low parameter_3 = 'PERIOD_READ' CHANGING physical_filename = p_sefile_name EXCEPTIONS OTHERS = 1.

DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = tree_typ i_tree_id = tree_id item = dmee_item_3 uparam = space TABLES file_output = output.

DMEE_PUT_ITEM CALL FUNCTION 'DMEE_PUT_ITEM' EXPORTING item = dmee_item_3 uparam = space TABLES file_output = output.

DMEE_END CALL FUNCTION 'DMEE_END' EXPORTING uparam = space IMPORTING e_xml = lf_xml TABLES file_output = output.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename parameter_1 = sy-repid parameter_2 = br_bukrs-low parameter_3 = 'YEAR_READ' CHANGING physical_filename = appl_o_p EXCEPTIONS OTHERS = 1.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename parameter_1 = sy-repid parameter_2 = br_bukrs-low parameter_3 = 'YEAR_WRITE' CHANGING physical_filename = applfiap EXCEPTIONS OTHERS = 1.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = gui_file filetype = 'ASC' * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' trunc_trailing_blanks_eol = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = TABLES data_tab = itab_local EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22.

DMEE_HANDLE_XML_DOCUMENT * CALL FUNCTION 'DMEE_HANDLE_XML_DOCUMENT' * EXPORTING * i_filename = filename * i_save = 'X' * i_display = space.



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