‎2009 Dec 08 10:04 AM
Hi,
I have a .csv file, which consist of combination of strings and decimals. i want to put them into corresponding fields using split statement. Is it possible ? if so, please provide me with example codes.
Thanks,
Gaurav.
‎2009 Dec 08 10:07 AM
Please search in SCN. You will find quite a lot of examples for using SPLIT statement
‎2009 Dec 08 10:11 AM
Hi,
SPLIT wa_string AT ',' INTO field1 field2 ...
For this u need to know the number of fields in the string. Also u can make use of a table to get the values.
SPLIT wa_string AT ',' INTO TABLE it_tab.
Revert if u need more on this.
‎2009 Dec 08 10:17 AM
Just press F1 on split. you will get the sample code.. make sure you define the variables/fields as needed.. like dont pass floating points numbers to integers.. you will minn the right data...