SAP EXIT_HARCSINC_001 Function Module for Health Plans: Difference between value and Welfare fund contribution









EXIT_HARCSINC_001 is a standard exit harcsinc 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Health Plans: Difference between value and Welfare fund contribution processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for exit harcsinc 001 FM, simply by entering the name EXIT_HARCSINC_001 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XPAR
Program Name: SAPLXPAR
Main Program: SAPLXPAR
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_HARCSINC_001 pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'EXIT_HARCSINC_001'"Health Plans: Difference between value and Welfare fund contribution
EXPORTING
APORTE_OBRA_SOCIAL = "
APORTE_OBRA_SOC_ADHE = "
CONTRIB_OBRA_SOCIAL = "
VALOR_PLAN = "
IT = "
* OBRA_SOCIAL = "Welfare Fund
* PLAN_OS = "Welfare Fund plan
* NRO_PERSONAL = "Personnel number
* SW_DIVISOR_30 = "Divisor in use for days of the month

IMPORTING
DIFERENCIA_EMPLEADO = "
DIFERENCIA_EMPRESA = "

TABLES
TABLA_IT = "Payroll result: Result table
* ARSES = "Social Insurance master data
* ARDIV = "Correction of days according to month divisor
* WPBP = "Payroll result: Work centre/Basic pay
* INF_2001 = "Personnel time record Infotype 2001 (Absences)
* AB = "Cluster RD/B2: Table AB
.



IMPORTING Parameters details for EXIT_HARCSINC_001

APORTE_OBRA_SOCIAL -

Data type: PC207-BETRG
Optional: No
Call by Reference: No ( called with pass by value option)

APORTE_OBRA_SOC_ADHE -

Data type: PC207-BETRG
Optional: No
Call by Reference: No ( called with pass by value option)

CONTRIB_OBRA_SOCIAL -

Data type: PC207-BETRG
Optional: No
Call by Reference: No ( called with pass by value option)

VALOR_PLAN -

Data type: PC207-BETRG
Optional: No
Call by Reference: No ( called with pass by value option)

IT -

Data type: PC207
Optional: No
Call by Reference: No ( called with pass by value option)

OBRA_SOCIAL - Welfare Fund

Data type: PC2QE-OBRAS
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLAN_OS - Welfare Fund plan

Data type: P0392-PLANS
Optional: Yes
Call by Reference: No ( called with pass by value option)

NRO_PERSONAL - Personnel number

Data type: PA0001-PERNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

SW_DIVISOR_30 - Divisor in use for days of the month

Data type: C
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for EXIT_HARCSINC_001

DIFERENCIA_EMPLEADO -

Data type: PC207-BETRG
Optional: No
Call by Reference: Yes

DIFERENCIA_EMPRESA -

Data type: PC207-BETRG
Optional: No
Call by Reference: Yes

TABLES Parameters details for EXIT_HARCSINC_001

TABLA_IT - Payroll result: Result table

Data type: PC207
Optional: No
Call by Reference: Yes

ARSES - Social Insurance master data

Data type: PC2QE
Optional: Yes
Call by Reference: Yes

ARDIV - Correction of days according to month divisor

Data type: PC2LA
Optional: Yes
Call by Reference: Yes

WPBP - Payroll result: Work centre/Basic pay

Data type: PC205
Optional: Yes
Call by Reference: Yes

INF_2001 - Personnel time record Infotype 2001 (Absences)

Data type: P2001
Optional: Yes
Call by Reference: Yes

AB - Cluster RD/B2: Table AB

Data type: PC20I
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for EXIT_HARCSINC_001 Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_tabla_it  TYPE STANDARD TABLE OF PC207, "   
lv_aporte_obra_social  TYPE PC207-BETRG, "   
lv_diferencia_empleado  TYPE PC207-BETRG, "   
lt_arses  TYPE STANDARD TABLE OF PC2QE, "   
lv_diferencia_empresa  TYPE PC207-BETRG, "   
lv_aporte_obra_soc_adhe  TYPE PC207-BETRG, "   
lt_ardiv  TYPE STANDARD TABLE OF PC2LA, "   
lv_contrib_obra_social  TYPE PC207-BETRG, "   
lt_wpbp  TYPE STANDARD TABLE OF PC205, "   
lv_valor_plan  TYPE PC207-BETRG, "   
lv_it  TYPE PC207, "   
lt_inf_2001  TYPE STANDARD TABLE OF P2001, "   
lt_ab  TYPE STANDARD TABLE OF PC20I, "   
lv_obra_social  TYPE PC2QE-OBRAS, "   
lv_plan_os  TYPE P0392-PLANS, "   
lv_nro_personal  TYPE PA0001-PERNR, "   
lv_sw_divisor_30  TYPE C. "   

  CALL FUNCTION 'EXIT_HARCSINC_001'  "Health Plans: Difference between value and Welfare fund contribution
    EXPORTING
         APORTE_OBRA_SOCIAL = lv_aporte_obra_social
         APORTE_OBRA_SOC_ADHE = lv_aporte_obra_soc_adhe
         CONTRIB_OBRA_SOCIAL = lv_contrib_obra_social
         VALOR_PLAN = lv_valor_plan
         IT = lv_it
         OBRA_SOCIAL = lv_obra_social
         PLAN_OS = lv_plan_os
         NRO_PERSONAL = lv_nro_personal
         SW_DIVISOR_30 = lv_sw_divisor_30
    IMPORTING
         DIFERENCIA_EMPLEADO = lv_diferencia_empleado
         DIFERENCIA_EMPRESA = lv_diferencia_empresa
    TABLES
         TABLA_IT = lt_tabla_it
         ARSES = lt_arses
         ARDIV = lt_ardiv
         WPBP = lt_wpbp
         INF_2001 = lt_inf_2001
         AB = lt_ab
. " EXIT_HARCSINC_001




ABAP code using 7.40 inline data declarations to call FM EXIT_HARCSINC_001

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_aporte_obra_social).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_diferencia_empleado).
 
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_diferencia_empresa).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_aporte_obra_soc_adhe).
 
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_contrib_obra_social).
 
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_valor_plan).
 
 
 
 
"SELECT single OBRAS FROM PC2QE INTO @DATA(ld_obra_social).
 
"SELECT single PLANS FROM P0392 INTO @DATA(ld_plan_os).
 
"SELECT single PERNR FROM PA0001 INTO @DATA(ld_nro_personal).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!