Application Development 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: 

Fetching long string from excel sheet.

Former Member
0 Kudos

Hello experts,

I wish to fetch a text from an excl sheet that is very long. I used FM "TEXT_CONVERT_XLS_TO_SAP"

but it fetches only 256 characters of that text into the internal table.

I want all the text to be copied into internal table filed. I used string type and also edidd-sdata (1000 char). But that wont work as the FM itself isnt fetching all the text.

Please suggest some solution except to change the FM.

Thanks and regards!

Sumit Nene

1 ACCEPTED SOLUTION

faisal_altaf2
Active Contributor

Hi, Sumit

Have you tried FM GUI_UPLOAD ? Hope will help you to solve out your problem,

Best Regards,

Faisal

3 REPLIES 3

faisal_altaf2
Active Contributor

Hi, Sumit

Have you tried FM GUI_UPLOAD ? Hope will help you to solve out your problem,

Best Regards,

Faisal

Former Member
0 Kudos

The FM TEXT_CONVERT_XLS_TO_SAP use internaly a filed with maximum length 256 to read cells fromo XLS for that reason you get only 256 characters. To correct that split the long excel cell to more cells or try to download as text file and to upload it them into sap

Former Member
0 Kudos

problem solved.

fm ALSM_EXCEL_TO_INTERNAL_TABLE doesnt work here as maximum length of field it takes is 50 chars and for TEXT_CONVERT_XLS_TO_SAP it takes 256 chars.

i used gui_upload fm which takes text of any length but had to use a tab delimited file..

Thank you all for your suggestions.

Regards.

Sumit Nene