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 data from excel file whose number of columns are not fixed

Former Member
0 Kudos

hi,

I need to read data from input excel sheet. But the problem here is everytime the number of columns will vary.

The FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' will ask for the row number and column number which is not known and hence of no help.

Is there any other way to do this using ABAP?

1 ACCEPTED SOLUTION

ThomasZloch
Active Contributor
0 Kudos

Do you know at least a maximum row and column range of the Excel data? This function uses the clipboard to get the data into ABAP, and as far as I know, you can copy a larger range, empty cells will then be ignored. Give it a try.

Thomas

3 REPLIES 3

Former Member
0 Kudos

Hi

I found a [link|;, this might be helping you in this case.

ThomasZloch
Active Contributor
0 Kudos

Do you know at least a maximum row and column range of the Excel data? This function uses the clipboard to get the data into ABAP, and as far as I know, you can copy a larger range, empty cells will then be ignored. Give it a try.

Thomas

0 Kudos

Hi both,

Thanks a lot for the replies.

Hi Thomas,

I have been trying your suggestion and it works ok for me unless no cell is empty. But if some cell in middle is empty then it skips that which creates again problem for me.