SAP Reports / Programs | Payroll(PY) SAP PY

HROCFIS0 SAP ABAP Report - Fiscal statements







HROCFIS0 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 HROCFIS0 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 HROCFIS0. "Basic submit
SUBMIT HROCFIS0 AND RETURN. "Return to original report after report execution complete
SUBMIT HROCFIS0 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: PA_FORMX = Split Documents
Selection Text: PA_PDF = PDF Form Name
Selection Text: P_DITXO = Different files for tax office
Selection Text: P_EMAIL = E-mail
Selection Text: P_ERR = Display errors
Selection Text: P_FAX = Fax number
Selection Text: P_FF07 = 2007
Selection Text: P_FF08 = 2008
Selection Text: P_FILEA = Save ASCII text file
Selection Text: P_FILED = Save DBF file
Selection Text: P_FNAME = File name prefix
Selection Text: P_TEL = Phone number
Selection Text: P_TAXOF = Tax office
Selection Text: P_RET00 = IT 0000 Reason for Action
Selection Text: P_REPR2 = Director economic
Selection Text: P_REPR = Director general
Selection Text: P_RECT = Rectifying statement
Selection Text: P_PRN = Spool Output Device
Selection Text: P_PRINT = Display data
Selection Text: P_OUTPUT = ALV Output
Selection Text: P_LASTT = Get last tax office for period
Selection Text: P_FPNAM = PDF Form Name
Title: Fiscal statements
Text Symbol: P09 = , bl.
Text Symbol: P10 = , ap.
Text Symbol: P11 = area/region
Text Symbol: P12 = was employed in our company starting with:
Text Symbol: P13 = until
Text Symbol: P14 = on the following position:
Text Symbol: P15 = Gross income, personal deductions and tax
Text Symbol: P16 = are presented in the following table:
Text Symbol: P17 = _
Text Symbol: PDF = PDF Output
Text Symbol: S01 = Restriction
Text Symbol: S02 = Get Tax Office from
Text Symbol: S03 = Infotype 519
Text Symbol: S04 = grouping T7RO01P-GETFUL
Text Symbol: S05 = File format





Text Symbol: S06 = 2008
Text Symbol: S07 = 2007
Text Symbol: S08 = File name format:
Text Symbol: S09 = File Name Prefix
Text Symbol: S10 = Add Fiscal Code
Text Symbol: S11 = Remove TaxOf Leadin Zero
Text Symbol: P08 = , str.
Text Symbol: C11 = BaseForTax
Text Symbol: C10 = Period
Text Symbol: C09 = Tax
Text Symbol: C08 = Base for tax
Text Symbol: C07 = OtherDeduc
Text Symbol: C06 = Other deductions
Text Symbol: C05 = PersDeduct
Text Symbol: C04 = Personal deductions
Text Symbol: C03 = Gross income
Text Symbol: 013 = Gross Income:
Text Symbol: 012 = TaxCalc:
Text Symbol: 011 = BaseForTax:
Text Symbol: 010 = OtherDeduct:
Text Symbol: 009 = Record not found in the table t7hro01p for werks/btrtl:
Text Symbol: 008 = No errors
Text Symbol: 007 = Record not found in the table t7ro20 for tax office:
Text Symbol: 006 = Per.Num:
Text Symbol: 005 = Tax office:
Text Symbol: 004 = Vargu:
Text Symbol: 003 = PerDeduct:
Text Symbol: 002 = Family CNP:
Text Symbol: 001 = Period:
Text Symbol: P07 = living in:
Text Symbol: P04 = , no.
Text Symbol: P02 = CNP
Text Symbol: P01 = It is certified that mister/mrs.:
Text Symbol: I01 = Nr. of processed PERNRs:
Text Symbol: H13 = Fiscal Code
Text Symbol: H12 = , area/district
Text Symbol: H11 = ap.
Text Symbol: H10 = , floor
Text Symbol: H09 = , stair





