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

Uploading Excel sheet data into internal table

Former Member
0 Likes
657

Hi All,

I want to upload Excel file data into internal table. My problem is that my excel file having more than one sheets. I want to upload the data of particula Excel sheet..

Please suggest me how can I upload particulat Excel sheet data .

Thanks and regards

Praveen

6 REPLIES 6
Read only

rahulkavuri
Active Contributor
0 Likes
597

check this link

You can check Satish's answer in the above link

<b>Award points if found helpful</b>

Read only

0 Likes
597

Hi Rahul,

Thanks for your mail.

Actually i have to upload the data using excel sheet name (because my excel file contains more than one sheets ). My intension is to how to Export the data of particular sheet.

For example my excel file contains 3 sheets, Say Data1 sheet , Data2 sheet and Data3 sheet.

Here I want to upload Data1 sheet data only.

Thanks and regards

Praveen

Read only

0 Likes
597

Hi,

As suggested by Rich in the link mentioned,use the below code to locate the active excel sheet and then call alsm_excel_to_internal_table fm.

CALL METHOD OF gs_excel 'WorkSheets' = gs_activesheet

EXPORTING #1 = gv_sheet_name.

CALL METHOD OF gs_activesheet 'Activate' .

CALL METHOD OF gs_chart 'Location'

EXPORTING #1 = 2 #2 = gv_sheet_name.

Read only

0 Likes
597

HI Jayanthi,

Thanks for your reply.

I tried with the code but my problem is not solving .

Some times i need to upload more than one Excel sheets data depend up on requirement How can I identify the Sheet Name before passing to the FM ALSM_EXCEL_TO_INTERNAL_TABLE.

Can you please send me the code.

Thanks and regards

Praveen

Read only

Former Member
0 Likes
597

HI Praveen,

Here is the solution, just click on this link.

?

I hope it solves ur problem.

Regards,

Kumar

Read only

Former Member
0 Likes
597

Use Function Module:

ALSM_EXCEL_TO_INTERNAL_TABLE.