SAP HR_AUPBS_QTACC_MOVE_CORRECTION Function Module for Move Quota Correction due to Prior Service & LWOP









HR_AUPBS_QTACC_MOVE_CORRECTION is a standard hr aupbs qtacc move correction SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Move Quota Correction due to Prior Service & LWOP 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 aupbs qtacc move correction FM, simply by entering the name HR_AUPBS_QTACC_MOVE_CORRECTION into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_AUPBS_QTACC_MOVE_CORRECTION 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_AUPBS_QTACC_MOVE_CORRECTION'"Move Quota Correction due to Prior Service & LWOP
EXPORTING
GEN_PERNR = "Personnel number
GEN_DATE = "Date and time, current (application server) date
GEN_QTYPE = "Absence Quota Type
GEN_ACC_BEGDA = "Date and time, current (application server) date
GEN_ACC_ENDDA = "Date and time, current (application server) date

CHANGING
RED_NUMBER = "Constant value of base entitlement for leave accrual

TABLES
QTACC_P0000 = "HR Master Record: Infotype 0000 (Actions)
QTACC_P0001 = "HR Master Record: Infotype 0001 (Org. Assignment)
QTACC_P0002 = "HR Master Record: Infotype 0002 (Personal Data)
QTACC_P0007 = "HR Master Record: Infotype 0007 (Planned Working Time)
QTACC_P0008 = "HR Master Record: Infotype 0008 (Basic Pay)
QTACC_P0041 = "HR Master Record: Infotype 0041 (Date Specifications)

EXCEPTIONS
CUSTOMIZING_ERROR = 1
.




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_SAPL3QP7A_003 Customer Exit for LWOP and UNAL Calculations
EXIT_SAPL3QP7_001 Customer Exit for Transfer
EXIT_SAPL3QP7_002 Customer Exit for Reduction
EXIT_SAPL3QP7_004 Customer Enhancement for Quota Generation: Base Entitlement

IMPORTING Parameters details for HR_AUPBS_QTACC_MOVE_CORRECTION

GEN_PERNR - Personnel number

Data type: PERNR-PERNR
Optional: No
Call by Reference: Yes

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

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

GEN_QTYPE - Absence Quota Type

Data type: T559L-QTYPE
Optional: No
Call by Reference: Yes

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

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

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

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

CHANGING Parameters details for HR_AUPBS_QTACC_MOVE_CORRECTION

RED_NUMBER - Constant value of base entitlement for leave accrual

Data type: T559E-LVNUM
Optional: No
Call by Reference: Yes

TABLES Parameters details for HR_AUPBS_QTACC_MOVE_CORRECTION

QTACC_P0000 - HR Master Record: Infotype 0000 (Actions)

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

QTACC_P0001 - HR Master Record: Infotype 0001 (Org. Assignment)

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

QTACC_P0002 - HR Master Record: Infotype 0002 (Personal Data)

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

QTACC_P0007 - HR Master Record: Infotype 0007 (Planned Working Time)

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

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

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

QTACC_P0041 - HR Master Record: Infotype 0041 (Date Specifications)

Data type: P0041
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 HR_AUPBS_QTACC_MOVE_CORRECTION 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_gen_pernr  TYPE PERNR-PERNR, "   
lv_red_number  TYPE T559E-LVNUM, "   
lt_qtacc_p0000  TYPE STANDARD TABLE OF P0000, "   
lv_customizing_error  TYPE P0000, "   
lv_gen_date  TYPE SY-DATUM, "   
lt_qtacc_p0001  TYPE STANDARD TABLE OF P0001, "   
lv_gen_qtype  TYPE T559L-QTYPE, "   
lt_qtacc_p0002  TYPE STANDARD TABLE OF P0002, "   
lt_qtacc_p0007  TYPE STANDARD TABLE OF P0007, "   
lv_gen_acc_begda  TYPE SY-DATUM, "   
lt_qtacc_p0008  TYPE STANDARD TABLE OF P0008, "   
lv_gen_acc_endda  TYPE SY-DATUM, "   
lt_qtacc_p0041  TYPE STANDARD TABLE OF P0041. "   

  CALL FUNCTION 'HR_AUPBS_QTACC_MOVE_CORRECTION'  "Move Quota Correction due to Prior Service & LWOP
    EXPORTING
         GEN_PERNR = lv_gen_pernr
         GEN_DATE = lv_gen_date
         GEN_QTYPE = lv_gen_qtype
         GEN_ACC_BEGDA = lv_gen_acc_begda
         GEN_ACC_ENDDA = lv_gen_acc_endda
    CHANGING
         RED_NUMBER = lv_red_number
    TABLES
         QTACC_P0000 = lt_qtacc_p0000
         QTACC_P0001 = lt_qtacc_p0001
         QTACC_P0002 = lt_qtacc_p0002
         QTACC_P0007 = lt_qtacc_p0007
         QTACC_P0008 = lt_qtacc_p0008
         QTACC_P0041 = lt_qtacc_p0041
    EXCEPTIONS
        CUSTOMIZING_ERROR = 1
. " HR_AUPBS_QTACC_MOVE_CORRECTION




ABAP code using 7.40 inline data declarations to call FM HR_AUPBS_QTACC_MOVE_CORRECTION

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_gen_pernr).
 
"SELECT single LVNUM FROM T559E INTO @DATA(ld_red_number).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_gen_date).
 
 
"SELECT single QTYPE FROM T559L INTO @DATA(ld_gen_qtype).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_gen_acc_begda).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_gen_acc_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!