‎2007 Oct 30 4:11 AM
Hi All,
i am trying to upload the excel data thru bdc recording method.
after declaring table and internal tables i am calling gui_upload and in the file name i gave the path and data tab = itab.
while executing the it is giving error message 'FILE NOT AVAILABLE'.
what exactly the error i am not able to predict
plz helep
Regards,
Krishna
‎2007 Oct 30 4:25 AM
Hi,
File manuplations...............................
1. At the presentation level:
->GUI_UPLOAD
->GUI_DOWNLOAD
->CL_GUI_FRONTEND
2. At the application server level:
->OPEN DATASET : open a file in the application server for reading or writing.
->READ DATASET : used to read from a file on the application server that has been opened for reading
-> TRANSFER DATASET : writing data to a file.
-> CLOSE DATASET : closes the file
-> DELETE DATASET : delete file
************************************************************************************************
If file is on the local PC,use the function module GUI_UPLOAD to upload it into an internal table by passing the given parameters......
call function 'GUI_UPLOAD'
exporting
filename = p_file
filetype = 'ASC'
has_field_separator = '#'
tables
data_tab = t_data
******************************************************************************
p_file : excel file path.
t_data : internal table
*******************************************************************************
<b>reward points if useful.</b>
regards,
Vinod Samuel.
‎2007 Oct 30 4:26 AM
hi krishna,
Pls explain me ur problem correctly or post ur code not complete code.........
I hope the file path may be wrong or Parameter declaration of filename may be wrong.........
<b>parameter : p_path type rlgrap-filename.</b>
have u declared like this?
Reward me if useful......
Harimanjesh AN
‎2007 Oct 30 4:29 AM
Hi,
for file name you have to provide path of the file which is available in presentation server.
E.g. C:/test.txt .
Regards,
Raghavendra
‎2007 Oct 30 4:34 AM
hi Krishna..
Paste ur code to find the Error reason.
Regards.
Varma
‎2007 Oct 30 7:44 PM
please check your filepath and the parameter decalration for the filepath.