‎2007 Apr 13 8:51 AM
Hi folks,
How to duplicate date range to other temporary one.
eg.,
r_wadat[] = s_wadat[]
it throws error
how to do that.
thanx
rao
‎2007 Apr 13 8:54 AM
How did you declare them?
If they have similar declaration, then it should not throw any errors.
Other wise
You have to move field by field.
loop at s_wadat.
r_wadat-sign = s_wadat-sign.
r_wadat-option = s_wadat-option.
r_wadat-low = s_wadat-low.
r_wadat-high = s_wadat-high.
append r_wadat.
clear r_wadat.
endloop.
‎2007 Apr 13 8:56 AM
Hi hemam,
1. Ideally it should not give any error, provided the declaration is correct.
2.
report abc.
ranges : r1 for sy-datum.
ranges : r2 for sy-datum.
r2[] = r1[].
regards,
amit m.
‎2007 Apr 13 8:59 AM
Hi,
You can do it like this way ..
r_wadat[] = s_wadat[]
it should not give error .. check with the declaration ..
DATA: v_uname TYPE cdusername, " User name
RANGES : r_uname FOR v_uname .
Hope this will solve your probelm.
Assign reward points if it helps.
-Gaurang
‎2007 Apr 13 9:02 AM
REPORT YCHATEST.
SELECT-OPTIONS : S_DATE FOR SY-DATUM.
RANGES : R_DATE FOR SY-DATUM.
R_DATE[] = S_DATE[].