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: 

button icon

Former Member
0 Kudos

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...

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

GauthamV
Active Contributor
0 Kudos

hi,

check this.

[https://forums.sdn.sap.com/click.jspa?searchID=16277589&messageID=5907079]

Former Member
0 Kudos

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.

former_member188685
Active Contributor
0 Kudos

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.