08-25-2011 3:53 PM
Hi Experts,
I have a requirement like based on the field content i want to change the color to the screen field. I have written code like below. But i'm getting dump.
LOOP AT SCREEN.
IF screen-group1 = 'G02'.
screen-color = 'C411'. -
> Getting dump here
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Please tell me whether it is possible to give color in module pool or not.
Thanks and Regards,
nag.
08-25-2011 4:09 PM
Hi,
Screen-color is an integer field.. move only numbers to that.. dont use characters in it.
Thanks,
Sam.
08-25-2011 4:13 PM
Hi Sam,
Thanks for ur reply. I have tried using only integers.But i'm not getting color. My code is below
LOOP AT SCREEN.
IF screen-group1 = 'G02'.
screen-color = '411'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
color is INT4 type rite but we are passing only 3 characters to screen-color.But i didn't color to my field.
08-25-2011 4:17 PM
Hi
It's not possible to color the i/o field of the screen
The field SCREEN-COLOR is just to color the words
In my system SCREEN-COLOR seems it doesn't work, but it can use SCREEN-INTENSIFED
Max