2006 Aug 10 11:18 AM
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
2006 Aug 10 11:27 AM
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
2006 Aug 10 11:20 AM
for upload from pc, you can use the function module GUI_UPLOAD.
This FM is well documented.
Regards,
Ravi
2006 Aug 10 11:21 AM
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
2006 Aug 10 11:22 AM
2006 Aug 10 11:25 AM
2006 Aug 10 11:27 AM
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
2006 Aug 10 11:59 AM
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
2006 Aug 10 12:13 PM
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?
2006 Aug 10 12:26 PM
Hi Peter,
Try placing the File on to the citrix server desktop and use GUI_DOWNLOAD...
May it work ...?
Regards,
Sridhar
2006 Aug 10 3:58 PM
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...
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |