2006 Dec 10 9:34 PM
hello ALL;
THE ITAB LIKE LIKE
names position RATE
mILLER ADMIN 1
sTONE DEV 2
steve admin 3
i need the result
admin Miller 1
steve 3
Dev stone 2
how could i do this
Thanks for your help.
Chris
2006 Dec 10 9:41 PM
use the following syntax:
Sort Itab by Position name rate assending.
loop at itab.
write 😕 itab-position, itab-name, itab-rate.
end loop.
Regards,
Guru
PS - Reward answers if helpful
2006 Dec 10 9:41 PM
use the following syntax:
Sort Itab by Position name rate assending.
loop at itab.
write 😕 itab-position, itab-name, itab-rate.
end loop.
Regards,
Guru
PS - Reward answers if helpful
2006 Dec 10 9:45 PM
2006 Dec 10 9:51 PM
use the following syntax:
Sort Itab by Position name rate assending.
loop at itab.
on change of itab-position.
write 😕 itab-position, itab-name.
exit.
endon.
write 😕 itab-name.
end loop.
- Guru
Reward helpful answers
2006 Dec 10 9:54 PM
ist correkt,
i dont want to display the table, i want to change the table (modify)
Thanks for help
2006 Dec 10 9:58 PM
I didnt get you. If you are trying to modify the internal table then instead of wrie you can use the update itab syntax. That will modify your internal table.
BTW, what is that you are trying to do exactly?
- Guru
2006 Dec 10 10:07 PM
Is correct to
Ok againe
Select * from table into it_tab.
Itab looks like
Position Name
admin Miller
dev scott
admin Steve
Loop at itab
modify itab
endloop.
The result should look like
admin Miller
Steve
Dev Scott
2006 Dec 10 10:11 PM
If you are tryign to get the value of name field into the position field, then in the loop before modify statement put this syntax.
itab-position = itab-name.
but I still dotn understand your intentions to do this. why would you be concerned on moving the value to the first column. You can always handle this logically in yoru program accordign to the need.
- guru
2006 Dec 17 2:17 PM