Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A


hi guyz,

i wanna calculate the number of days an employee absent for ina given period i am getting the right days with in that period ...but within that days i have to exclude the 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 .

plz advise..


Not what you were looking for? View more on this topic or Ask a question