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

GUI_UPLOAD from unix server

Former Member
0 Likes
641

Hi all,

I m trying to use gui_upload fm to get a file on an unix server but I have an error 'File not exist'

I have try with an dataset and all work fine then I suppose that the path must be change to be suitable with the FM...?


data infile type string.

infile = '/X/Y/Z.SAP'.

CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
   filename                      = name
   FILETYPE                      = 'ASC'
  tables
    data_tab                      = itab.

The same path works with dataset 😕

The file is text.

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
550

I don't think you can work with that GUI_UPLOAD Function to read the unix file. unless you are working directly on application server.

are you..?

Hi all,

I m trying to use gui_upload fm to get a file on an unix server but I have an error 'File not exist'

I have try with an dataset and all work fine then I suppose that the path must be change to be suitable with the FM...?


data infile type string.

infile = '/X/Y/Z.SAP'.

CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
   filename                      = name
   FILETYPE                      = 'ASC'
  tables
    data_tab                      = itab.

The same path works with dataset 😕

The file is text.

Thanks,

2 REPLIES 2
Read only

Former Member
0 Likes
551

I don't think you can work with that GUI_UPLOAD Function to read the unix file. unless you are working directly on application server.

are you..?

Read only

0 Likes
550

You right : gui_upload used for work in local and dataset to work in server !

Thx

Edited by: shwaps ant on Oct 30, 2008 5:04 PM