Text Symbol: H08 = , flat
Text Symbol: H07 = no.
Text Symbol: H06 = Street
Text Symbol: H05 = Company
Text Symbol: H04 = regarding the salary income tax in year
Text Symbol: H03 = EMPLOYEE LIST
Text Symbol: H02 = Output
Text Symbol: H01 = Fiscal statement options
Text Symbol: F05 = (Administrator)
Text Symbol: F04 = Economic Director,
Text Symbol: F03 = Director,
Text Symbol: F01 = We are assuming the responsibility for the reality of the informations presented above


INCLUDES used within this REPORT HROCFIS0

INCLUDE HROIREP0. "AKU, NT1826827
INCLUDE HROIREP4. "AKU, NT1826827
INCLUDE HROUSFP1.
INCLUDE HROUSFP2.


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:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 1 text = lv_indicator_text.

HR_RO_READ_PYRES_INTERVAL CALL FUNCTION 'HR_RO_READ_PYRES_INTERVAL' EXPORTING pernr = pernr-pernr mode = 'M' * begda = pn-begda "nt1391672 begda = gv_pnbegd "nt1391672 endda = pn-endda * bondt = bondt * payty = payty * payid = payid tprun = '' tpall = '' initb = 'X' "nt1341979ins TABLES runs = it_runs myrg = it_myrg rtdet = it_rtdet.

HR_RO_TAXFREE_FM CALL FUNCTION 'HR_RO_TAXFREE_FM' EXPORTING pernr = pernr-pernr begda = pn-begda endda = pn-endda * GBASE = IMPORTING persc = wa_fs-persons_in_care * PERSA = EXCEPTIONS OTHERS = 1.

MONTH_NAMES_GET CALL FUNCTION 'MONTH_NAMES_GET' EXPORTING language = '4' "RO TABLES month_names = lt_month_names EXCEPTIONS month_names_not_found = 1 OTHERS = 2.

HR_RO_GET_ADDRESS CALL FUNCTION 'HR_RO_GET_ADDRESS' EXPORTING anart = 'RO' vargu = ls_fs-vargu IMPORTING ev_street = ls_pdf_fs-er_street ev_number = ls_pdf_fs-er_number ev_flat = ls_pdf_fs-er_flat ev_stair = ls_pdf_fs-er_stair ev_floor = ls_pdf_fs-er_floor ev_apart = ls_pdf_fs-er_apart ev_area = ls_pdf_fs-er_area ev_distr = ls_pdf_fs-er_distr ev_ername = ls_pdf_fs-er_ername ev_prefix = ls_pdf_fs-er_prefix ev_suffix = ls_pdf_fs-er_suffix ev_fiscode = ls_pdf_fs-er_fiscode EXCEPTIONS no_data = 1 OTHERS = 2.

HR_RO_DOWNLOAD CALL FUNCTION 'HR_RO_DOWNLOAD' EXPORTING filename = write_file filetype = 'DBF' TABLES data_tab = dbff fieldnames = lv_header.

HR_RO_DOWNLOAD CALL FUNCTION 'HR_RO_DOWNLOAD' EXPORTING filename = write_file filetype = 'DBF' TABLES data_tab = dbff07 fieldnames = lv_header.

HR_RO_DOWNLOAD CALL FUNCTION 'HR_RO_DOWNLOAD' EXPORTING * bin_filesize = size "DBENT1026716 filename = write_file filetype = 'ASC' TABLES data_tab = p_fsfs.

HR_RO_GET_ADDRESS CALL FUNCTION 'HR_RO_GET_ADDRESS' EXPORTING anart = 'RO' vargu = ps_fs-vargu IMPORTING ev_street = ls_address-street ev_number = ls_address-number ev_flat = ls_address-flat ev_stair = ls_address-stair ev_floor = ls_address-floor ev_apart = ls_address-apart ev_area = ls_address-area ev_distr = ls_address-distr ev_ername = ls_address-ername ev_prefix = ls_address-prefix ev_suffix = ls_address-suffix ev_fiscode = ls_address-fiscode EXCEPTIONS no_data = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = lv_repid is_layout = ls_layout it_fieldcat = pt_alv_fieldcat it_events = pt_events IMPORTING es_exit_caused_by_user = ls_exit TABLES t_outtab = pt_fs EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_EVENTS_GET



CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = pt_events[].

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_alv_header.



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