HCODIAN0 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 HCODIAN0 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_DIAN - DIAN magnetic means
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_PYTY = Payroll type
Selection Text: S_EVCLV = Concept (evaluation class)
Selection Text: P_GJAHR = Year
Title: Magnetic means - DIAN report
Text Symbol: P05 = Flat file
Text Symbol: P06 = Magnetic means application table
Text Symbol: S01 = Period
Text Symbol: S02 = to
Text Symbol: S03 = Payroll area
Text Symbol: S04 = Period selection
Text Symbol: S05 = Payroll reason
Text Symbol: S06 = Special run
Text Symbol: S07 = Layout variant
Text Symbol: S08 = PC file template
Text Symbol: S09 = Table name
Text Symbol: T01 = NIT number
Text Symbol: T02 = Name
Text Symbol: T03 = Person. no.
Text Symbol: T04 = Withhold.
Text Symbol: T05 = Employer
Text Symbol: T06 = Employee
Text Symbol: T11 = Concept value
Text Symbol: T12 = Withholding
Text Symbol: P04 = ALV grid control
Text Symbol: 001 = Output
Text Symbol: 002 = Company
Text Symbol: 003 = Period
Text Symbol: 004 = Variant
Text Symbol: 005 = Info. to be generated
Text Symbol: 006 = - Entities
Text Symbol: 007 = Other selections
Text Symbol: 008 = The Results table will be initialized for other posting period
Text Symbol: 009 = Withdrawal
Text Symbol: 010 = Continue?
Text Symbol: 011 = Exists and will be overwritt.
Text Symbol: 012 = Concept
Text Symbol: B01 = Payroll period
Text Symbol: B02 = Payroll period
INCLUDE: PCFTBCO0, " TABLES COLOMBIA
PCIFTCO0, " INFOTYPES COLOMBIA
PCALVCO0, " ALV COLOMBIA
No SAP DATABASE tables are accessed within this REPORT code!
POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting defaultoption = 'J' textline1 = &1 textline2 = &2 titel = &3 importing answer = gc_answer exceptions others = 0.
HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = p_pernr arbgb = pco00_errid msgty = p_msgty msgno = p_error_number msgv1 = p_msgv1 msgv2 = p_msgv2 msgv3 = p_msgv3 msgv4 = p_msgv4 EXCEPTIONS OTHERS = 1.
HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING arbgb = pco00_errid msgty = p_msgty msgno = p_error_number msgv1 = p_msgv1 msgv2 = p_msgv2 msgv3 = p_msgv3 msgv4 = p_msgv4 EXCEPTIONS OTHERS = 1.
HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING no_popup = 'X' no_print = space no_img = space EXCEPTIONS invalid_linesize = 1 OTHERS = 2.
HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING no_popup = 'X' no_print = space no_img = space EXCEPTIONS invalid_linesize = 1 OTHERS = 2.
PA03_PERIODDATES_GET CALL FUNCTION 'PA03_PERIODDATES_GET' EXPORTING f_abkrs = lv_pnpxabkr IMPORTING f_permo = p_lv_permo f_current_begda = p_p_p_begda f_current_endda = p_p_p_endda CHANGING f_current_period = p_p_p_abrp f_current_year = p_p_p_abrj EXCEPTIONS pcr_does_not_exist = 1 abkrs_does_not_exist = 2 period_does_not_exist = 3 OTHERS = 4.
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_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 = dataentity * 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[].
REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' CHANGING cs_variant = p_gl_alv_template EXCEPTIONS not_found = 1 OTHERS = 2.
REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = c_save CHANGING cs_variant = p_gl_alv_template EXCEPTIONS not_found = 1 OTHERS = 2.
REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = p_gl_alv_template i_save = c_save IMPORTING e_exit = lv_rc es_variant = p_gl_alv_template EXCEPTIONS not_found = 1 program_error = 2 OTHERS = 3.
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.
CU_READ_RGDIR_NEW CALL FUNCTION 'CU_READ_RGDIR_NEW' EXPORTING persnr = p_pernr check_read_authority = space IMPORTING molga = lfx_molga TABLES in_rgdir = ltx_rgdir EXCEPTIONS OTHERS = 1.
CD_READ_LAST_RESULT_IN_RGDIR CALL FUNCTION 'CD_READ_LAST_RESULT_IN_RGDIR' IMPORTING ptx_rgdir_nv = lsx_rgdir TABLES pt_rgdir = ltx_rgdir.
PYXX_READ_PAYROLL_RESULT CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' EXPORTING clusterid = lfx_relid employeenumber = p_pernr sequencenumber = lsx_rgdir-seqnr read_only_international = ' ' check_read_authority = ' ' CHANGING payroll_result = lsx_result EXCEPTIONS OTHERS = 1.
ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING address_selection = addr1_sel read_sadr_only = ' ' IMPORTING address_value = wa_address_value sadr = sadr EXCEPTIONS parameter_error = 1 address_not_exist = 2 version_not_exist = 3 internal_error = 4 OTHERS = 5.
BAPI_CURRENCY_GETDECIMALS CALL FUNCTION 'BAPI_CURRENCY_GETDECIMALS' EXPORTING currency = lv_currency IMPORTING currency_decimals = wa_currency_decimals return = lv_return.
OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = gc_awsys EXCEPTIONS own_logical_system_not_defined = 1.
FI_DOCUMENT_RECORD * CALL FUNCTION 'FI_DOCUMENT_RECORD' * EXPORTING * i_awtyp = 'HRPAY' * i_awref = gc_awref * i_awsys = gc_awsys * TABLES * t_documents = it_docum.
FI_DOCUMENT_READ * CALL FUNCTION 'FI_DOCUMENT_READ' * EXPORTING * i_bukrs = it_docum-bukrs * i_belnr = lc_belnr * i_gjahr = it_docum-ac_gjahr * TABLES * t_bkpf = it_bkpf * t_bseg = it_bseg * EXCEPTIONS * wrong_input = 1 * not_found = 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 = it_log EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = p_repid i_internal_tabname = gc_itab i_inclname = p_repid i_bypassing_buffer = pco00_check CHANGING ct_fieldcat = it_fieldcat[] EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = c_save CHANGING cs_variant = st_variant EXCEPTIONS OTHERS = 0.
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 HCODIAN0 or its description.