2012 May 24 8:14 AM
Hi experts.
i have a pushbutton in selection-screen. when i move mouse on my pushbutton it want show some info text. How can i do this. In screen painting there is option field called info text. But i want for selection-screen. please help me friends.
Thanks and regards,
Linganathan.K
2012 May 24 9:13 AM
Hi,
i think you can use the FM 'ICON_CREATE' after the event
START-OF-SELECTION.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
NAME = ICON_INFORMATION
TEXT = 'Button 2'
INFO = 'My Quickinfo'
IMPORTING
RESULT = BUT2
EXCEPTIONS
OTHERS = 0.
Regards,
Lavanya.
2012 May 24 2:36 PM
Hi,
You can add the tool-tip text to this field in screen painter. Go to screen painter-->element list. For the corresponding button click on "properties"
inside that click on tool tip text and give the text-element number.
go back to the program and give the text element with the correct description you want. activate it and you should be able to see the description.
Thanks
Sam
2012 May 24 5:51 PM
Hi Linganathan,
Use the T code se80. Explore the Program which your have created using se38.
click on screen -> selection screen 1000 appears -> click on layout.
double click for the Properties of every screen element, tool tip will be available .Just type what you want.
With Regards,
Sudhir S
2012 May 24 6:22 PM
Let's all bear in mind that the screen changes will be lost the next time the program is generated.
Rob
2012 May 25 6:04 AM
It is possible to add using Icon.
Please see the below code if helps
REPORT ZZTOOLTIPDEMO.
TYPE-POOLS icon.
DATA: funckey TYPE smp_dyntxt.
TABLES: sscrfields.
SELECTION-SCREEN PUSHBUTTON 1(40) pushbutt USER-COMMAND
com VISIBLE LENGTH 12.
SELECTION-SCREEN FUNCTION KEY 1.
INITIALIZATION.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_information
text = 'My Text'
info = 'My Quickinfo'
* ADD_STDINF = 'X'
IMPORTING
RESULT = pushbutt
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MOVE icon_information TO funckey-icon_id.
MOVE 'My text' TO funckey-icon_text.
MOVE 'My quickinfo' TO funckey-quickinfo.
MOVE funckey TO sscrfields-functxt_01.