SAP Reports / Programs

HROCSI30 SAP ABAP Report - SI - EE Contribution H







HROCSI30 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 HROCSI30 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 HROCSI30. "Basic submit
SUBMIT HROCSI30 AND RETURN. "Return to original report after report execution complete
SUBMIT HROCSI30 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_SUBTY = Sick Leave Addit. Inf. Subtype
Selection Text: P_FILE = File name
Selection Text: P_HEHID = Health house
Selection Text: P_INSUH = Grp. for ER SL Fund
Selection Text: P_LGART = Wage type
Selection Text: P_TEMPL = Template
Title: SI - EE Contribution H
Text Symbol: 001 = Output options
Text Symbol: 002 = Error: Wage type
Text Symbol: 003 = dosen't have reference to the AB table for person:
Text Symbol: E01 = Difference in absence average bigger than 1.
Text Symbol: H10 = Restriction
Text Symbol: H11 = Output
Text Symbol: M01 = Print document and close MS Word for next declaration.
Text Symbol: S01 = Display output data
Text Symbol: S02 = ALV variant
Text Symbol: S03 = Download
Text Symbol: S04 = Print form
Text Symbol: S05 = Cumulate absences
Text Symbol: S06 = Print Errors


INCLUDES used within this REPORT HROCSI30

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:

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

HR_RO_GENWS_IN_INTERVAL CALL FUNCTION 'HR_RO_GENWS_IN_INTERVAL' EXPORTING begda = wa_myrg-fpbeg endda = wa_myrg-fpend mofid = wa_t001p-mofid TABLES i0000 = p0000 "im76566 i2003 = p2003 gpsp = gws.

HR_RO_GET_AVGAC CALL FUNCTION 'HR_RO_GET_AVGAC' EXPORTING p_datum = wa_myrg-fpend IMPORTING p_avgac = gv_avgac p_decimals = gv_dec.

SLS_MISC_GET_LAST_DAY_OF_MONTH CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH' EXPORTING day_in = lv_pn_obegd IMPORTING last_day_of_month = lv_pn_oendd EXCEPTIONS day_in_not_valid = 1 OTHERS = 2.

HR_RO_READ_PYRES_INTERVAL CALL FUNCTION 'HR_RO_READ_PYRES_INTERVAL' EXPORTING pernr = pernr-pernr mode = 'A' begda = lv_pn_obegd endda = lv_pn_oendd inper = wa_rtdet-inter-versc-inper tprun = '' tpall = '' TABLES runs = it_runs2 myrg = it_myrg2 rtdet = it_rtdet2.

SLS_MISC_GET_LAST_DAY_OF_MONTH CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH' EXPORTING day_in = lv_pn_obegd IMPORTING last_day_of_month = lv_pn_oendd EXCEPTIONS day_in_not_valid = 1 OTHERS = 2.

HR_RO_READ_PYRES_INTERVAL CALL FUNCTION 'HR_RO_READ_PYRES_INTERVAL' EXPORTING pernr = pernr-pernr mode = 'A' begda = lv_pn_obegd endda = lv_pn_oendd inper = wa_rtdet-inter-versc-inper tprun = '' tpall = '' TABLES runs = it_runs2 myrg = it_myrg2 rtdet = it_rtdet2.

SLS_MISC_GET_LAST_DAY_OF_MONTH CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH' EXPORTING day_in = lv_pn_obegd IMPORTING last_day_of_month = lv_pn_oendd EXCEPTIONS day_in_not_valid = 1 OTHERS = 2.

HR_RO_READ_PYRES_INTERVAL CALL FUNCTION 'HR_RO_READ_PYRES_INTERVAL' EXPORTING pernr = pernr-pernr mode = 'A' begda = lv_pn_obegd endda = lv_pn_oendd inper = wa_rtdet-inter-versc-inper tprun = '' tpall = '' TABLES runs = it_runs2 myrg = it_myrg2 rtdet = it_rtdet2.

HR_RO_WORKDAYS_IN_INTERVAL CALL FUNCTION 'HR_RO_WORKDAYS_IN_INTERVAL' EXPORTING begda = wa_myrg-fpbeg endda = wa_myrg-fpend mofid = t001p-mofid TABLES i2003 = p2003 CHANGING wrkdays = ws_wdays holidays = ws_hdays.

HR_RO_DOWNLOAD CALL FUNCTION 'HR_RO_DOWNLOAD' EXPORTING filename = write_file filetype = 'DBF' filetype_no_show = 'X' TABLES data_tab = it_dbf2 fieldnames = it_header.

HR_RO_DOWNLOAD CALL FUNCTION 'HR_RO_DOWNLOAD' EXPORTING filename = write_file filetype = 'DBF' filetype_no_show = 'X' TABLES data_tab = it_dbf2 fieldnames = it_header.

HR_RO_SPLIT_COMPLETE_FILENAME CALL FUNCTION 'HR_RO_SPLIT_COMPLETE_FILENAME' EXPORTING complete_filename = fnam IMPORTING drive = drive path = path EXCEPTIONS invalid_drive = 1 invalid_extension = 2 invalid_name = 3 invalid_path = 4 OTHERS = 5.

MS_WORD_OLE_FORMLETTER CALL FUNCTION 'MS_WORD_OLE_FORMLETTER' EXPORTING download_path = p_downp word_document = p_templ new_document = ' ' file_name = 'SAPDATA' TABLES data_tab = it_doc fieldnames = it_header EXCEPTIONS invalid_fieldnames = 1 user_cancelled = 2 download_problem = 3 communication_error = 4 OTHERS = 5.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = repid it_fieldcat = fc[] is_variant = alvari i_save = 'X' TABLES t_outtab = it_dbf.

PC_OLE_SERVER_CHECK CALL FUNCTION 'PC_OLE_SERVER_CHECK' IMPORTING down_load_path = path TABLES ole_server_app = ole_servers EXCEPTIONS unsupported_os = 01 unsupported_server = 02 no_ole_server_found = 03.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING it_fieldcat = fc[] TABLES t_outtab = it_error.



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