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

include

Former Member
0 Likes
876

what is include<icon>.Why we r using this. I saw this in an interactive report.

6 REPLIES 6
Read only

h_senden2
Active Contributor
0 Likes
850

to use icons in ALV grid or in lists, you have to add this statement to load the relevant definitions of icons and icons related stuff.

regards,

Hans

Read only

Former Member
0 Likes
850

<b>Displaying Symbols and Icons on the List</b>

You can output symbols or R/3 icons on a list by using the following syntax:

Syntax

WRITE <symbol-name> AS SYMBOL.

WRITE <icon-name> AS ICON.

The names of symbols and icons (<symbol-name> and <icon-name>) are system-defined constants that are specified in the include programs <SYMBOL> and <ICON> (the angle brackets are part of the name). The includes also contain a short description of the symbols and icons. The easiest way to output symbols and icons is to use a statement structure (see the example in Using WRITE via a Statement Structure).

To make symbols and icons available to your program, you must import the appropriate include or the more comprehensive include <LIST> in your program. For further information about importing include programs, see Using Include Programs.

INCLUDE <symbol>.

INCLUDE <icon>.

/ 'Phone Symbol:', SYM_PHONE AS SYMBOL.

SKIP.

WRITE: / 'Alarm Icon: ', icon_alarm AS ICON.

This produces the following output:

You can replace both the above INCLUDE statements with one single INCLUDE statement:

INCLUDE <list>.

Read only

former_member386202
Active Contributor
0 Likes
850

Hi,

To display the icon on output list we have to include the icon in report

regards,

Prashant

Read only

Former Member
0 Likes
850

Hi,

To display R/3 icons on a list.

Check this link,

http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e4a35c111d1829f0000e829fbfe/content.htm

Regards,

Ruthra

Read only

Former Member
0 Likes
850

Hi

To make symbols and icons available to your program, you must import the appropriate include or the more comprehensive include <LIST> in your program.

INCLUDE <symbol>.

INCLUDE <icon>.

/ 'Phone Symbol:', SYM_PHONE AS SYMBOL.

SKIP.

WRITE: / 'Alarm Icon: ', icon_alarm AS ICON.

This produces the telephone sympol output.

Thanks

Vijay

<b>PLZ reward points if helpful</b>

Read only

Former Member
0 Likes
850

HI,

If you want to use ICONS in your program, then you need not declare all the details.

Simply use INCLUDE <ICONS>.

Goto SE38 & type <ICONS>

Click on Display

You will get the code.

This is to simplify coding for developers.

Best regards,

Prashant