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

File to table

Former Member
0 Likes
1,016

Hello

i have a data file separateb by tabs. I need to transfer this data to internal table, but i don´t know how to find the tab.

I must use the open dataset.

Any suggestion?

Thanks to all!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
987

is the File on Application server or Presentation server..?

if it is application server you can identify the tab using the

cl_abap_char_utilities=>horizontal_tab

if it is Presentation server then you can use GUI_UPLOAD

specify/pass 'X' to the importing parameter HAS_FIELD_SEPARATOR .

Hello

i have a data file separateb by tabs. I need to transfer this data to internal table, but i don´t know how to find the tab.

I must use the open dataset.

Any suggestion?

Thanks to all!

5 REPLIES 5
Read only

Former Member
0 Likes
988

is the File on Application server or Presentation server..?

if it is application server you can identify the tab using the

cl_abap_char_utilities=>horizontal_tab

if it is Presentation server then you can use GUI_UPLOAD

specify/pass 'X' to the importing parameter HAS_FIELD_SEPARATOR .

Read only

Former Member
0 Likes
987

Hi,

Is this file in the presentation server ?

If so you can use the GUI_UPLOAD

Function Module...... If the file is in the application server then you need to use the open dataset thing.

Regards,

Pramod

Read only

BH2408
Active Contributor
0 Likes
987

Hi ,

This can be done in 2 ways.

1. If urs file is presented on the presentation server then use the gui_upload

2. If the file presented on the application we need to use the Open dataset.

First use the Open file from the application server, then by using the

Read dataset use read from the file to internal table.

Close the file.

Try this way...

Regards,

Bharani

Read only

Former Member
0 Likes
987

No, i´m sure that i need use the open dataset.

Read only

0 Likes
987

Hi ,

Ok then do the above steps...

Regards,

Bharani