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

Regarding pushbutton info text

former_member242166
Participant
0 Likes
1,847

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,284

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.

Read only

Former Member
0 Likes
1,284

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

Read only

Former Member
0 Likes
1,284

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

Read only

Former Member
0 Likes
1,284

Let's all bear in mind that the screen changes will be lost the next time the program is generated.

Rob

Read only

Former Member
0 Likes
1,284

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.