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

Uploading file from PC

Former Member
0 Likes
2,899

Hi,

Im trying to upload a file from my PC. Im currently working on a Citrix/Metaframe connection. Do anyone know how I should write the correct path to locate my file on c:\. I have used a parameter and using open dataset to upload the file. Is there any other way to get to my file from one server to computer without involving ftp.

Thanks

Peter

1 ACCEPTED SOLUTION
Read only

sridharreddy_kondam
Active Contributor
0 Likes
2,250

Hi peter,

Use <b>CG3Y</b> to upload from application server to PC file

and <b>CG3Z</b> to upload from PCfile to application server...

and if this does not help can u elaborate u req. more..

Regards,

Sridhar

Hi,

Im trying to upload a file from my PC. Im currently working on a Citrix/Metaframe connection. Do anyone know how I should write the correct path to locate my file on c:\. I have used a parameter and using open dataset to upload the file. Is there any other way to get to my file from one server to computer without involving ftp.

Thanks

Peter

9 REPLIES 9
Read only

Former Member
0 Likes
2,250

for upload from pc, you can use the function module GUI_UPLOAD.

This FM is well documented.

Regards,

Ravi

Read only

Former Member
0 Likes
2,250

use FM <b>GUI_UPLOAD</b>

START-OF-SELECTION.
  gd_file = p_infile.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = gd_file
      has_field_separator     = 'X'  "file is TAB delimited
    TABLES
      data_tab                = it_record
    EXCEPTIONS
      file_open_error         = 1
      file_read_error         = 2
      no_batch                = 3
      gui_refuse_filetransfer = 4
      invalid_type            = 5
      no_authority            = 6
      unknown_error           = 7
      bad_data_format         = 8
      header_not_allowed      = 9
      separator_not_allowed   = 10
      header_too_long         = 11
      unknown_dp_error        = 12
      access_denied           = 13
      dp_out_of_memory        = 14
      disk_full               = 15
      dp_timeout              = 16
      OTHERS                  = 17.
    IF sy-subrc NE 0.
      write: 'Error ', sy-subrc, 'returned from GUI_UPLOAD FM'.
      skip.
    endif.

Message was edited by: Santosh Kumar P

Read only

Former Member
0 Likes
2,250

Hi

use Fm GUI_UPLOAD.

Regards,

Sumit.

Read only

Former Member
0 Likes
2,250

check transaction CG3Z

Read only

sridharreddy_kondam
Active Contributor
0 Likes
2,251

Hi peter,

Use <b>CG3Y</b> to upload from application server to PC file

and <b>CG3Z</b> to upload from PCfile to application server...

and if this does not help can u elaborate u req. more..

Regards,

Sridhar

Read only

Former Member
0 Likes
2,250

Hi,

If I am not wrong then Citrix/Metafram conn is like a remote login. If that's teh case then you need to have the file on the server to which you connect before using the mentioned FM's. There is no way of sending a file from your PC to the citrix server i guess except for FTP.

Hope this helps.

Regards

Nishant

Read only

Former Member
0 Likes
2,250

Im creating a custom developed bdc-program. And this program needs to fetch the file from my PC.

I have debugged the FM GUI_UPLOAD but in that test you need to write down the path and the problem is: what path to use? I cannot write c:\xxx.dat since it is looking in the appl. server and not the c:\ on my PC.

I might come around the problem if I knew how to create a dataset that can browse (not only writing the path). If a can develop this then Citrix/Metaframe will guide me to the correct path i believe. Does anyone how to do this?

Read only

0 Likes
2,250

Hi Peter,

Try placing the File on to the citrix server desktop and use GUI_DOWNLOAD...

May it work ...?

Regards,

Sridhar

Read only

Former Member
0 Likes
2,250

Hi Peter,

When using citrix, there will be a folder in which OFFICE applications will be available.

Place your file that needs to be uploaded, in the Office application folder and save it in the path available in the server.

Now use this path to go ahead with your upload.

Hope this info helps for your criteria.

Best Regards,

...Arun...