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: 

How to display the selection screen with icons as well as with text element

Former Member
0 Kudos

How to display the selection screen with icons as well as with texts (written in text elements) for PlantDate, OrderType,WareHouse..

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check out in this way ..

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.

6 REPLIES 6

Former Member
0 Kudos

Check out in this way ..

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.

Former Member
0 Kudos

slight modification to Rich Code

report zrich_0001 .

type-pools: icon.

selection-screen begin of line.

selection-screen comment 1(5) text_001.

<b>selection-screen comment 8(10) text-002.</b> " double click on text-002 and give the description

parameters: p_werks type marc-werks.

selection-screen end of line.

initialization.

write ICON_PLANT as icon to text_001.

Former Member
0 Kudos

declare type-pools: icon.

parameters: p_werks type t001w-werks.

now in initialization u need to write the following code which will display icon as well as text.

initialization.

write ICON_PLANT as icon to text-001.

Message was edited by:

Ramesh Babu Chirumamilla

Former Member
0 Kudos

Report zex33.

type-pools: icon.

selection-screen begin of line.

selection-screen comment 1(20) text_001.

parameters: p_werks type marc-werks.

selection-screen end of line.

selection-screen begin of line.

selection-screen comment 1(20) text_002.

parameters: p_whouse(10).

selection-screen end of line.

selection-screen begin of line.

selection-screen comment 1(20) text_003.

parameters: p_auart like vbak-auart.

selection-screen end of line.

initialization.

write ICON_PLANT as icon to text_001.

concatenate text_001 text-001 into text_001 separated by space.

write ICON_WAREHOUSE as icon to text_002.

concatenate text_002 text-002 into text_002 separated by space.

write ICON_ORDER as icon to text_003.

concatenate text_003 text-003 into text_003 separated by space.

Former Member
0 Kudos

Hi,

<b>Take a look at the following eg :</b>

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) text-lgo FOR FIELD p_lgort.
PARAMETERS : p_lgort LIKE mard-lgort.
SELECTION-SCREEN END OF LINE.

+

Create text-lgo ( text Symbol ) with content : "@A1@ Warehouse"

To know all available icon, please use program <b>RSTXICON</b>

Hope this helps,

Erwan

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Using the code from your other thread.............



report zrich_0001 .


type-pools: icon.

selection-screen begin of line.
selection-screen comment 1(20) text_001.
parameters: p_werks type marc-werks.
selection-screen end of line.

initialization.

* First write the icon, then concatenate the text element into that variable.
  write ICON_PLANT  as icon to text_001.
  concatenate text_001 text-001 into text_001 separated by space.

Regards,

Rich Heilman