Skip to Content
0
Former Member
Jun 03, 2008 at 04:07 AM

To Change Different Background Colors for an Output String ....!

267 Views

Objective :

I want to display the output string with the different colors in color format in write statement, is this possible to do, this is the code i have written.

Program:

DATA TEMP TYPE I VALUE 1.

WHILE TEMP <= 10.

WRITE: / 'WELECOME TO ABAP ....!' COLOR TEMP.

TEMP = TEMP + 1.

ENDWHILE.

Error Occured:

Program ZTEMP14

"COLOR TEMP" is not expected; only 1 to 7 or the relevant color IDs

(COL_...) are allowed.