Skip to Content
avatar image
Former Member

button icon

Hi

I have created a button using on tool bar of my selection screen using-

SELECTION-SCREEN FUNCTION KEY 1. "button on the application toolbar

INITIALIZATION.

MOVE 'MAIL HISTORY' TO SSCRFIELDS-FUNCTXT_01.

now i want to have a mail icon in that button.how to do that.

thnx...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Sep 15, 2008 at 10:07 AM

    Look up the structure SSCRFIELDS. It contains more options than define a title

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 10:10 AM

    Hi,

    Plz check :

    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-006.

    SELECTION-SCREEN PUSHBUTTON 70(4) charly1 USER-COMMAND create.

    SELECTION-SCREEN END OF BLOCK b1.

    INITIALIZATION.

    WRITE icon_display TO charly AS ICON.

    thanx.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 15, 2008 at 10:14 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 10:21 AM

    Move internal value of the icon to the text. For example, if you want create icon, just pass

    INITIALIZATION.

    MOVE '@0Y@' TO sscrfields-functxt_01.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 15, 2008 at 10:28 AM

    You can also try this...

    REPORT  ztest_conv4.
     
    TABLES sscrfields.
    DATA: dyn TYPE smp_dyntxt.
    PARAMETERS: p_carrid TYPE s_carr_id.
                
    SELECTION-SCREEN: FUNCTION KEY 1.
                       
    INITIALIZATION.
     
      dyn-icon_id = '@1S@'.
      dyn-quickinfo = 'Send Mail'.
      dyn-icon_text = 'Mail'.
      sscrfields-functxt_01 = dyn.

    Add comment
    10|10000 characters needed characters exceeded