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

symols

Former Member
0 Likes
501

how to get the symbols on pushbuttons in selection-screen?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
464

Steal from <b>Rich Heilman</b> -:P Sorry Rich -;)


report zrich_0001.

type-pools: icon.

data: switch.

selection-screen begin of block b1 with frame title text-001.
selection-screen pushbutton 5(20) gocfg user-command gocfg.
selection-screen end of block b1.


start-of-selection.

at selection-screen output.

if switch = 'X'.
clear switch.
* Write pushbutton text

  write icon_red_light as icon to gocfg.
  concatenate gocfg 'Red Light' into gocfg
              separated by space.


else.
switch = 
'X'.
  write icon_Green_light as icon to gocfg.
  concatenate gocfg 'Green Light' into gocfg
              separated by space.


endif.

Greetings,

Blag.

4 REPLIES 4
Read only

Former Member
0 Likes
464

sorry, misread ur question.

Message was edited by:

Rajesh

Read only

Former Member
0 Likes
465

Steal from <b>Rich Heilman</b> -:P Sorry Rich -;)


report zrich_0001.

type-pools: icon.

data: switch.

selection-screen begin of block b1 with frame title text-001.
selection-screen pushbutton 5(20) gocfg user-command gocfg.
selection-screen end of block b1.


start-of-selection.

at selection-screen output.

if switch = 'X'.
clear switch.
* Write pushbutton text

  write icon_red_light as icon to gocfg.
  concatenate gocfg 'Red Light' into gocfg
              separated by space.


else.
switch = 
'X'.
  write icon_Green_light as icon to gocfg.
  concatenate gocfg 'Green Light' into gocfg
              separated by space.


endif.

Greetings,

Blag.

Read only

0 Likes
464

No problem Blag, at least you give credit and don't try to pass it off as your own.

Regards,

Rich Heilman

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
464

You mean icons?



report zrich_0001.

type-pools: icon.

selection-screen pushbutton 1(10) pb1 user-command pb1.

at selection-screen output.

 write icon_green_light as icon to pb1.

Regards,

Rich Heilman