2007 Jun 28 2:23 PM
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.
2007 Jun 28 2:27 PM
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
2007 Jun 28 2:27 PM
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
2007 Jun 28 2:27 PM
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
2007 Jun 28 2:28 PM
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
2007 Jun 28 2:29 PM
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.
2007 Jun 28 2:29 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |