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

Data transfer.

Former Member
0 Likes
453

Hi experts,

I have a doubt, what is the easiest method to transfer data from .xls file into ztable(which was created by me). I have 3 fields in .xls file as well 3 fileds in my ztable.

Could you help, how i can i achieve this(with out bdc methods... etc.,)

Regards.

Vishnu.

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
433

Hi,

You can use the following FM to upload excel spreadsheets to an internal table then update the custom table from an internal table.

ALSM_EXCEL_TO_INTERNAL_TABLE

TEXT_CONVERT_XLS_TO_SAP

KCD_EXCEL_OLE_TO_INT_CONVERT

Also check these links for sample codes.

http://www.sapdevelopment.co.uk/file/file_upexcelalt2.htm

http://www.sapdevelopment.co.uk/file/file_upexcel.htm

http://www.sapdevelopment.co.uk/file/file_upexcelalt1.htm

Regards,

Ferry Lianto

2 REPLIES 2
Read only

ferry_lianto
Active Contributor
0 Likes
434

Hi,

You can use the following FM to upload excel spreadsheets to an internal table then update the custom table from an internal table.

ALSM_EXCEL_TO_INTERNAL_TABLE

TEXT_CONVERT_XLS_TO_SAP

KCD_EXCEL_OLE_TO_INT_CONVERT

Also check these links for sample codes.

http://www.sapdevelopment.co.uk/file/file_upexcelalt2.htm

http://www.sapdevelopment.co.uk/file/file_upexcel.htm

http://www.sapdevelopment.co.uk/file/file_upexcelalt1.htm

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
433

Hi,

Follow these steps:

1. Declare an internal table of type ztable.

2. Get the contents of the excel file into your internal table:

Use " ws_upload" or "ALSM_EXCEL_TO_INTERNAL_TABLE"

3. Insert the values in the internal table into your ztable.

Regards,

Vinod.