SAP HCM CHILE

From SapWiki

Previred

Nota SAP 2464261 - How to customized PREVIRED Interface (HCLCPRVD0)

Symptom
You are executing the PREVIRED Interface (HCLCPRVD0) report and you need to change or enhance the standard solution according to your business needs.

Resolution
The legal reports for Payroll Chile use the standard framework called Unified Reporting. The following table views are used to determine the sequence executed by the report:

Report Definition (V_T799BHRF01) - Defines a key for each report that will use this framework
  1. HRF Report Sections (V_T799BHRF02) - Defines the sections available for each report
  2. HRF Report Fields (V_T799BHRF03) - Defines the fields available for each report (link with DAQ customizing)
  3. HRF Report Output Generation (V_T799BHRF04) – No specific customizing for Payroll Chile
  4. HRF Factory Configuration (V_T799BHRF05) - Defines which classes will be used for each report
  5. HRF Report Post Processing (V_T799BHRF06) - Defines which function modules will be used to post-process the DAQ data
In order to include customer specific business logic in the report, one of the following steps should be executed:
# Create a customer specific class using the standard version as copy source and replace it in V_T799BHRF05 table view for Subapplication PRVD for Class Indicator “Form Table Handler Class”.
  1. Create a customer specific function module using the standard version as copy source and replace it in V_T799BHRF06 table view for Subapplication PRVD step 70.
  2. Create a customer specific function module using the standard version as copy source and create a new Post-Processing step in V_T799BHRF06 table view for Subapplication PRVD step 70. For example:
No.              2
Start Date       01.01.1900
End Date         31.12.9999
Section          *
Field            *
Function Module  <customer FM>

NOTAS Varias PREVIRED

#################################################################
tabla T5F99F0
tabla T5F99FF (V_T5F99FF definición de campos) *
tabla T5F99FW (CC-nóminas por grupo salarial) <=> T5F99FF <=> T5F99FD

#################################################################
T5F99F0 - Formularios
T5F99FC - Condiciones
T5F99FCI - Condiciones (identidad)
T5F99FCT - Formularios: Descripción de la condición
T5F99FD - Sección - Campos    (aca se ve el orden de los campos) !!!!!!!!!!!!!!!********************************************!!!!!!!!!!!!!
T5F99FF - Definición de campo
T5F99FFT - Descripción de campo
T5F99FF - Definición de grupo de campos
T5F99FGI - Grupos de campos (identidad)
T5F99FGT - Grupos de campos (texto)
T5F99FS - Definición de sección
T5F99FST - Sección (texto)
T5F99FV - Definición del grupo fuente de CC-nóminas
T5F99FVT - Definición del grupo fuente de CC-nóminas
T5F99FW - Definición del grupo fuente de CC-nóminas
###################################################################

CL_HRPAYCL_DAQ_ENGINE  => RUN_1_DAQ

CALL METHOD ar_daq_form->get_values_forms

#####################################################
function HR_99S_DAQ_GET_VALUES
para analizar poner break acá:

        loop at <fs_sectn>-field ASSIGNING <fs_fifor> where field in im_field.

*         init
          wa_form-field = <fs_fifor>-field.
          wa_form-ficon = <fs_fifor>-atrib.  "<--------BREAK-POINT

#####################################################
function HR_99S_DAQ_GET_FIELD

LHR99S00_DAQF02 form daq_wages

HR_CL_IF_PRVD_GENERATE_FILE
transaccion DAQ_UPLOAD

 
function HR_CL_IF_PRVD_FORMAT_FODAT => (clase CL_HRPAYCL_PRVD_TABLE_HANDLER, método FILL_STRUCTURE):

feature CLCAF

HR_CL_READ_T7CL29

###########################################
LHRPAYCL_IF_PRVDF01 656

Función CLTAX moneda CLP4

1587331 - [CL] Rounding issue in Income Tax calculation (CLTAX)

Symptom
The Income Tax Payroll function (CLTAX) is performing rounding procedures during the tax calculation process. The correct approach is to use decimal places during the calculation and round the final result, as defined by the Chilean tax authority (SII). Rounding CLP amounts during the tax calculation may lead to slight differences in the tax deduction.

Other Terms
Chile; decimal places; HR_CL_INCOME_TAX; rounding

Solution
The new currency CLP4 was created in order to be used during the Income Tax calculation using 4 decimal places. The Income Tax calculation was changed in order to use the new currency for UTM conversion and to store the Income Tax basis (/T23) using 4 decimal places during the Income Tax wage type (/312) generation. The final result is then rounded to CLP. From now on, the currency conversion rate between UTM and CLP4 should be maintained monthly as the conversion rate between UTM and CLP is being maintained (using the same conversion rate and values). The solution described in this note will be included in an HR Support Package, as indicated in item "Reference to Support Packages". In case you require these changes to be implemented immediately, do the following steps attached as Correction Instructions: - apply the manual pre-implementation steps. - use SNOTE to apply the source code correction instructions.

From now on, the currency conversion rate between UTM and CLP4 should be maintained monthly as the conversion rate between UTM and CLP is being maintained (using the same conversion rate and values).

The solution described in this note will be included in an HR Support Package, as indicated in item "Reference to Support Packages". 
In case you require these changes to be implemented immediately, do the following steps attached as Correction Instructions: 
- apply the manual pre-implementation steps. 
- use SNOTE to apply the source code correction instructions.