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 in uploading XL data

Former Member
0 Likes
683

Hi,

We are trying to use the class->method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD for reading data in an XL sheet. The data read into the internal table consists of junk characters instead of the proper XL sheet content.

We have tried creating the internal table of a custom type structure and also as of type string. It doesnt work in either ways.

Any suggestions on the same?

Thanks,

Prasath N

Edited by: Prasath Natesan on Apr 7, 2008 10:52 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
635

using simply a GUI_UPLOAD bring the data up unformatted. what you see is essntially what you would see if you brought a XLS up in wordpad or something like that. the data is formatted. You should use one of the function modules specifically set up for reading excel.

Something like CL_UA_EXCEL_TOOLS (object) or ALSM_EXCEL_TO_INTERNAL_TABLE (FM)

using simply a GUI_UPLOAD bring the data up unformatted. what you see is essntially what you would see if you brought a XLS up in wordpad or something like that. the data is formatted. You should use one of the function modules specifically set up for reading excel.

Something like CL_UA_EXCEL_TOOLS (object) or ALSM_EXCEL_TO_INTERNAL_TABLE (FM)

4 REPLIES 4
Read only

Former Member
0 Likes
636

using simply a GUI_UPLOAD bring the data up unformatted. what you see is essntially what you would see if you brought a XLS up in wordpad or something like that. the data is formatted. You should use one of the function modules specifically set up for reading excel.

Something like CL_UA_EXCEL_TOOLS (object) or ALSM_EXCEL_TO_INTERNAL_TABLE (FM)

Read only

0 Likes
635

Hi,

Thanks for your reply.

We are on a CRM system and these function modules does not exist here. Can someone let me know if there are similar function modules in CRM?

Thanks,

Prasath N

Read only

0 Likes
635

To Rectify the problem, you have one option. Save the XL file as Tab Delimited file. then use the Method.

use HAS_FIELD_SEPARATOR = 'X' while calling method. it will work.

Read only

0 Likes
635

Thanks that works perfectly.

One more question. We have certain special characters in our XL sheet for example characters like å, ä, Ö, These special characters are replaced by the symbol " when we upload it. Is there a way to retrieve these characters properly?

Thanks,

Prasath N