SAP HR_DISPLAY_DEDUCTION Function Module for









HR_DISPLAY_DEDUCTION is a standard hr display deduction SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 display deduction FM, simply by entering the name HR_DISPLAY_DEDUCTION into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRTIM00QUODEDDISPLAY
Program Name: SAPLHRTIM00QUODEDDISPLAY
Main Program: SAPLHRTIM00QUODEDDISPLAY
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function HR_DISPLAY_DEDUCTION 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_DISPLAY_DEDUCTION'"
EXPORTING
* W0416 = "
* QUOTYPE = "
* ABSTYPE = "
* DMODE = 'L' "
* IGNORE_DEDUCT_INT = ' ' "
* NAVIGATION_MODE = 'DIS ' "
* W2001 = "
* W2002 = "
* W2006 = "
* W2007 = "
* PERNUM = "
* PBEGDA = "
* PENDDA = "
* INFOTYPE = "

TABLES
* M2001 = "
* M2002 = "
* M2006 = "
* M2007 = "

EXCEPTIONS
WRONG_PERSONAL_NUMBER = 1 WRONG_START_DATE = 2 WRONG_END_DATE = 3 WRONG_NAVIGATION_MODE = 4
.



IMPORTING Parameters details for HR_DISPLAY_DEDUCTION

W0416 -

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

QUOTYPE -

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

ABSTYPE -

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

DMODE -

Data type: P2001-FLAG1
Default: 'L'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IGNORE_DEDUCT_INT -

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

NAVIGATION_MODE -

Data type: SY-UCOMM
Default: 'DIS '
Optional: Yes
Call by Reference: No ( called with pass by value option)

W2001 -

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

W2002 -

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

W2006 -

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

W2007 -

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

PERNUM -

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

PBEGDA -

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

PENDDA -

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

INFOTYPE -

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

TABLES Parameters details for HR_DISPLAY_DEDUCTION

M2001 -

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

M2002 -

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

M2006 -

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

M2007 -

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

EXCEPTIONS details

WRONG_PERSONAL_NUMBER -

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

WRONG_START_DATE -

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

WRONG_END_DATE -

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

WRONG_NAVIGATION_MODE -

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

Copy and paste ABAP code example for HR_DISPLAY_DEDUCTION 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_m2001  TYPE STANDARD TABLE OF P2001, "   
lv_w0416  TYPE P0416, "   
lv_wrong_personal_number  TYPE P0416, "   
lv_quotype  TYPE TIM_QUOTA_TYPE_TAB, "   
lv_abstype  TYPE TIM_ATTABS_TYPE_TAB, "   
lv_dmode  TYPE P2001-FLAG1, "   'L'
lv_ignore_deduct_int  TYPE CHAR1, "   ' '
lv_navigation_mode  TYPE SY-UCOMM, "   'DIS '
lt_m2002  TYPE STANDARD TABLE OF P2002, "   
lv_w2001  TYPE P2001, "   
lv_wrong_start_date  TYPE P2001, "   
lt_m2006  TYPE STANDARD TABLE OF P2006, "   
lv_w2002  TYPE P2002, "   
lv_wrong_end_date  TYPE P2002, "   
lt_m2007  TYPE STANDARD TABLE OF P2007, "   
lv_w2006  TYPE P2006, "   
lv_wrong_navigation_mode  TYPE P2006, "   
lv_w2007  TYPE P2007, "   
lv_pernum  TYPE P2001-PERNR, "   
lv_pbegda  TYPE P2001-BEGDA, "   
lv_pendda  TYPE P2001-ENDDA, "   
lv_infotype  TYPE P2001-INFTY. "   

  CALL FUNCTION 'HR_DISPLAY_DEDUCTION'  "
    EXPORTING
         W0416 = lv_w0416
         QUOTYPE = lv_quotype
         ABSTYPE = lv_abstype
         DMODE = lv_dmode
         IGNORE_DEDUCT_INT = lv_ignore_deduct_int
         NAVIGATION_MODE = lv_navigation_mode
         W2001 = lv_w2001
         W2002 = lv_w2002
         W2006 = lv_w2006
         W2007 = lv_w2007
         PERNUM = lv_pernum
         PBEGDA = lv_pbegda
         PENDDA = lv_pendda
         INFOTYPE = lv_infotype
    TABLES
         M2001 = lt_m2001
         M2002 = lt_m2002
         M2006 = lt_m2006
         M2007 = lt_m2007
    EXCEPTIONS
        WRONG_PERSONAL_NUMBER = 1
        WRONG_START_DATE = 2
        WRONG_END_DATE = 3
        WRONG_NAVIGATION_MODE = 4
. " HR_DISPLAY_DEDUCTION




ABAP code using 7.40 inline data declarations to call FM HR_DISPLAY_DEDUCTION

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 FLAG1 FROM P2001 INTO @DATA(ld_dmode).
DATA(ld_dmode) = 'L'.
 
DATA(ld_ignore_deduct_int) = ' '.
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_navigation_mode).
DATA(ld_navigation_mode) = 'DIS '.
 
 
 
 
 
 
 
 
 
 
 
"SELECT single PERNR FROM P2001 INTO @DATA(ld_pernum).
 
"SELECT single BEGDA FROM P2001 INTO @DATA(ld_pbegda).
 
"SELECT single ENDDA FROM P2001 INTO @DATA(ld_pendda).
 
"SELECT single INFTY FROM P2001 INTO @DATA(ld_infotype).
 


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!