SAP HCM CHILE

From SapWiki

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