11-27-2008 9:46 AM
Hi
i have two fileds f1 and f2 in an internal table.i want to compare the data in these two fileds ,
how to compare?
thank you.
sunny.
11-27-2008 9:48 AM
hi
loop at itab into wa
read table itab into wa1 with key
compare here with wa1 and wa
endloop.
shiva
11-27-2008 9:48 AM
hi
loop at itab into wa
read table itab into wa1 with key
compare here with wa1 and wa
endloop.
shiva
11-27-2008 10:39 AM
Hi
Now iwant to compare the data( ex: row1 and row2 data) of particular field f1 .how to compare?
thank you
sunny
11-27-2008 10:43 AM
Hi sunny,
Loop at itab.
if itab1-f1 = perticular_field
endif.
if itab-f2 = perticular_field.
endif.
if the perticular field is another itab. then
use read table
endloop.
regards
Ramchander Rao.k
11-27-2008 11:11 AM
Hi,
Loop at itab1 into wa1.
v_index = sy-index+1.
read table itab1 into wa2 index v_index.
Compare wa1-field and wa2-field.
endloop.
This will help!
Regards,
Prashant
12-11-2008 12:26 PM
12-11-2008 12:28 PM
11-27-2008 9:48 AM
hi,
Where you want to compare against which variable.
loop at itab.
if itab-f1 = itab-f2
endif.
endloop.
this is the simplest form
regards
Ramchander Rao.k
Edited by: ramchander krishnamraju on Nov 27, 2008 10:48 AM