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

button icon

Former Member
0 Likes
879

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
Read only

Former Member
0 Likes
722

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

Read only

Former Member
0 Likes
722

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.

Read only

GauthamV
Active Contributor
0 Likes
722

hi,

check this.

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

Read only

Former Member
0 Likes
722

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.

Read only

Former Member
0 Likes
722

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.