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

Issue with use of Function Module GUI_UPLOAD

Former Member
0 Likes
1,042

Hi Experts,

I have an issue in using the Function Module GUI_UPLOAD for uploading the contents of an Excel file on the Presentation Server to an internal table in an ABAP Program.

My file consists of around 300 records but the FM succeeds in uploading only the first 6 lines to the Internal Table specified while calling the FM.

I dont have any idea why this happens. Any pointers in this direction will be helpful.

Thanks in advance.

Regards,

Keerthi

7 REPLIES 7
Read only

Former Member
0 Likes
921

Use FM ALSM_EXCEL_TO_INTERNAL_TABLE to upload data from excel file .

Hope this helps...

Read only

Former Member
0 Likes
921

Hi,

Try with this function module.

ALSM_EXCEL_TO_INTERNAL_TABLE

Hope this helps u.

Thanks.

Read only

Former Member
0 Likes
921

Hi Keerthi,

What are the parameters that you are passing to the FM: GUI_UPLOAD?

Also, if try to debug the function module. If not, in Debug Mode, delete some records from your internal table and see what happens. Delete preferably the records that are being uploaded in the excel now.

Best Regards,

Ram.

Read only

Former Member
0 Likes
921

I am sorry, I mentioned it wrongly.

I am in fact saving the Excel File in the Text (Tab Delimited) format before calling the FM, GUI_UPLOAD.

I am not trying to upload the Excel file data directly using this FM. Sorry for the confusion.

Read only

0 Likes
921

Hi ,

Check how you are declaring the internal table.

Regards,

Deepthi

Edited by: Deepthi Upadhyaya on Jan 20, 2009 12:33 PM

Read only

Former Member
0 Likes
921

Hi,

Kindly go through this link below:

https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=60655105

Hope it helps you

Regards

Mansi

Read only

Former Member
0 Likes
921

Hi,

The issue got resolved. It was a problem with the data format actually.

Thank you all very much for your quick and valuable responses.

Regards,

Keerthi