SAP EXIT_SAPLHRMS_BIW_PTDW_002 Function Module for Customer Exit for Time Data Extractor: Time and Labor (Employee Times)









EXIT_SAPLHRMS_BIW_PTDW_002 is a standard exit saplhrms biw ptdw 002 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 Time Data Extractor: Time and Labor (Employee Times) 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 saplhrms biw ptdw 002 FM, simply by entering the name EXIT_SAPLHRMS_BIW_PTDW_002 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLHRMS_BIW_PTDW_002 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_SAPLHRMS_BIW_PTDW_002'"Customer Exit for Time Data Extractor: Time and Labor (Employee Times)
EXPORTING
I_BEGDA = "Start Date
I_ENDDA = "End Date
I_PERNR_OBJECT = "Complex Object for Person (from Type Pool TPTDW)
I_REPTT = "Reporting time type
* I_P2001_PSREF = "Current Data Source Being Processed (Absences)
* I_P2002_PSREF = "Current Data Source Being Processed (Attendances)

CHANGING
ACTUAL_TIMES = "Structure to be Transferred

TABLES
I_T_P0000 = "Infotype Table (Actions)
I_T_P0001 = "Infotype Table (Org. Assignment)
I_T_P0007 = "Infotype Table (Planned Working Time)
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
HR_WAGE_TYPES_FOR_MMSRV
HR_WAGE_TYPE_CHECK_FOR_MMSRV

IMPORTING Parameters details for EXIT_SAPLHRMS_BIW_PTDW_002

I_BEGDA - Start Date

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

I_ENDDA - End Date

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

I_PERNR_OBJECT - Complex Object for Person (from Type Pool TPTDW)

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

I_REPTT - Reporting time type

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

I_P2001_PSREF - Current Data Source Being Processed (Absences)

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

I_P2002_PSREF - Current Data Source Being Processed (Attendances)

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

CHANGING Parameters details for EXIT_SAPLHRMS_BIW_PTDW_002

ACTUAL_TIMES - Structure to be Transferred

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

TABLES Parameters details for EXIT_SAPLHRMS_BIW_PTDW_002

I_T_P0000 - Infotype Table (Actions)

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

I_T_P0001 - Infotype Table (Org. Assignment)

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

I_T_P0007 - Infotype Table (Planned Working Time)

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

Copy and paste ABAP code example for EXIT_SAPLHRMS_BIW_PTDW_002 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_i_begda  TYPE SY-DATUM, "   
lt_i_t_p0000  TYPE STANDARD TABLE OF P0000, "   
lv_actual_times  TYPE PTDW_TIMES, "   
lv_i_endda  TYPE SY-DATUM, "   
lt_i_t_p0001  TYPE STANDARD TABLE OF P0001, "   
lt_i_t_p0007  TYPE STANDARD TABLE OF P0007, "   
lv_i_pernr_object  TYPE TPTDW_PERNR_OBJECT, "   
lv_i_reptt  TYPE REPTT_TABTY, "   
lv_i_p2001_psref  TYPE TPTDW_PA2001_PSREF, "   
lv_i_p2002_psref  TYPE TPTDW_PA2002_PSREF. "   

  CALL FUNCTION 'EXIT_SAPLHRMS_BIW_PTDW_002'  "Customer Exit for Time Data Extractor: Time and Labor (Employee Times)
    EXPORTING
         I_BEGDA = lv_i_begda
         I_ENDDA = lv_i_endda
         I_PERNR_OBJECT = lv_i_pernr_object
         I_REPTT = lv_i_reptt
         I_P2001_PSREF = lv_i_p2001_psref
         I_P2002_PSREF = lv_i_p2002_psref
    CHANGING
         ACTUAL_TIMES = lv_actual_times
    TABLES
         I_T_P0000 = lt_i_t_p0000
         I_T_P0001 = lt_i_t_p0001
         I_T_P0007 = lt_i_t_p0007
. " EXIT_SAPLHRMS_BIW_PTDW_002




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLHRMS_BIW_PTDW_002

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_i_begda).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_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!