SAP Reports / Programs

HCOCERT0 SAP ABAP Report - Income and withholdings certificate







HCOCERT0 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 HCOCERT0 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

PC00_M38_CERT - Income & Withholdings certificate


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 HCOCERT0. "Basic submit
SUBMIT HCOCERT0 AND RETURN. "Return to original report after report execution complete
SUBMIT HCOCERT0 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_TEXT = Text for signature
Selection Text: P_PYYRS = Taxable year
Selection Text: P_FORM = Form
Selection Text: P_FEEXP = Issue date
Selection Text: P_DEAR = Text Decree and Article
Title: Income and withholdings certificate
Text Symbol: T02 = Document No.
Text Symbol: T01 = Name
Text Symbol: S17 = Class.
Text Symbol: S08 = PC file template
Text Symbol: S07 = Layout variant
Text Symbol: S06 = ALV Grid control: Layout
Text Symbol: S05 = Form
Text Symbol: S04 = Output
Text Symbol: S03 = For; payroll periods view
Text Symbol: S02 = View In payroll periods
Text Symbol: S01 = Period determination
Text Symbol: P06 = Taxable year
Text Symbol: P05 = Excel
Text Symbol: P04 = ALV grid control
Text Symbol: P03 = SAP List ALV
Text Symbol: P02 = Off-cycle payroll
Text Symbol: P01 = Regular payroll run
Text Symbol: B02 = Payroll period
Text Symbol: B01 = Payroll period
Text Symbol: 005 = Text module
Text Symbol: 004 = t
Text Symbol: 003 = Period:
Text Symbol: 002 = Income and withholdings certificate
Text Symbol: 001 = ALV output
Text Symbol: 000 = Other selections


INCLUDES used within this REPORT HCOCERT0

INCLUDE: PCFTBCO0, " TABLES COLOMBIA
PCIFTCO0, " INFOTYPES COLOMBIA
PCALVCO0, " ALV COLOMBIA


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:

BAPI_CURRENCY_GETDECIMALS CALL FUNCTION 'BAPI_CURRENCY_GETDECIMALS' EXPORTING currency = pco00_cuky IMPORTING currency_decimals = lt_curdec return = lv_return.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = ov_template i_save = 'A' IMPORTING e_exit = lv_rc es_variant = ov_template EXCEPTIONS not_found = 1 program_error = 2 OTHERS = 3.

SSF_FUNCTION_MODULE_NAME CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = p_form IMPORTING fm_name = func_mod_name EXCEPTIONS no_form = 1 no_function_module = 2 OTHERS = 3.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' CHANGING cs_variant = ov_template EXCEPTIONS not_found = 1 OTHERS = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = 'A' CHANGING cs_variant = ov_template EXCEPTIONS not_found = 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 = 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[].

BAPI_CURRENCY_GETDECIMALS CALL FUNCTION 'BAPI_CURRENCY_GETDECIMALS' EXPORTING currency = pco00_cuky IMPORTING currency_decimals = lt_curdec return = lv_return.

RP_HIRE_FIRE CALL FUNCTION 'RP_HIRE_FIRE' EXPORTING beg = p_begda_year end = p_endda_year IMPORTING hire_date = datum1 fire_date = datum2 TABLES pp0000 = pp0000 "input pp0001 = pp0001 "input pphifi = phifi. "output

PYXX_READ_PAYROLL_RESULT CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' EXPORTING clusterid = gl_relid employeenumber = pernr-pernr sequencenumber = lc_st_evp-seqnr read_only_international = ' ' CHANGING payroll_result = lc_st_result EXCEPTIONS illegal_isocode_or_clusterid = 1 error_generating_import = 2 import_mismatch_error = 3 subpool_dir_full = 4 no_read_authority = 5 no_record_found = 6 versions_do_not_match = 7 OTHERS = 8.

CA_CU_READ_RGDIR_NEW CALL FUNCTION 'CA_CU_READ_RGDIR_NEW' EXPORTING persnr = p_pernr_pernr IMPORTING molga = p_gl_molga TABLES cu_ca_rgdir = pt_rgdir EXCEPTIONS no_record_found = 1 OTHERS = 2.

PYXX_READ_PAYROLL_RESULT CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' EXPORTING clusterid = p_gt_relid employeenumber = p_pernr sequencenumber = lc_st_evp-seqnr read_only_international = ' ' CHANGING payroll_result = lc_st_result EXCEPTIONS illegal_isocode_or_clusterid = 1 error_generating_import = 2 import_mismatch_error = 3 subpool_dir_full = 4 no_read_authority = 5 no_record_found = 6 versions_do_not_match = 7 OTHERS = 8.



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