Current Position:Home > SLIS_COLOR Problem


Update:11-30Source: network consolidation
I am getting syntax error while using the follwing code in a Unicode program.:
type-pools : slis.
constants variable type slis_color value 'C300'.
Error is -      "SLIS_COLOR" and "C" are not mutually convertible in a Unicode program     
type-pools : slis.
constants variable type slis_color value 300.
"SLIS_COLOR" and "I" are not mutually convertible in a Unicode program     
Since CONTANTS statement is used, have to give some value.
Please give me the correct way of writing the statement.
Please help me.

The Best Answer

what do u want to do with that variable row color or column color.
to get Color for perticular column.
While building fieldcatalog, set emphasize with color.
  w_fieldcat-fieldname      = 'BUKRS'.
  w_fieldcat-tabname        = 'ITAB'.
  w_fieldcat-seltext_m      = 'Business Area'.
  w_fieldcat-emphasize     = 'C300'.
  append w_fieldcat to i_fieldcat.
  clear    w_fieldcat.
to get Color for perticular row
Define one variable in ur final itab which is displayed on output.
      BEGIN OF i_data occurs 0,
        color   TYPE char3,  " For color
        bukrs  TYPE t001-bukrs,
        value1 TYPE i,
        value2 TYPE i,
        value3 TYPE i,
      END OF i_data.
2. Once you get the data in the i_data table .
   I_DATA-COLOR = 'C200'.
And finally build w_layout type slis_layout_alv.
w_layout-info_fieldname = 'COLOR'.
pass this though REUSE_ALV_GRID_DISPLAY or LIST
I hope that it solves  ur problem.
  • SLIS_COLOR Problem Update:11-30

    Hi, I am getting syntax error while using the follwing code in a Unicode program.: 1) type-pools : slis. constants variable type slis_color value 'C300'. Error is -      "SLIS_COLOR" and "C" are not mutually convertible in a Unicode pr

  • A problem with threads Update:10-11

    I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be ab

  • A problem with Threads and MMapi Update:10-11

    I am tring to execute a class based on Game canvas. The problem begin when I try to Play both a MIDI tone and to run an infinit Thread loop. The MIDI tone "Stammers". How to over come the problem? Thanks in advance Kobi See Code example below: i

  • J2ME problem with threads Update:10-11

    Hi all, I would like to ask you for a help. I need to write a small program at my university. I started to write a midlet which function would be to countdown time for sports activities. I woul like to start a new thread - the one that counts down -

  • Problem with threads within applet Update:10-11

    Hello, I got an applet, inside this applet I have a singleton, inside this singleton I have a thread. this thread is running in endless loop. he is doing something and go to sleep on and on. the problem is, when I refresh my IE6 browser I see more th

  • Problem with Threads and a static variable Update:10-11

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please. Code functionality: A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. T

  • Problem with threads running javaw Update:10-11

    Hi, Having a problem with multi thread programming using client server sockets. The program works find when starting the the application in a console using java , but when using javaw the program doesnt die and have to kill it in

  • Problem with Threads and "plase wait..."-Window Update:10-11

    Hi everyone, I have a problem that I'm not able to solve in any way... I have a time-consuming task (a file decryption) which I execute in a separate thread; I've used the SwingWorker class, like suggested by sun-tutorial, and it works right. The pro

  • Problem with threads in j2me Update:10-11

    im using jdk 1.6 with java wtk 2.1 ya i know.. 2.1 is a jdk1.4 source but im using souce as 1.4 during compiliation so thats not the prob this is my code package org.learn; import javax.microedition.midlet.MIDlet; import javax.microedition.lcdui.Aler

  • Problem with threads and camera. Update:10-11

    Hi everybody! I've a problem with taking snapshot. I would like to display a loading screen after it take snapshot ( sometimes i have to wait few seconds after i took snapshot. Propably photo is being taken in time where i have to wait). I was trying