cancel
Showing results for 
Search instead for 
Did you mean: 

regarding date calculations

Former Member
0 Kudos

Hi frnds,

I have to add date and duration fields when i m doing that

i am getting dummy values

it_departdate-departdate = it_departdate-departdate + it_departdate-duration.

suppose date is 01/29/06 and duration is 07.

so what shuld be done to get the date shuld be added.

the date format is like the same.

regards,

satish

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,,

u have to create one temporariy internal table and

loop at it_main.

it_temd-date = it_main-date + it_main-duration.

append it_temp.

endloop.

plzz reward if it is useful..

plzz dont forget to reward.....

Former Member
0 Kudos

any help frnds.

JozsefSzikszai
Active Contributor
0 Kudos

hi,

simply add in ABAP:

DATA : result TYPE date.

DATA : departdate TYPE date.

DATA : duration TYPE i.

result = departdate + duration.

hope this helps

ec