Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

creating duplicate for date range

Former Member
0 Likes
595

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

4 REPLIES 4
Read only

Former Member
0 Likes
565

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.

Read only

Former Member
0 Likes
565

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.

Read only

Former Member
0 Likes
565

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

Read only

Former Member
0 Likes
565
REPORT YCHATEST.

SELECT-OPTIONS : S_DATE FOR SY-DATUM.

RANGES : R_DATE FOR SY-DATUM.

R_DATE[] = S_DATE[].