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: 

Reading Excel data, FM: ALSM_EXCEL_TO_INTERNAL_TABLE problem

Former Member
0 Kudos

Hi all,

I'm using function module ALSM_EXCEL_TO_INTERNAL_TABLE, to read content of MS excel file and then I'm uploading those data into SAP. I'm facing probably performance problems within this module. My Excel file has 22000 rows and my ABAP program ends with short dump: MESSAGE_TYPE_X - Control Framework : Error processing control. Error occurs in function module AC_SYSTEM_FLUSH there is an exception raised:

  • method_call_error: MESSAGE ID 'CNDP' TYPE 'X' NUMBER 006 RAISING CNTL_ERROR.AC_SYSTEM_FLUSH

Could it be that it has something to do with the performance of exchanging data between application server and front-end?

I've noticed that FM: ALSM_EXCEL_TO_INTERNAL_TABLE is reading excel file via windows clipboard (it selects whole range of workbook then it copies to clipboard). Does anybody know something more about this technique?

Regards, Martin

4 REPLIES 4

Former Member
0 Kudos

Hi,

I wonder why that would happen. Any way, have you tried saving the excel file as a tab-delimited text file and using FM GUI_UPLOAD? Secondly, have you tried reducing the number of rows in excel file just to make sure that volume of data is causing problems?

Regards

0 Kudos

Yes once I've decreased number of row to 5000 it running without error. Are there any limitations of Excel file size available? But I'm still wondering why system kicks me of when I'm trying to debug it.

Regards, Martin

0 Kudos

Hi Martin,

I went through the function module ALSM_EXCEL_TO_INTERNAL_TABLE .

With this function it is not possible to download more than 9999 records from the excel sheet.

This is so because :

The return table is type ALSMEX_TABLINE

and the fields rows and columns are numc with maximum length 4 due to which its not working.

This is all what I could find there might be another way of doing it.

Just let me also know if u find another way of doing it.

Regards

Varun

Lakshmant1
Active Contributor
0 Kudos

Hi Martin,

Have a look at OSS Notes 129994 and 127666. Hope these notes give some inputs.

Thanks

Lakshman