Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HR

Former Member
0 Likes
570

Hi guyz,

my requirement is..my program should calculate the total number of hours the employee is absent with in the given period..

for eg : 1-03-2008 to 31-03-2008

In the table iam having begda = 28.02.2008

endda = 03.03.2008

what program should do is calculate the hours the employee was absent with in the given time now it should calculate only three days ..the answer iam looking for is 24 hours coz 28.02.2008 is outta my range..can anybody help me out ...

thanks

4 REPLIES 4
Read only

Former Member
0 Likes
539

hi ,

go to the table pa2001 and see the field STDAZ for abasent hours

regards,

venkat.

Read only

0 Likes
539

thanks for your reply ...in the table pa2001 begda = 28.02.2006 endda = 03.03.2006, stdaz is 32 hours but my logic should ignore 28.02.2006 coz period ive given is 01.03.2006 to 31.03.2006 and also the total hours i should have is onli 24 hours...plz advise..

regrds

Read only

Former Member
0 Likes
539

hi ,

do like this

v_date = s_date-low -1.

select pernr

begda

endda

STDAZ

from pa2001

into table itab

where pernr in s_pernr

and begda le s_date-high

and endda ge s_date-low.

regards,

venkat.

Read only

0 Likes
539

thanks for your reply....

s_low = 1.03.2006

s_high = 30.03.2006

i need the calculate the number of days the employee absent with in this specified dates

if employee is absent from 23.02.2006 to 4.03.2006

i should calculate only 4 days .....my answer shud be 4 X 8(no of working hours a day) = 32 ...

plz advise

regards