moving data from internal tables

Question:
An internal table with one field contains a no: of records..........with tab delimeter
i want to move record by record into another internal table with 2 fields
please give me code for this
Answer:
Try this:
constants: c_tab type x value '09'.
Loop at itab1.
split itab1-field at c_tab into itab2-field1 itab2-field2.
append itab2.
endloop.
For more info have a look at the F1 help on the SPLIT keyword, it is very good.
_________________
Kind Regards
Rosie Brent
Please remember to search the forum and check the FAQ before posting questions, thank you.
Tuly Idiot most of the time, part-time Guru
Answer:
hai all,
Malli first of all let me tell u one thing always ask ur question precisly else u would not be able to get right answers.
now as u want to add all the records of a internal table for a field into another internal table, this contains many questions in itself.
1)weather records have to be moved on condition.
loop at itab where name = 'second'.
itab1-name = itab-name.
append itab1.
write:/ itab-name.
endloop.
2) weather records have to be moved for matching fields.
loop at itab.
move-corresponding itab to itab1.
append itab1.
write:/ itab1-name.
endloop.
3) weather records have to be moved for a specific field without condition.
loop at itab.
itab1-name = itab-name.
append itab1.
write:/ itab1-name.
endloop.
4) weather records have to be moved for all fields without running a loop.
itab1[] = itab[].
now i hope u would have got a bit of idea that a question itseld may contain many questions. hope ur problem is solved now.
pindropsilence thanking u all,
keep smiling
_________________
Forget past, live in today, think for tomorrow.

More Articles:

Fomatting List Output?
How to add screen field for text at item level in MIO1, MIO4?
Download certain fields only into EXCEL?
BAPI (Interface to JSP)?
How to create a fixed width file extract output?
Manipulation of Date Format?