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

Reading Excel file for Linux Application Server

Former Member
0 Likes
520

Dear SDNers,

I m trying to read the excel file content into internal table from my application server which is installed on Linux.

I used below statements for the same.

open DATASET ld_file  FOR INPUT IN TEXT MODE ENCODING  NON-UNICODE IGNORING CONVERSION ERRORS.

read DATASET ld_file  into wa_string.

wa_string is having all junk data like #############>#################'e#####################

But its giving me some junk data into internal table. Not the actual data.

Please let me know is it possible to read ms-excel data from linux application server?

If not, then what is the alternate to do the same.

Regards,

Venkat

3 REPLIES 3
Read only

Former Member
0 Likes
466

Hi Venkat

Have you tried just using.

OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.

Else you can look at the FM ALSM_EXCEL_TO_INTERNAL_TAB to convert binary.

Hope this helps

Vic

Read only

0 Likes
466

I have tried it..Even though it is giving same junk values..

Read only

0 Likes
466

Hi Nath

Don't know if you found a solution as yet.

But have you tried the FM TEXT_CONVERT_XLS_TO_SAP?

Regards

Vic