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

Name Excel Workbook

Former Member
0 Likes
568

Hi All,

I am getting some data onto an excel workbook using the below code:

CALL METHOD OF h_excel 'Workbooks' = h_mapl.

SET PROPERTY OF h_excel 'Visible' = 1.

CALL METHOD OF h_mapl 'Add' = h_map.

This workbook will have the name initially as Book1. I want to change this name to something else. How can I do this. I tried

SET PROPERTY OF h_map 'NAME' = 'Hello'.

This didn't work. Can somebody please help me out?

Thanks a lot!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
531

Hi,

Please go through the below link.

http://wiki.sdn.sap.com/wiki/display/ABAP/Sampleprogramtoopenexcelsheetusing+OLE

With Regards,

Sumodh.P

Hi All,

I am getting some data onto an excel workbook using the below code:

CALL METHOD OF h_excel 'Workbooks' = h_mapl.

SET PROPERTY OF h_excel 'Visible' = 1.

CALL METHOD OF h_mapl 'Add' = h_map.

This workbook will have the name initially as Book1. I want to change this name to something else. How can I do this. I tried

SET PROPERTY OF h_map 'NAME' = 'Hello'.

This didn't work. Can somebody please help me out?

Thanks a lot!!

1 REPLY 1
Read only

Former Member
0 Likes
532

Hi,

Please go through the below link.

http://wiki.sdn.sap.com/wiki/display/ABAP/Sampleprogramtoopenexcelsheetusing+OLE

With Regards,

Sumodh.P