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

ranges statemnets....

Former Member
0 Likes
893

Hi all,

can anyone let me know how to use ranges by declaring with type statements.

Ex: r_gjahr type range of bkpf-gjahr.

if the range is declared like this then how to use it.when i am using

move 'IEQ' to r_gjahr.

move gw_table to t_gjahr-low.(after a select statement)

then its showing error as r_gjahr is not a table.

any solution or an example would be very helpfull.

Thanks

jareer.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
790

Hello,

U have to do like this.

data: r_gjahr type range of gjahr with header line.

r_gjahr-sign = 'I'.
r_gjahr-option = 'EQ'.
r_gjahr-low = gw_table-gjahr.
append r_gjahr.

Vasanth

Hello,

U have to do like this.

data: r_gjahr type range of gjahr with header line.

r_gjahr-sign = 'I'.
r_gjahr-option = 'EQ'.
r_gjahr-low = gw_table-gjahr.
append r_gjahr.

Vasanth

5 REPLIES 5
Read only

Former Member
0 Likes
790

types: r_vbeln type range of vbeln.

data: r_vb type r_vbeln,

wa like line of r_vb. "work area

in the above case if you want to append or do some operations then

you need work area as declared above

Regards

Vijay

Read only

Former Member
0 Likes
791

Hello,

U have to do like this.

data: r_gjahr type range of gjahr with header line.

r_gjahr-sign = 'I'.
r_gjahr-option = 'EQ'.
r_gjahr-low = gw_table-gjahr.
append r_gjahr.

Vasanth

Read only

Former Member
0 Likes
790

data: r_gjahr type range of bkpf-gjahr.

data: wa like line of r_gjahr.

wa-sign = 'I'.

wa-option = 'EQ'.

wa-low = '2007'.

append wa to r_gjahr.

Regards

Vijay

Read only

Former Member
0 Likes
790

RANGES: MY_RANGE TYPE MARA-MATNR.

MY_RANGE-SIGN = 'I'.
MY_RANGE-OPTION = 'BT'.
MY_RANGE-LOW = '0000458950'.
MY_RANGE-HIGH = '0000458954'.

SELECT *
INTO TABLE T_MARA
FROM MARA
WHERE MATNR IN MY_RANGE.

Greetings,

Blag.

Read only

Former Member
0 Likes
790

Hi...,,

<b>move '1234' to r_gjahr-low.

move '2345' to r_gjahr-high.

move 'I' to r_gjahr-option.

move 'EQ' to r_gjahr-sign.

append r_gjahr.

</b>

Please do remember to close the thread when ur problem is solved !! reward all helpful answers !!

regards,

sai ramesh