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: 

Report Program

Former Member
0 Kudos

Hi folks,

Please let me know how to insert the "Symbols" and "icons" in a Report program.

Scenario: need to display a Telephone symbol in the list insted of just writing as Phone Number .

Note: send a demo program if possible.

Regards,

Naveen

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

Check the extract from SAP HELP,

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.

I thing , it will help you.

Regards,

anirban

4 REPLIES 4

bpawanchand
Active Contributor
0 Kudos

Hi

GOT SE38--> EDIT->PATTERN---->select WRITE --->you will see an new window there you can include the symbol that you want

but after using it you ahve to add a statement at the top of the report

INCLUDE <LIST>.

Regards

Pavan

Former Member

Former Member
0 Kudos

hi,

Check the extract from SAP HELP,

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.

I thing , it will help you.

Regards,

anirban

Former Member
0 Kudos

Hii!

Check out this sample code


REPORT z_sdn.



TYPE-POOLS icon.

WRITE:
  icon_phone AS ICON,
  'TELEPHONE'.

Regards

Abhijeet