i wanna calculate the number of days an employee absent for ina given period time...here i am getting the right days with in that period ...but within that days i have to exclude the weekends..how can i do that...plz advise...
my code :
lv_days = lv_end_date - lv_strt_date + 1.
lv_strt_day = lv_begda - lv_strt_date .
lv_days = lv_days - lv_strt_day.
lv_hrs = p2001-stdaz / p2001-abrtg.
lv_time = lv_days * lv_hrs.
ADD lv_time TO employee_struct-absence_hours .