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

Icon on Selection -screen

Former Member
0 Likes
6,447

Is there any option to add icons to parameters/selection option fields. This can be done if screen is designed via Screen painter but looking for option if screen is defined using selection-screen option.

Thanks

anu

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
2,741

Here is some sample code. This shows how to put some text with your icon as well.



report zrich_0001 .

type-pools: icon.

selection-screen begin of block b1 with frame title text-001.
parameters: p_check.
selection-screen comment 40(20) icon1.
selection-screen end of block b1.

at selection-screen output.

* Write pushbutton text
  write icon_configuration as icon to icon1.
  concatenate icon1 'Your Icon' into icon1
              separated by space.

start-of-selection.

Regards,

RIch Heilman

Is there any option to add icons to parameters/selection option fields. This can be done if screen is designed via Screen painter but looking for option if screen is defined using selection-screen option.

Thanks

anu

10 REPLIES 10
Read only

RichHeilman
Developer Advocate
Developer Advocate
2,742

Here is some sample code. This shows how to put some text with your icon as well.



report zrich_0001 .

type-pools: icon.

selection-screen begin of block b1 with frame title text-001.
parameters: p_check.
selection-screen comment 40(20) icon1.
selection-screen end of block b1.

at selection-screen output.

* Write pushbutton text
  write icon_configuration as icon to icon1.
  concatenate icon1 'Your Icon' into icon1
              separated by space.

start-of-selection.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
2,741

Hi Rich,

Thanks a lot for speedy response. it solved my problem.

Thanks again

anu

Read only

0 Likes
2,741

That can be done like this.



report zrich_0001 .

type-pools: icon.

selection-screen begin of block b1 with frame title text-001.
selection-screen begin of line.
selection-screen comment 1(5) icon1.
selection-screen comment 7(20) fld_lab.
parameters: p_check.
selection-screen end of line.
selection-screen end of block b1.

at selection-screen output.

  write icon_configuration as icon to icon1.
  fld_lab = 'This is the label'.

start-of-selection.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
2,741

just have an querry, how this icon can be placed on left hand side. close to field lname.

Read only

0 Likes
2,741

Or like this.



report zrich_0001 .

type-pools: icon.

selection-screen begin of block b1 with frame title text-001.
selection-screen begin of line.
selection-screen comment 1(17) fld_lab.
selection-screen comment 18(5) icon1.
parameters: p_check.
selection-screen end of line.
selection-screen end of block b1.

at selection-screen output.

  write icon_configuration as icon to icon1.
  fld_lab = 'This is the label'.

start-of-selection.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
2,741

full marks to you rich.

thansk again

Read only

Former Member
0 Likes
2,741

report zrich_0001 .

type-pools: icon.

selection-screen begin of block b1 with frame title text-001.

selection-screen begin of line.

selection-screen comment 1(5) icon1.

selection-screen comment 7(20) fld_lab.

parameters: p_check.

selection-screen end of line.

selection-screen end of block b1.

at selection-screen output.

write icon_configuration as icon to icon1.

fld_lab = 'This is the label'.

start-of-selection.

Read only

0 Likes
2,741

>

> report zrich_0001 .

>

> type-pools: icon.

>

> selection-screen begin of block b1 with frame title text-001.

> selection-screen begin of line.

> selection-screen comment 1(5) icon1.

> selection-screen comment 7(20) fld_lab.

> parameters: p_check.

> selection-screen end of line.

> selection-screen end of block b1.

>

> at selection-screen output.

>

> write icon_configuration as icon to icon1.

> fld_lab = 'This is the label'.

>

> start-of-selection.

ROTFL!!!

pk

Read only

matt
Active Contributor
0 Likes
2,741

Ah stuff it. I'll go straight for guestification on this one. From "Hi" to "Bye"

matt

Read only

Former Member
0 Likes
2,741

Hi Anya,

How can we change the icon..?

regards,

anil