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

problem with gui_upload

Former Member
0 Likes
638

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

5 REPLIES 5
Read only

Former Member
0 Likes
617

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.

Read only

harimanjesh_an
Active Participant
0 Likes
617

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

Read only

Former Member
0 Likes
617

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

Read only

varma_narayana
Active Contributor
0 Likes
617

hi Krishna..

Paste ur code to find the Error reason.

Regards.

Varma

Read only

SAPAI
Participant
0 Likes
617

please check your filepath and the parameter decalration for the filepath.