Skip to Content
0
Former Member
Feb 07, 2011 at 05:57 PM

How to read variable in CMOD code !

144 Views

Experts,

in my one of the query, there is a variable, which takes 2 dates. so the variable is type "interval"

so, when you run the report, user needs to enter value something like this.."mm/dd/yyyy - mm/dd/yyyy"

Now, i have writtn a code in CMOD, by reading this variable.

But i dont know how to read 2nd date from the variable.

READ TABLE i_t_var_range

WITH KEY vnam = 'VARIABLE'

INTO l_var_range.

First Date = l_var_range-low.

Second Date = l_var_range-high.

Does this low and high thing is correct?

if i do debug, i could see the low values. but i coud see the same low values in High too.

whats the problem ?

please help