HCOCONS0 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 HCOCONS0 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
PC00_M38_CONS - Consignment Unemployment Fund
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: S_ENTIT = Entity
Selection Text: P_DATEP = Creation date
Selection Text: P_ARPLA = File
Title: Consignment Unemployment Fund
Text Symbol: T03 = *** ENTITY NOT FOUND IN IT0831 ***
Text Symbol: T02 = Document No.
Text Symbol: T01 = Name
Text Symbol: S09 = Unemployment details file
Text Symbol: S08 = Unemployment form file
Text Symbol: S07 = Layout variant
Text Symbol: S06 = Special run
Text Symbol: S05 = Payroll reason
Text Symbol: S04 = Period selection
Text Symbol: S03 = Payroll area
Text Symbol: S02 = t
Text Symbol: S01 = Period
Text Symbol: P05 = PC archive
Text Symbol: P04 = Control Grid ALV
Text Symbol: P03 = SAP List ALV
Text Symbol: P02 = Off-cycle payroll
Text Symbol: P01 = Regular payroll run
Text Symbol: 008 = Payment date:
Text Symbol: 007 = File (all) (*.*)|*.*|
Text Symbol: 006 = Text templates (*.TXT)|*.TXT|
Text Symbol: 005 = Set file name
Text Symbol: 004 = Other selections
Text Symbol: 003 = Payroll period
Text Symbol: 002 = Consignment to Unemployment Fund
Text Symbol: 001 = Output
INCLUDE: PCFTBCO0, " TABLES COLOMBIA
PCIFTCO0, " INFOTYPES COLOMBIA
PCALVCO0, " ALV COLOMBIA
No SAP DATABASE tables are accessed within this REPORT code!
RP_SET_NAME_FORMAT CALL FUNCTION 'RP_SET_NAME_FORMAT' EXPORTING repid = gl_calcreport IMPORTING format = $$format.
HRCO_HIRE_FIRE CALL FUNCTION 'HRCO_HIRE_FIRE' EXPORTING pernr = pernr-pernr begda = pn-begda endda = pn-endda IMPORTING hiredate = gl_hiredate firedate = gl_firedate TABLES pp0000 = p0000 pp0001 = p0001.
HRCA_COSTCENTER_TEXT CALL FUNCTION 'HRCA_COSTCENTER_TEXT' EXPORTING controllingarea = p0001-kokrs costcenter = p0001-kostl IMPORTING name = gl_ktext EXCEPTIONS nothing_found = 1 OTHERS = 2.
GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = $output_file filetype = 'ASC' write_field_separator = ' ' trunc_trailing_blanks = ' ' TABLES data_tab = $tab_down 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.
WS_FILE_ATTRIB CALL FUNCTION 'WS_FILE_ATTRIB' EXPORTING file = $pc_file attrib = 'R+' IMPORTING return = gl_return_code EXCEPTIONS OTHERS = 1.
REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = p_gl_alv_template i_save = 'A' IMPORTING e_exit = lv_rc es_variant = p_gl_alv_template EXCEPTIONS not_found = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = sy-repid i_callback_pf_status_set = slis_ev_pf_status_set i_callback_user_command = slis_ev_user_command i_callback_top_of_page = slis_ev_top_of_page is_layout = st_layout it_fieldcat = it_fieldcat[] it_sort = it_sort[] i_default = pco00_check i_save = c_save is_variant = st_variant it_events = it_events[] is_print = st_print TABLES t_outtab = dataemployee EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_alv_list_top_of_page[].
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.