‎2008 May 01 10:06 AM
data : vdiff like eban-badat,
p_high like eban-badat,
p_low like eban-badat.
p_high = mbadat-high+0(6).
p_low = mbadat-low+0(6).
wish to calculate diffrence but vdiff is always having zero *
vdiff = p_high - p_low.
IF vdiff is not INITIAL.
message id '00' type 'E' number '001'
with 'Date Range should be 1 Month'.
ENDIF.
Wht shuld be done to reslove thius
‎2008 May 01 10:19 AM
Hi Abhut,
V_Diff should be a Int type variable , which will hold the difference of the dates.
and the date is usually 8 characters long.
Why are you taking only 6 chracters of the mbadat?
v_diff = date2 - date1. "v_diff will have difference in number of days date2 and date1 should be of date type and should have 8 characters in them.
Regards,
Ravi Kanth Talagana
‎2008 May 01 10:18 AM
‎2008 May 01 10:19 AM
Hi Abhut,
V_Diff should be a Int type variable , which will hold the difference of the dates.
and the date is usually 8 characters long.
Why are you taking only 6 chracters of the mbadat?
v_diff = date2 - date1. "v_diff will have difference in number of days date2 and date1 should be of date type and should have 8 characters in them.
Regards,
Ravi Kanth Talagana