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

custom icons

Former Member
0 Likes
2,328

I have created an icon in sap using the transaction "ICON". Now i want to know how do i associate a specific image to it. Currently my icon has simply a 'X' image showing with it but i want a specific image of my own to be associated with it.

Is this possible? How?

regards,

Priyank

I have created an icon in sap using the transaction "ICON". Now i want to know how do i associate a specific image to it. Currently my icon has simply a 'X' image showing with it but i want a specific image of my own to be associated with it.

Is this possible? How?

regards,

Priyank

12 REPLIES 12
Read only

Former Member
0 Likes
1,853

when you create an ICON, in the ID field you have to enter the appropriate ID for the Image.

Read only

0 Likes
1,853

Where can i find out which id is associated with which image?

regards,

Priyank

Read only

0 Likes
1,853

Hi Priyank Jain,

There is a table called as icon where U can see the diffrent icons available.

Read only

0 Likes
1,853

Hi,

I have already gone through the table icon. Now let me state my requirement a little more clearly.

There are a few icons in the table, which have some associated images with them.

Now my question is, if i have to create a new icon, and associate an image with it, i cannot use an existing icon id as it violates the primary key concept of this table, so i have to give a new id like @__@. Now when i give this new one, i get no image with it. How can i create an icon with a new image....or may be an existing image?

any further hints?

regards,

Priyank

Read only

Former Member
0 Likes
1,853

Hi,

click on pattern button choose write stmt then it will show u a screen

there u can find icon .

regards,

ram.

Read only

0 Likes
1,853

Hi Rambabu,

I want to create a new icon, not use the existing ones.

regards,

Priyank

Read only

0 Likes
1,853

Hi Priyank,

I don't have a solution for your problem but some information that can help you understand this better. SAP delivers a standard list of ICONs with every release by supplying entries in the ICON table. But these Icons are actually delivered on the frontend through two fonts that are installed with the SAPGUI called SAPDings and SAPIcons.

The only reason that SAP has offered the ICON transaction is to add new Icon entries that exist on the Frontend(which you may have upgraded) but for which no entries exist on the Server, for instance for supporting SAPgui 710 Icons on a Release 470 system.

We cannot add Icons of our own unless we edit the character sets manually, and even then, this would be specific to one PC

I wish SAP had documented this clearly somewhere so that ABAPers would not spend hours/days/years worrying themselves silly about how to achieve something that, at face value looks so useful, but in reality is not supported...

Hope this clears the air a bit

Regards,

Dushyant Shetty

Read only

0 Likes
1,853

Thanks Dushyant!!

That was really an insight into sap icons. So what i m looking for is not possible.

Alternatively, if i could change the default quickinfo associated with the icons, it will still serve my purpose. For example, The traffic light icons have some default tooltip associated with them. I want a different tooltip when i m using these in my alv grid. this is why i was looking to create my own icon and use the specific tooltip. If you know how i can overwrite the tooltip of an icon, please let me know.

i tried using @08\Q <tooltip text>@ to store the icon value but on display it does not show the icon at all.

regards,

Priyank

Read only

0 Likes
1,853

Hi Priyank,

You're welcome !

I understand your requirement, but what you are doing is the correct approach, it should work perfectly ! If you want the green traffic light with the text "ok" in the tooltip(quickinfo), you should have @08\Qok@ in the Icon field... that's all.

There must be something else going wrong there... maybe an unwanted space... something...

Try using the debugger to edit the value of the icon field in your ALV Itab... and see if it works...

worst-case: post your code and I'll run through it...

Regards,

Dushyant Shetty

Read only

0 Likes
1,853

Hi Dushyant,

What i m doing is as follows...

1) setting a value of a field of structure as @08\Qtooltip for green@ . this field is of type char

2) now the internal table containing this field is returned from a function module.

3) this internal table is displayed in a webdynpro ALV where i m using the standard methods to display as icon.

Read only

0 Likes
1,853

Hi Priyank,

I tried doing this with the Standard OO ALV Grid Control, not in Webdynpro... and it worked like a dream. I'm not sure I can get access to a system to replicate this on ABAP Webdynpro however...

Regards,

Dushyant Shetty

Read only

Former Member
0 Likes
1,853

Did you Solve your problem?

I'm having the Same Problem but i'm Using an ALV Tree ... in a regular screen ... when I put @08\QEQUAL@ on Icon ID ... i only return the First letter in the quickInfo of the Icon in the ALV.

If i Do @08\QXQUAL@ i will only have an X on the quickInfo ... only the First letter. Do you know what is going wrong?

I'm Using CHAR30 in every variables ... so it's not a space problem ... do i need to add some attribute in fieldcatalog? layout?

Thank you in advance.

Pedro