How to split the string

Question: Hi,

I have one req. Plz help me .

0,"120"1,"58586442 109516"10,"232268662"29,"908391010320"29-2,"908391010321"29-3,"908391010322"29-4,"908391010323
"29-5,"908391010324

I want to split the above string as follows. and save in internal table.


Col1 - Col2
___________________________
1 - 58586442 109516

29 - 908391010320
29-2 - 908391010321
29-3 - 908391010322
29-4 - 908391010323
29-5 - 908391010324
_________________
Thanks,
Prakash

Answer:
Hi,

Use SPLIT

Regards,

Melwin

Answer:
Start by writing a pseudo code. Something like this:

Part of the string before first comma is Col1 of ITAB.
Next part of the string, enclosed in double quotes is Col2.
That makes one record of ITAB.
Repeat above till you consume the whole string!

I have done half your job. Remaining is only translating English to ABAP..
Copyright ?2007 - 2008 www.jt77.com