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

Open excel sheet through program calculate value and fetch value in program

Former Member
0 Likes
302

Hi experts,

My requirement is to open a excel sheet while i execute a report,There is some calculation that i need to do in excel sheet and want to fetch the calculated value back in to my program.

Is there any way of doing so ?

Regards,

Kashyap

1 REPLY 1
Read only

naimesh_patel
Active Contributor
0 Likes
262

You can use the OLE to open the excel, perform the calculation and read the values from the cell.

Check [Blag|https://wiki.sdn.sap.com/wiki/x/nDk]'s blog [Excel OLE and ABAP - Create fancy reports|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13091] [original link is broken] [original link is broken] [original link is broken]; for using the OLE to Open Excle and set the values.

To get the Values back from the Excel, you can use the GET PROPERTY of Cell, like this:


      GET PROPERTY OF e_cell 'Value' = lf_string.

Regards,

Naimesh Patel