10-14-2008 5:50 PM
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!
10-14-2008 5:54 PM
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 .
10-14-2008 5:54 PM
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 .
10-14-2008 5:55 PM
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
10-14-2008 5:56 PM
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
10-14-2008 6:04 PM
10-14-2008 6:07 PM