2007 Jun 21 1:43 PM
in simple manner how could i get difference between date in days
exdample: 20/12/1982 - 25/12/1982 in between satrt & end dates if i click duration automatically it has to calculate & display the duration in days give me hint
in simple manner how could i get difference between date in days
exdample: 20/12/1982 - 25/12/1982 in between satrt & end dates if i click duration automatically it has to calculate & display the duration in days give me hint
2007 Jun 21 1:44 PM
Hi
It is simple
<b>data: days type i
days = date2 - date1.</b>
Reward points for useful Answers
Regards
Anji
2007 Jun 21 1:46 PM
Hello
Use this FM
CLEAR G_F_DIFF.
CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
EXPORTING
I_DATUM_BIS = ENDDATE
I_DATUM_VON = STARTDATE
IMPORTING
E_TAGE = G_F_DIFF
EXCEPTIONS
DAYS_METHOD_NOT_DEFINED = 1
OTHERS = 2.
write: g_F_diff
Vasanth
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |