SAP HR_IN_GET_WT_SPLIT_PY Function Module for To Find wage type splits for a taxcode for a employee









HR_IN_GET_WT_SPLIT_PY is a standard hr in get wt split py SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for To Find wage type splits for a taxcode for a employee 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 hr in get wt split py FM, simply by entering the name HR_IN_GET_WT_SPLIT_PY into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_IN_GET_WT_SPLIT_PY 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 'HR_IN_GET_WT_SPLIT_PY'"To Find wage type splits for a taxcode for a employee
EXPORTING
EMPNO = "Personnel number
TAXCD = "Tax code / Reimbursement type
BEGDA = "Date and time, current (application server) date
ENDDA = "Date and time, current (application server) date

TABLES
WTTAB = "Wage type table
* ALGRP = "Allowance grouping splits table
* I7INT9 = "Taxability of wage types
* P1 = "HR Master Record: Infotype 0008 (Basic Pay)
* P8 = "HR Master Record: Infotype 0008 (Basic Pay)

EXCEPTIONS
ALGRP_NOT_FOUND = 1 LGART_NOT_FOUND = 2 INFTY_NOT_FOUND = 3
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLHRPADINA1_002 To calculate eligibility amount based on the feature value
EXIT_SAPLHRPADINA1_003 To calculate eligibility number based on feature value
EXIT_SAPLHRPADINA1_004 To calculate date based on the feature value
EXIT_SAPLHRPADINA1_005 To calculate eligibiltiy amount/number
EXIT_SAPLHRPADINA1_006 To calculate amount based on INVAL D
EXIT_SAPLHRPADINA1_007 Carry forward dates as per customer logic
EXIT_SAPLHRPADINA1_008 Customer exit for saving additional info claims
EXIT_SAPLHRPADINA1_009 Customer exit for printing additional info claims

IMPORTING Parameters details for HR_IN_GET_WT_SPLIT_PY

EMPNO - Personnel number

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

TAXCD - Tax code / Reimbursement type

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

BEGDA - Date and time, current (application server) date

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

ENDDA - Date and time, current (application server) date

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

TABLES Parameters details for HR_IN_GET_WT_SPLIT_PY

WTTAB - Wage type table

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

ALGRP - Allowance grouping splits table

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

I7INT9 - Taxability of wage types

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

P1 - HR Master Record: Infotype 0008 (Basic Pay)

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

P8 - HR Master Record: Infotype 0008 (Basic Pay)

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

EXCEPTIONS details

ALGRP_NOT_FOUND - Payscale grouping for allowances not found

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

LGART_NOT_FOUND - Waetype for the wagetype code not found

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

INFTY_NOT_FOUND - Infotype 1 or 8 not found

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

Copy and paste ABAP code example for HR_IN_GET_WT_SPLIT_PY 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:
lv_empno  TYPE PERNR-PERNR, "   
lt_wttab  TYPE STANDARD TABLE OF PINWT, "   
lv_algrp_not_found  TYPE PINWT, "   
lt_algrp  TYPE STANDARD TABLE OF PINAG, "   
lv_taxcd  TYPE T7INT9-TAXCD, "   
lv_lgart_not_found  TYPE T7INT9, "   
lv_begda  TYPE SY-DATUM, "   
lt_i7int9  TYPE STANDARD TABLE OF T7INT9, "   
lv_infty_not_found  TYPE T7INT9, "   
lt_p1  TYPE STANDARD TABLE OF P0001, "   
lv_endda  TYPE SY-DATUM, "   
lt_p8  TYPE STANDARD TABLE OF P0008. "   

  CALL FUNCTION 'HR_IN_GET_WT_SPLIT_PY'  "To Find wage type splits for a taxcode for a employee
    EXPORTING
         EMPNO = lv_empno
         TAXCD = lv_taxcd
         BEGDA = lv_begda
         ENDDA = lv_endda
    TABLES
         WTTAB = lt_wttab
         ALGRP = lt_algrp
         I7INT9 = lt_i7int9
         P1 = lt_p1
         P8 = lt_p8
    EXCEPTIONS
        ALGRP_NOT_FOUND = 1
        LGART_NOT_FOUND = 2
        INFTY_NOT_FOUND = 3
. " HR_IN_GET_WT_SPLIT_PY




ABAP code using 7.40 inline data declarations to call FM HR_IN_GET_WT_SPLIT_PY

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 PERNR FROM PERNR INTO @DATA(ld_empno).
 
 
 
 
"SELECT single TAXCD FROM T7INT9 INTO @DATA(ld_taxcd).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_begda).
 
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_endda).
 
 


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!