SAP EXIT_SAPL3QP7A_003 Function Module for Customer Exit for LWOP and UNAL Calculations









EXIT_SAPL3QP7A_003 is a standard exit sapl3qp7a 003 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Customer Exit for LWOP and UNAL Calculations 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 sapl3qp7a 003 FM, simply by entering the name EXIT_SAPL3QP7A_003 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPL3QP7A_003 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_SAPL3QP7A_003'"Customer Exit for LWOP and UNAL Calculations
EXPORTING
XINACT_BEGDA = "Date and time, current (application server) date
XINACT_ENDDA = "Date and time, current (application server) date

CHANGING
XCURRENT_LWOP_DAY = "Total actual unpaid days after threshold value
XCURRENT_UNAL_DAY = "Total actual unpaid days after threshold value
XTOTAL_LWOP_UNPAID = "Total actual unpaid days after threshold value
XTOTAL_UNAL_UNPAID = "Total actual unpaid days after threshold value

TABLES
XP0568_LWOP = "Anniversary Date History
XP0568_UNAL = "Anniversary Date History

EXCEPTIONS
CUSTOMIZING_ERROR = 1
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
HR_AUPBS_LWOP_UNAL_DAYS Calc. absence days by using T5QPBS2F for LWOP and UNAL

IMPORTING Parameters details for EXIT_SAPL3QP7A_003

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

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

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

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

CHANGING Parameters details for EXIT_SAPL3QP7A_003

XCURRENT_LWOP_DAY - Total actual unpaid days after threshold value

Data type: Q0568-TODAY
Optional: No
Call by Reference: Yes

XCURRENT_UNAL_DAY - Total actual unpaid days after threshold value

Data type: Q0568-TODAY
Optional: No
Call by Reference: Yes

XTOTAL_LWOP_UNPAID - Total actual unpaid days after threshold value

Data type: Q0568-TODAY
Optional: No
Call by Reference: Yes

XTOTAL_UNAL_UNPAID - Total actual unpaid days after threshold value

Data type: Q0568-TODAY
Optional: No
Call by Reference: Yes

TABLES Parameters details for EXIT_SAPL3QP7A_003

XP0568_LWOP - Anniversary Date History

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

XP0568_UNAL - Anniversary Date History

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

EXCEPTIONS details

CUSTOMIZING_ERROR - Customizing Error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for EXIT_SAPL3QP7A_003 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_xp0568_lwop  TYPE STANDARD TABLE OF P0568, "   
lv_xinact_begda  TYPE SY-DATUM, "   
lv_customizing_error  TYPE SY, "   
lv_xcurrent_lwop_day  TYPE Q0568-TODAY, "   
lt_xp0568_unal  TYPE STANDARD TABLE OF P0568, "   
lv_xinact_endda  TYPE SY-DATUM, "   
lv_xcurrent_unal_day  TYPE Q0568-TODAY, "   
lv_xtotal_lwop_unpaid  TYPE Q0568-TODAY, "   
lv_xtotal_unal_unpaid  TYPE Q0568-TODAY. "   

  CALL FUNCTION 'EXIT_SAPL3QP7A_003'  "Customer Exit for LWOP and UNAL Calculations
    EXPORTING
         XINACT_BEGDA = lv_xinact_begda
         XINACT_ENDDA = lv_xinact_endda
    CHANGING
         XCURRENT_LWOP_DAY = lv_xcurrent_lwop_day
         XCURRENT_UNAL_DAY = lv_xcurrent_unal_day
         XTOTAL_LWOP_UNPAID = lv_xtotal_lwop_unpaid
         XTOTAL_UNAL_UNPAID = lv_xtotal_unal_unpaid
    TABLES
         XP0568_LWOP = lt_xp0568_lwop
         XP0568_UNAL = lt_xp0568_unal
    EXCEPTIONS
        CUSTOMIZING_ERROR = 1
. " EXIT_SAPL3QP7A_003




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPL3QP7A_003

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 DATUM FROM SY INTO @DATA(ld_xinact_begda).
 
 
"SELECT single TODAY FROM Q0568 INTO @DATA(ld_xcurrent_lwop_day).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_xinact_endda).
 
"SELECT single TODAY FROM Q0568 INTO @DATA(ld_xcurrent_unal_day).
 
"SELECT single TODAY FROM Q0568 INTO @DATA(ld_xtotal_lwop_unpaid).
 
"SELECT single TODAY FROM Q0568 INTO @DATA(ld_xtotal_unal_unpaid).
 


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!