Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data Migration from CSV file to Database Table.

Former Member
0 Likes
678

Hi,

I have checked few answered threads on Data Migration Issues but didn't find the solution yet.

I am reading data from an CSV file to internal table but the complete row is coming under one field of the internal table.

How i can get values in different fields of the internal table from the CSV file ?

Thanks & Regards.

Raman Khurana.

4 REPLIES 4
Read only

Former Member
0 Likes
559
Read only

Former Member
0 Likes
559

Hi,

If you are using GUI_UPLOAD, you might have missed to make has_field_separator as 'X'.

EXPORTING

CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
   filename                      = 'C:\File.csv'
   filetype                      = 'ASC'
   has_field_separator           = ' X'  "<= Set this as 'X'.

  TABLES
    data_tab                      = itab.

Regards,

Manoj Kumar P

Read only

Former Member
0 Likes
559
Read only

Former Member
0 Likes
559

Hi Manoj,

Thanks for your input.

I tried with Separator 'X' also but still i am facing the same issue.

Thanks & Regards

Raman khurana