Application Development 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: 

How to diaplay message when cursor moves on the icon?

Former Member
0 Kudos

Hi,

I have defined a field colum in a table control, which is used to display icon, such as '@5c@', my question is, I hope some message can be displayed when the mouse cursor moves on the icon, so how to realize this kind of function?

Please kindly advise.

Thanks and best regards.

4 REPLIES 4

Former Member
0 Kudos

Hai,

In screen painter

1. Go to element list.

2. Select the properties of that particular field.

3. There you can find 'TooltipText' property select text.

4. Here you can specify your text by two ways i.e, text element and value from variable.

If you follow the above steps you will get the tool tip text for a field.

Run the trx ICON, here you can see all codes of SAP icon.

In the PBO of your screen:

LOOP AT ITAB....

MODULE SHOW_ICON.

ENDLOOP.

MODULE SHOW_ICON.

ITAB-ICON = '@XX@'.

ENDMODULE.

The field ITAB-ICON should be for ONLY OUTPUT

include <icon>.

DATA: INFO(20) VALUE 'Information for this icon'.

WRITE: / ICON_INFORMATION AS ICON QUICKINFO info

HOTSPOT COLOR COL_POSITIVE

Regards

Preeti

<i><b>

Dont forget to reward points</b></i>

0 Kudos

Hi, Preeti,

Thank you very much for your expertise.

I tested according to your advice, but it didn't work.

My SAP version is 4.6C, the <b>filed/column</b> which I defined to diaplay icon <b>in the table control</b> is a 4 chars text with "output only" property named "stsicon", in the "general attribute" of "element list" TAB, I can only find 2 proprities for the field "stsicon": "Hyperlink" and "Areatitle", and I can not find 'TooltipText'

Another question is, I have defined <b>2</b> fields/column in the table control to display icons, how to display variable message for each ?

Would you please kindly advise again.

Thanks and best regards.

0 Kudos

I would recommend using the ICON_CREATE function to set the quickinfo and other properties.. and on the screen have the icon as 32 bytes but scrollable with visible length 4.

0 Kudos

Hi, guys,

Thank you very much for your expertise.The problem is now solved.

Thanks and best regards.