SAP HR_ABS_ATT_TIMES Function Module for









HR_ABS_ATT_TIMES is a standard hr abs att times 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 abs att times FM, simply by entering the name HR_ABS_ATT_TIMES into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_ABS_ATT_TIMES 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_ABS_ATT_TIMES'"
EXPORTING
PERNR = "
ALLDF = "
* CALC_FROM = 00000000 "
* CALC_TO = 00000000 "
* MANUAL_LEAVE = "
AWART = "
BEGDA = "
ENDDA = "
BEGUZ = "
ENDUZ = "
VTKEN = "
* NXDFL = "
STDAZ = "

TABLES
M0001 = "
* M0007 = "
PWS = "
* ICLVA = "
TIMES_PER_DAY = "
* M2003 = "

EXCEPTIONS
IT0001_MISSING = 1 CUSTOMIZING_ERROR = 2 ERROR_OCCURRED = 3 END_BEFORE_BEGIN = 4 MISSING_PWS = 5
.



IMPORTING Parameters details for HR_ABS_ATT_TIMES

PERNR -

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

ALLDF -

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

CALC_FROM -

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

CALC_TO -

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

MANUAL_LEAVE -

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

AWART -

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

BEGDA -

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

ENDDA -

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

BEGUZ -

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

ENDUZ -

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

VTKEN -

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

NXDFL -

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

STDAZ -

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

TABLES Parameters details for HR_ABS_ATT_TIMES

M0001 -

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

M0007 -

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

PWS -

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

ICLVA -

Data type: PURLT
Optional: Yes
Call by Reference: Yes

TIMES_PER_DAY -

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

M2003 -

Data type: P2003
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

IT0001_MISSING -

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

CUSTOMIZING_ERROR -

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

ERROR_OCCURRED -

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

END_BEFORE_BEGIN -

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

MISSING_PWS -

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

Copy and paste ABAP code example for HR_ABS_ATT_TIMES 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_m0001  TYPE STANDARD TABLE OF P0001, "   
lv_pernr  TYPE P2001-PERNR, "   
lv_it0001_missing  TYPE P2001, "   
lv_alldf  TYPE P2001-ALLDF, "   
lv_calc_from  TYPE D, "   00000000
lv_calc_to  TYPE D, "   00000000
lv_manual_leave  TYPE XFELD, "   
lv_awart  TYPE P2001-AWART, "   
lt_m0007  TYPE STANDARD TABLE OF P0007, "   
lv_customizing_error  TYPE P0007, "   
lt_pws  TYPE STANDARD TABLE OF PTPSP, "   
lv_begda  TYPE P2001-BEGDA, "   
lv_error_occurred  TYPE P2001, "   
lv_endda  TYPE P2001-ENDDA, "   
lt_iclva  TYPE STANDARD TABLE OF PURLT, "   
lv_end_before_begin  TYPE PURLT, "   
lv_beguz  TYPE P2001-BEGUZ, "   
lv_missing_pws  TYPE P2001, "   
lt_times_per_day  TYPE STANDARD TABLE OF PTM_TIMES_PER_DAY, "   
lv_enduz  TYPE P2001-ENDUZ, "   
lt_m2003  TYPE STANDARD TABLE OF P2003, "   
lv_vtken  TYPE P2001-VTKEN, "   
lv_nxdfl  TYPE PTM_NXDFL, "   
lv_stdaz  TYPE P2001-STDAZ. "   

  CALL FUNCTION 'HR_ABS_ATT_TIMES'  "
    EXPORTING
         PERNR = lv_pernr
         ALLDF = lv_alldf
         CALC_FROM = lv_calc_from
         CALC_TO = lv_calc_to
         MANUAL_LEAVE = lv_manual_leave
         AWART = lv_awart
         BEGDA = lv_begda
         ENDDA = lv_endda
         BEGUZ = lv_beguz
         ENDUZ = lv_enduz
         VTKEN = lv_vtken
         NXDFL = lv_nxdfl
         STDAZ = lv_stdaz
    TABLES
         M0001 = lt_m0001
         M0007 = lt_m0007
         PWS = lt_pws
         ICLVA = lt_iclta
         TIMES_PER_DAY = lt_times_per_day
         M2003 = lt_m2003
    EXCEPTIONS
        IT0001_MISSING = 1
        CUSTOMIZING_ERROR = 2
        ERROR_OCCURRED = 3
        END_BEFORE_BEGIN = 4
        MISSING_PWS = 5
. " HR_ABS_ATT_TIMES




ABAP code using 7.40 inline data declarations to call FM HR_ABS_ATT_TIMES

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 P2001 INTO @DATA(ld_pernr).
 
 
"SELECT single ALLDF FROM P2001 INTO @DATA(ld_alldf).
 
DATA(ld_calc_from) = 00000000.
 
DATA(ld_calc_to) = 00000000.
 
 
"SELECT single AWART FROM P2001 INTO @DATA(ld_awart).
 
 
 
 
"SELECT single BEGDA FROM P2001 INTO @DATA(ld_begda).
 
 
"SELECT single ENDDA FROM P2001 INTO @DATA(ld_endda).
 
 
 
"SELECT single BEGUZ FROM P2001 INTO @DATA(ld_beguz).
 
 
 
"SELECT single ENDUZ FROM P2001 INTO @DATA(ld_enduz).
 
 
"SELECT single VTKEN FROM P2001 INTO @DATA(ld_vtken).
 
 
"SELECT single STDAZ FROM P2001 INTO @DATA(ld_stdaz).
 


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!