Application Development 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: 

tab delimeted text file

Former Member
0 Kudos

Hi Group,

How to upload tab delimeted text file using FM KCD_CSV_FILE_TO_INTERN_CONVERT or is there any other way.

I am using text file with header text and the data will start from second row.

7 REPLIES 7

Former Member
0 Kudos

use CALL FUNCTION 'WS_UPLOAD'

EXPORTING

filename = path

filetype = 'DAT' "txt

Regards

Former Member
0 Kudos

Hi ,

Use like this .

constants: c_hex_tab type x value 9.

call function 'KCD_CSV_FILE_TO_INTERN_CONVERT'

exporting

i_filename = filename

i_separator = l_separator

tables

e_intern = l_intern

exceptions

upload_csv = 1

upload_filetype = 2

others = 3.

where l_separator = c_hex_tab. " for tab delimitter

Regards,

GSR.

0 Kudos

Hi Srinivas,

How to start from second row,as my first row contains header information so I have to start from second row,please suggest

0 Kudos

After the upload, just delete the first row.

0 Kudos

Instead use FM : GUI_UPLOAD

here u can import the Header info into some other String

0 Kudos

Hi Srinivas Reddy,

How to pass the header info in to some other String,

can you please suggest

naimesh_patel
Active Contributor
0 Kudos

you can use

WS_UPLOAD or UPLOAD Fm, give filetype = 'DAT'.

You have to make you itab which can contain all your records. I mean if you first field of header is char 5 and item row it is char 10,then you have to make your itab-field1 as char 10..

Regards,

Naimesh

Reward points, if you find good..!