SAP EXIT_SAPLPARA_004 Function Module for Exit for Calculating Salary Percentage from IT0015 'Additional Payments'









EXIT_SAPLPARA_004 is a standard exit saplpara 004 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Exit for Calculating Salary Percentage from IT0015 'Additional Payments' 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 saplpara 004 FM, simply by entering the name EXIT_SAPLPARA_004 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLPARA_004 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_SAPLPARA_004'"Exit for Calculating Salary Percentage from IT0015 'Additional Payments'
EXPORTING
PERSONNEL_NUMBER = "Personnel number
EVAL_WAGE_TYPE = "Basis Wage Type for T539J ('Annual Salary Wage Type')
CURRENCY = "Currency for Output
SALARY_AS_OF_DATE = "IT0008 is valuated to this point
BEGIN_OF_EVALUATION = "Period (Start) for IT0015
END_OF_EVALUATION = "Period (End) for IT0015

IMPORTING
IT0015_SALARY = "Salary Percentage from IT0015

EXCEPTIONS
USE_STANDARD = 1 CUSTOMER_ERROR = 2
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
RP_ALLPERIODS_FROM_ANSAL
RP_ALLPERIODS_FROM_SPECPERIOD
RP_ANSAL_FROM_INFOTYPE
RP_ANSAL_FROM_PERNR
RP_ANSAL_FROM_WAGETYPES
RP_FROM_PERIOD_TO_PERIOD
RP_GET_GV_CALL_FROM_ITF
RP_NUMBER_OF_PERIODS
RP_PERIOD_AMOUNTS_ADD
RP_PERIOD_SALARY_FROM_ANSAL
RP_PERIOD_SALARY_FROM_PERNR
RP_PERIOD_SALARY_FROM_WAGETYPS
RP_SALARY_GENERIC_CALC
RP_SET_GV_CALL_FROM_ITF
RP_ZEINH_GET

IMPORTING Parameters details for EXIT_SAPLPARA_004

PERSONNEL_NUMBER - Personnel number

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

EVAL_WAGE_TYPE - Basis Wage Type for T539J ('Annual Salary Wage Type')

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

CURRENCY - Currency for Output

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

SALARY_AS_OF_DATE - IT0008 is valuated to this point

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

BEGIN_OF_EVALUATION - Period (Start) for IT0015

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

END_OF_EVALUATION - Period (End) for IT0015

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

EXPORTING Parameters details for EXIT_SAPLPARA_004

IT0015_SALARY - Salary Percentage from IT0015

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

EXCEPTIONS details

USE_STANDARD - Execute Standard Calculation

Data type:
Optional: No
Call by Reference: Yes

CUSTOMER_ERROR - Error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for EXIT_SAPLPARA_004 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_use_standard  TYPE STRING, "   
lv_it0015_salary  TYPE P0008-ANSAL, "   
lv_personnel_number  TYPE P0003-PERNR, "   
lv_customer_error  TYPE P0003, "   
lv_eval_wage_type  TYPE T512W-LGART, "   
lv_currency  TYPE T500C-WAERS, "   
lv_salary_as_of_date  TYPE P0008-BEGDA, "   
lv_begin_of_evaluation  TYPE P0015-BEGDA, "   
lv_end_of_evaluation  TYPE P0015-ENDDA. "   

  CALL FUNCTION 'EXIT_SAPLPARA_004'  "Exit for Calculating Salary Percentage from IT0015 'Additional Payments'
    EXPORTING
         PERSONNEL_NUMBER = lv_personnel_number
         EVAL_WAGE_TYPE = lv_eval_wage_type
         CURRENCY = lv_currency
         SALARY_AS_OF_DATE = lv_salary_as_of_date
         BEGIN_OF_EVALUATION = lv_begin_of_evaluation
         END_OF_EVALUATION = lv_end_of_evaluation
    IMPORTING
         IT0015_SALARY = lv_it0015_salary
    EXCEPTIONS
        USE_STANDARD = 1
        CUSTOMER_ERROR = 2
. " EXIT_SAPLPARA_004




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLPARA_004

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 ANSAL FROM P0008 INTO @DATA(ld_it0015_salary).
 
"SELECT single PERNR FROM P0003 INTO @DATA(ld_personnel_number).
 
 
"SELECT single LGART FROM T512W INTO @DATA(ld_eval_wage_type).
 
"SELECT single WAERS FROM T500C INTO @DATA(ld_currency).
 
"SELECT single BEGDA FROM P0008 INTO @DATA(ld_salary_as_of_date).
 
"SELECT single BEGDA FROM P0015 INTO @DATA(ld_begin_of_evaluation).
 
"SELECT single ENDDA FROM P0015 INTO @DATA(ld_end_of_evaluation).
 


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!