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

adding logo to excel file in application server

Former Member
0 Likes
2,967

hi

i can generate a excel file on application server.is there any way to add a logo to excel file that is placed on application server?

4 REPLIES 4
Read only

Former Member
0 Likes
1,685

can u gv me a simple example passing logo to this FM?i am not able to progress on this

Read only

0 Likes
1,685

Hi,

I know this thread is posted in 2013, but this is the post which came while searching "Add images in application server to excel", So I think it would be helpful for those who try to add image to excel from application server.

Download existing Bitmap logo in SAP to your presentation server. - Code Gallery - SCN Wiki

Use the FM SAPSCRIPT_GET_GRAPHIC_BDS to get the image from application server (uploaded via se78)

Use the FM SAPSCRIPT_CONVERT_BITMAP to convert the image to bitmap.

Use the FM SCMS_BINARY_TO_XSTRING to convert to xstring

Then use abap2xlsx method SET_MEDIA of the class ZCL_EXCEL_DRAWING to add the image to excel.



Regards

Jesse Owens K

Read only

_IvanFemia_
Active Contributor
0 Likes
1,685

Install abap2xlsx and check demo zdemo_excel16

You can add images for different sources

Ivan