0% found this document useful (0 votes)
24 views

Create Icon in Report

To create icons in an ABAP report, the document outlines 3 steps: 1) Define data objects to store the icon values and include the icon include program. 2) Move the icon values from the include program to the data objects. 3) Display the icon values and labels in the report to show the icons.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Create Icon in Report

To create icons in an ABAP report, the document outlines 3 steps: 1) Define data objects to store the icon values and include the icon include program. 2) Move the icon values from the include program to the data objects. 3) Display the icon values and labels in the report to show the icons.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Create Icon in Report

Kusumastuti Wiratnaningtyas
SAP-ABAP
1. Open Tcode SE38.

2. Fill the code like syntax below:

PROGRAM ztest16.

* Create data for icon


DATA : ld_sonderzeichen(5) TYPE c,
ld_dummy(5) TYPE c,
ld_checked(5) TYPE c,
ld_incomplete(5) TYPE c,
ld_failure(5) TYPE c,
ld_positive(5) TYPE c,
ld_negative(5) TYPE c,
ld_red(5) TYPE c,
ld_yellow(5) TYPE c,
ld_green(5) TYPE c.

* enclose include icon in the program


include : <icon>.

* move data icon from include <icon> to data that has been prepared
WRITE icon_sonderzeichen TO ld_sonderzeichen.
WRITE icon_dummy TO ld_dummy.
WRITE icon_checked TO ld_checked.
WRITE icon_incomplete TO ld_incomplete.
WRITE icon_failure TO ld_failure.
WRITE icon_positive TO ld_positive.
WRITE icon_negative TO ld_negative.
WRITE icon_red_light TO ld_red.
WRITE icon_yellow_light TO ld_yellow.
WRITE icon_green_light TO ld_green.

*Display the result in the report


WRITE : / 'Legend : '.
SKIP 1.
WRITE : / ld_sonderzeichen, 'icon_sonderzeichen',
/ ld_dummy,'icon_dummy',
/ ld_checked, 'icon_checked',
/ ld_incomplete, 'icon_incomplete',
/ ld_failure, 'icon_failure',
/ ld_positive, 'icon_positive',
/ ld_negative, 'icon_negative',
/ ld_red, 'icon_red_light',
/ ld_yellow, 'icon_yellow_light',
/ ld_green, 'icon_green_light'.
3. This is the result

You might also like