SAP Reports / Programs | Payroll(PY) SAP PY

HCORETE0 SAP ABAP Report - Recalculation for withholding tax at source







HCORETE0 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 HCORETE0 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_RETE - Half-year procedure


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 HCORETE0. "Basic submit
SUBMIT HCORETE0 AND RETURN. "Return to original report after report execution complete
SUBMIT HCORETE0 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: S_PRCED = Withholding tax procedure
Selection Text: P_VISI = Foreground processing
Selection Text: P_SCHEMA = Payroll schema
Selection Text: P_BEGDA = Start withholding infotype0830
Title: Recalculation for withholding tax at source
Text Symbol: S24 = Last
Text Symbol: S22 = Last
Text Symbol: S21 = Amount
Text Symbol: S20 = Column header
Text Symbol: S10 = W/o wage types
Text Symbol: S09 = Wage types
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: LA8 = Average basis
Text Symbol: L16 = Health contr
Text Symbol: L15 = Proc.
Text Symbol: L14 = Employee name
Text Symbol: L13 = Code
Text Symbol: L12 = Withholding tax pct.
Text Symbol: L11 = Final bas.
Text Symbol: L10 = Tax relief Housing
Text Symbol: L09 = Tax relief Health
Text Symbol: L08 = Worked days
Text Symbol: L07 = Tax base
Text Symbol: L06 = Tax exempt.cum.
Text Symbol: L05 = Bon.basis
Text Symbol: L04 = Bonus cum.
Text Symbol: L03 = Basis - Deduc.
Text Symbol: L02 = Pensions cumulated
Text Symbol: L01 = Cum.12 months
Text Symbol: E01 = Error message not found
Text Symbol: 006 = Second half
Text Symbol: 005 = First half
Text Symbol: 004 = Other selections





Text Symbol: 003 = Logging
Text Symbol: 002 = General control of programm
Text Symbol: 001 = Withholding tax half-year procedure


INCLUDES used within this REPORT HCORETE0

INCLUDE: PCFTBCO0, " TABLES COLOMBIA
PCIFTCO0, " INFOTYPES COLOMBIA
PCALVCO0, " ALV COLOMBIA
HCOPAYMACRO.
INCLUDE RPC2PS00. " CLUSTER OF GENERATED SCHEMAS
INCLUDE RPC2PT00. " CLUSTER OF GENERATED SCHEMAS TEXTS
INCLUDE UP50QDAT. " COMMON PART PSOPER FOR UPDATE TASK
INCLUDE UP50QDAT. " COMMON PART PSOPER FOR UPDATE TASK

INCLUDE RPC2CD09.
INCLUDE RPCFOP00.
INCLUDE RPC2B201.
INCLUDE RPCPLOG0.


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:

DD_DOMVALUE_TEXT_GET CALL FUNCTION 'DD_DOMVALUE_TEXT_GET' EXPORTING domname = c_dompr value = prced_domvalue IMPORTING dd07v_wa = prced_dd07v_wa EXCEPTIONS OTHERS = 1.

HR_PL_IMPORT_LOG_FROM_MEMORY * CALL FUNCTION 'HR_PL_IMPORT_LOG_FROM_MEMORY' * EXPORTING * mem_key = memo_key.

HR_PL_DISPLAY_LOG * CALL FUNCTION 'HR_PL_DISPLAY_LOG' * EXPORTING * procl = 'C' * EXCEPTIONS * OTHERS = 1.

HRO1_FILL_EVAL_DIR CALL FUNCTION 'HRO1_FILL_EVAL_DIR' EXPORTING payroll_dir = rgdir[] rgdir_line = rgdir_line IMPORTING eval_dir = bdm_rgdir02[] payr_dir = rgdir_2[] EXCEPTIONS no_evaluated_periods = 1 OTHERS = 2.

HRCO_GET_PERIODS_FOR_MONTH CALL FUNCTION 'HRCO_GET_PERIODS_FOR_MONTH' EXPORTING aper = aper TABLES p_periods = t_periods EXCEPTIONS error = 1 OTHERS = 2.

PA03_PERIODDATES_GET CALL FUNCTION 'PA03_PERIODDATES_GET' "XJFK000950 EXPORTING f_abkrs = pnpxabkr IMPORTING f_permo = pn-permo f_current_begda = pnpdisbd f_current_endda = pnpdised * F_ABKRS_TEXT = CHANGING f_current_period = pn-pabrp f_current_year = pn-pabrj EXCEPTIONS pcr_does_not_exist = 1 abkrs_does_not_exist = 2 period_does_not_exist = 3 OTHERS = 4.



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