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

Excel to Internal Table Issue

Former Member
0 Likes
913

Hi Experts,


 

Row


 

 

Column


 

 

Value


 

 

1


 

 

0001


 

 

Prem(First Name )


 

 

1


 

 

0002


 

 

Raj(Middle name )


 

 

1


 

 

0003


 

 

Kaushik(Last name
  )


 

 

2


 

 

0001


 

 

Naresh


 

I have the above data in excel file  and my internal table like as follows

Data : begin of  it_itab occurs 0,

Row type c,

Column type string,

Value type string,

End of it_itab.

Now I want to upload the excel file to my internal table
filed wise  i.e in my intenal table row
shold have row values from excel same as
for column and value also

Can anyone suggest me fix this issue?

Best Regards,

Ramjee M

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
884

Hi,

did you try function call function 'ALSM_EXCEL_TO_INTERNAL_TABLE' ?

Fred

Hi,

did you try function call function 'ALSM_EXCEL_TO_INTERNAL_TABLE' ?

Fred

4 REPLIES 4
Read only

Former Member
0 Likes
885

Hi,

did you try function call function 'ALSM_EXCEL_TO_INTERNAL_TABLE' ?

Fred

Read only

Former Member
0 Likes
884

You may use this function to put data in internal table.


CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'

     EXPORTING

       filename                = p_file *xcel file name

       i_begin_col             = p_scol  *start column

       i_begin_row             = p_srow *start row

       i_end_col               = p_ecol *end col

       i_end_row               = p_erow *end row

     TABLES

       intern                  = it_tab

     EXCEPTIONS

       inconsistent_parameters = 1

       upload_ole              = 2

       OTHERS                  = 3.

  Use this function to put data in internal table.

Read only

rosenberg_eitan
Active Contributor
0 Likes
884

Hi,

Assuming  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'

See

Regards.

Read only

Former Member
0 Likes
884

Thank you all for your valuable suggetions..

i am using the function module ' TEXT_CONVERT_XLS_TO_SAP'.

it is working fine