Skip to Content
0
Jun 17, 2008 at 07:06 PM

Reading CSV file

25 Views

I am reading CSV located on PC or unix server and loading into internal table

    LOOP AT itab1 INTO WA_itab1.
      SPLIT WA_itab1 AT ',' INTO WA_INPUT-f1
.....                                           WA_INPUT-f2  
                                                WA_INPUT-f3
                                                WA_INPUT-f4.
append wa_input to it_input.
endloop.

the above code works fine when f1,f2,f3,f4 are seperated by comma....however when the data in the field is f3 is separated by extra comma then field f4 is filled by wrong data ...how can i avoid it this situation .......