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: 

File to table

former_member622551
Participant
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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 .

5 REPLIES 5

former_member188685
Active Contributor
0 Kudos

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 .

Former Member
0 Kudos

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

P561888
Active Contributor
0 Kudos

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

former_member622551
Participant
0 Kudos

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

0 Kudos

Hi ,

Ok then do the above steps...

Regards,

Bharani