10-25-2007 11:04 AM
Hi
I would like to know where i can find the attendance ( Number of days Present )of the employee based on PERNR . Is there any function module for this .
cheers
Mathivanan
10-25-2007 1:54 PM
Hi Maddy
There is no such specific function module to get the present days for a particular emp no.
There can be positive or negative approach to this.
Positive approach:
You can retrieve the present days by checking the time in and time out from the table: TEVEN + infotype 2002 + 2003 (substitutions - if applicable)
Negative approach:
You can get the work schedule of the person using LDB -> Get pernr -> BAPI for getting work schedule.
then
Present days = No. of scheduled working days - (leaves in 2001)
Many other considerations needs to be done based on the configuration.
regards,
Aabhas K Vishnoi
10-25-2007 11:10 AM
Hi Mathi,
check these fun modules
WEEK_GET_NR_OF_WORKDAYS
WLB3_GET_NUMBER_OF_WORKDAYS
also check the table
CATSDB
Regards
ANJI
Message was edited by:
Anji Reddy Vangala
10-25-2007 1:54 PM
Hi Maddy
There is no such specific function module to get the present days for a particular emp no.
There can be positive or negative approach to this.
Positive approach:
You can retrieve the present days by checking the time in and time out from the table: TEVEN + infotype 2002 + 2003 (substitutions - if applicable)
Negative approach:
You can get the work schedule of the person using LDB -> Get pernr -> BAPI for getting work schedule.
then
Present days = No. of scheduled working days - (leaves in 2001)
Many other considerations needs to be done based on the configuration.
regards,
Aabhas K Vishnoi