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: 

adding icons to the SSCRFIELDS pushbuttons .. plz help !!!

Former Member
0 Kudos

Hello all

i have declared the pushbuttons in the simple report using SSCRFIELDS but in addition to text want icons to be displyed on those pushbuttons ..can we do it ? is it possibles ?

please help

thanks in advance

Nilesh.

1 ACCEPTED SOLUTION

JozsefSzikszai
Active Contributor
0 Kudos

hi Nilesh,

the way to do it:

  • declarations

DATA : l_sel_button TYPE smp_dyntxt.

INCLUDE : <ICON>.

  • selection screen

SELECTION-SCREEN FUNCTION KEY 1.

INITIALIZATION.

l_sel_button-icon_id = icon_hint.

l_sel_button-text = text-v01.

sscrfields-functxt_01 = l_sel_button.

same works for pushbutton, hope this helps

ec

3 REPLIES 3

JozsefSzikszai
Active Contributor
0 Kudos

hi Nilesh,

the way to do it:

  • declarations

DATA : l_sel_button TYPE smp_dyntxt.

INCLUDE : <ICON>.

  • selection screen

SELECTION-SCREEN FUNCTION KEY 1.

INITIALIZATION.

l_sel_button-icon_id = icon_hint.

l_sel_button-text = text-v01.

sscrfields-functxt_01 = l_sel_button.

same works for pushbutton, hope this helps

ec

Former Member
0 Kudos

Hi!

You'll need a structure:

DATA: functxt TYPE smp_dyntxt.

And then at INITIALIZATION or AT SELECTION-SCREEN OUTPUT:

functxt-icon_id = icon_change.

functxt-quickinfo = 'Change Sales Order'.

functxt-icon_text = 'Change'.

sscrfields-functxt_01 = functxt.

Regards,

Zoltá

Former Member
0 Kudos

Hi,

Check the Demo Program <b>DEMO_DYNPRO_STATUS_ICONS</b>.

Regards,

Padmam.