Set Traffic Light for Individual Cell in a Row

Hi,
I have 3 columns in one Row and I need to show 3 COLUMNS using Traffic lights one with Red, Yellow, Green. How it is possible in SET_TABLE_FOR_FIRST_DISPLAY.
Regards,
Deepthi.

I got the answer:
Go to SE11 Tcode and ICON and press F7.
Look for F4 help of field ID.
See code below:
  if ls_fieldcatalog-fieldname eq 'LIGHT1'
  or ls_fieldcatalog-fieldname eq 'LIGHT2' 
  or ls_fieldcatalog-fieldname eq 'LIGHT3'.
     ls_fieldcatalog-ICON = 'X'.
  endif.
BEGIN OF t_final,
bukrs   TYPE bukrs,     "Company Code
gjahr   TYPE gjahr,     "Fiscal Year
light1 TYPE ICON_D,
light2 TYPE ICON_D,
light3 TYPE ICON_D,
end of t_final.
data: i_final type standard table of t_final.
LOOP AT i_anlp_temp INTO w_anlp.
    IF sy-tabix = 1.
      w_final-bukrs = w_anlp-bukrs.
      w_final-gjahr = w_anlp-gjahr.
    ENDIF.
    CASE w_anlp-peraf.
      WHEN '001'.
        w_final-peraf1 = w_anlp-peraf.
        w_final-light1 = '@0A@'. "RED.
      WHEN '002'.
        w_final-peraf2 = w_anlp-peraf.
        w_final-light2 = '@09@'. "Yellow.
      WHEN '003'.
        w_final-peraf3 = w_anlp-peraf.
        w_final-light3 = '@08@'. "Green.
endcase.
append w_final to i_final.
endloop,

Similar Messages

  • Traffic Lights For Hyperlinks panel not showing. INDESIGN.

    My traffic lights for the hyperlinks panels are not showing and I have the latest version of CC. How do I show/hide them? Thanks

    First, make sure you have InDesign CC 9.2.1. Choose InDesign > About InDesign (Mac) or Help > About InDesign (Windows).
    If you're up-to-date, try restoring your preferences:
    Trash, Replace, Reset, or Restore the application Preferences

  • How to set exponential format for a cell?

    Hello! Can someone advise how to set exponential format for a cell in Numbers?

    Hi Alejandro,
    If you mean 1000 as 1E+03
    Format Panel > Cell > Data Format > Scientific
    Regards,
    Ian.

  • Adding ToolTip for individual cell in the table

    Hi everybody,
    Its urgent. I want to add ToolTip for individual cells. What I have implemented, it show same ToolTip for each cell. I want different ToolTip for individual cell.
    My cells are not editable, as i need this.
    Pleae help me.
    Thanks in Advance.
    Dawoodzai

    Hi,
    See this demo pasted below-
    import java.awt.*;
    import javax.swing.*;
    public class SimpleTableDemo extends JFrame {
         public SimpleTableDemo() {
              super("SimpleTableDemo");
              Object[][] data = {
                   {"Mary", "Campione", "Snowboarding", new Integer(5), new Boolean(false)},
                   {"Alison", "Huml", "Rowing", new Integer(3), new Boolean(true)},
                   {"Kathy", "Walrath", "Chasing toddlers", new Integer(2), new Boolean(false)},
                   {"Sharon", "Zakhour", "Speed reading", new Integer(20), new Boolean(true)},
                   {"Angela", "Lih", "Teaching high school", new Integer(4), new Boolean(false)}
              String[] columnNames = {"First Name", "Last Name", "Sport", "# of Years", "Vegetarian"};
              final JTable table = new MyTable(data, columnNames);
              table.setPreferredScrollableViewportSize(new Dimension(500, 70));
              JScrollPane scrollPane = new JScrollPane(table);
              getContentPane().add(scrollPane, BorderLayout.CENTER);
         public static void main(String[] args) {
              SimpleTableDemo frame = new SimpleTableDemo();
              frame.pack();
              frame.setVisible(true);
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MyTable extends JTable {
         public MyTable(Object[][] rowData, Object[] columnNames) {
              super(rowData,columnNames);
         public String getToolTipText(MouseEvent e) {
              int r = rowAtPoint(e.getPoint());
              int c = columnAtPoint(e.getPoint());
              return getValueAt(r,c).toString();
    }

  • T5SSCXSSSERVICES - Set Data Tracking for Individual Self-Services

    Hi,
    We have a requirement for BI Report to fetch data from table :T5SSCXSSSERVICES
    The above table could be filled with data when we perform any activities in ESS and MSS.
    I wanted to know what are all required configuration to get data in to the table T5SSCXSSSERVICES
    I understand below mentioned configuration are required:
    IMG Node 1: Activate Data Tracking for All Self-Services
    IMG Node2: Set Data Tracking for Individual Self-Services
    Is it required to activate Business FunctionS et - HR Administartive Servcices?
    Guide me with more inputs,
    Regards
    Ramanathan

    Hi Ramanathan,
    I am facing the same doubt now, are you able to share your experience on how to populate  T5SSCXSSSERVICES ? Appreciate that, and thank you in advance.
    Regards
    Kir Chern

  • Setting cell editor for individual cell in JTable

    Hi there,
    I want to provide individual cell editor for my JTable. Basically, my JTable shows property names and values. I want to show different cell editors for different properties.
    I followed the advice in this post:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=423318
    but I have a question:
    I looked at the code of DefaultCellEditor. It just has a single editor component (the one provided in the constructor), so all the methods use the same component and certain aspects are customized for the type of component. Again, there can be only one type of component at a time.The problem that I am facing is that I will have different components for different row/column of the same table. So how do I implement some of the methods (for example, getCellEditorValue()), when I have multiple editor components?
    Also, how do I commit changes made by the user?
    I am extremely confused.
    Someone please help!
    Thanks.

    Actually, that's what I am currently doing.
    Here is my cell editor class:
    public class ObjectPropertyEditor extends DefaultCellEditor
           public ObjectPropertyEditor()
              super(new JTextField());
              Vector list = new Vector();
              list.add("Yes");
              list.add("No");
             myCombo = new JComboBox(list);
          public Component getTableCellEditorComponent(JTable table, Object value,
              boolean isSelected, int row, int column)
             String colName = (String)table.getValueAt(row,0);
             if(colName.equalsIgnoreCase("Leaf-Node?")) //if it is the "Leaf" property, return the combo box as the editor
                 return myCombo;
            else  //for all other properties, use JTextField of the super class
                return super.getTableCellEditorComponent(table,value,isSelected,row,column);
        private JComboBox myCombo;
    }The problem I have is that when I select a new item from the combo box, the new selection is not reflected in the tableModel. I don't know how I can achive that. I think I need the functionalities that DefaultCellEditor gives to its delegate when its constructor arguments is a combo box. But how can I get two different sets of functionalities (JTextField and JComboBox) ?
    Please help!
    Thanks.

  • Can i set the timing for individual photos in a slideshow

    there are text pages that need to be read but not at a 4 second speed
    it has to be slower more time
    syncing to music i compose is a must
    can each individual photo have its own time
    i hope so or else they ruined a wonderful product
    with this limitation

    Glen:
    Yes, you can. Under the slide there's a button titled "Adjust'. Click on it and you can set the time for that slide, the transition, etc.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • ALV Traffic lights for subtotal

    Hi,
    How can I use "traffic lights" that depend on the subtotals of one field in one ALV?
    Thank you

    Hi Nuno Barros,
    Please check the below link... it will guide you to fulfill your requirement..
    http://wiki.sdn.sap.com/wiki/display/Snippets/ALVGRIDCOMPLETEEXAMPLEWITHTOOLBARBUTTONSUSINGCLASS.
    http://www.erpgenie.com/sap/abap/controls/alvgrid.htm
    http://wiki.sdn.sap.com/wiki/display/Snippets/TrafficlightsinALVdisplay
    Or check this code...you may find it easy
    *& Declaration part
    TYPES: BEGIN OF t_lights,
          matnr  TYPE mard-matnr,
          werks  TYPE mard-werks,
          lgort  TYPE mard-lgort,
          lights TYPE char4,       "Variable is needs to be declared with length 4 char
       END OF t_lights.
    DATA: w_lights TYPE t_lights.
    DATA: i_lights TYPE STANDARD TABLE OF t_lights.
    FORM get_data .
    SELECT matnr werks lgort
    FROM mard
    INTO CORRESPONDING FIELDS OF TABLE i_lights UP TO 10 ROWS.
    "Just pass 1=red or 2=yellow or 3=green to lights fields ( HERE YOU CAN CHECK FOR YOUR CONDITION AND ASSIGN LIGHTS ACCORDIGLY)
    LOOP AT i_lights INTO w_lights .
    IF sy-tabix BETWEEN 1 AND 3.
    w_lights-lights = '1'.
    ELSEIF sy-tabix BETWEEN 4 AND 7.
    w_lights-lights = '2'.
    ELSEIF sy-tabix BETWEEN 8 AND 10.
    w_lights-lights = '3'.
    ENDIF.
    MODIFY i_lights FROM w_lights INDEX sy-tabix TRANSPORTING lights.
    ENDLOOP.
    ENDFORM.                    " get_data
    *&      Form  build_layout
    FORM build_layout .
    w_layout-colwidth_optimize = 'X'.
    w_layout-zebra             = 'X'.
    w_layout-lights_fieldname  = 'LIGHTS'.
    w_layout-lights_tabname    = 'I_LIGHTS'.
    w_layout-lights_rollname   = 'Hits'.
    ENDFORM.                    " build_layout
    *&      Form  list_display
    FORM list_display .
    DATA:
    l_program TYPE sy-repid.
    l_program = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = l_program
    is_layout          = w_layout
    it_fieldcat        = i_fieldcat
    TABLES
    t_outtab           = i_lights
    EXCEPTIONS
    program_error      = 1
    OTHERS             = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM.                    " list_display
    Thanks
    Shankar

  • Red Traffic Light for Datasources Delta Queues

    Hi all,
    Our R/3 source system is connected to our BW system.
    Between the two systems we operated standard logistics datasources delta queues, by filling the setup tables and performing an initial update.
    The datasources delta queues were created and used over a month (according to the RSA7 they all marked with green traffic light).
    Now, we copied the R/3 source system to a new one.
    After doing so, all the delta queues traffic light turned to be red.
    Does anyone can provide a technical explanation/reason to this problem?
    Also, is there something we could do to "save" this delta queue, without needed to delete it and create it all over again?
    Thanks ahead,
    Shani Bashkin

    Hi Eddo,
    Thanks for your help.
    Yes, I'm using the same system name and system id. The new copied system has the same name and id like the productive system.
    Also, it seems like the RFC connection to the BW is lost.
    The question is why?
    Thanks,
    Shani Bashkin

  • ' Define traffic light' for MRP

    hi
    I am using the collective list to view planning results using 'define traffic light'. I am able to define traffic light by user profile. I want to define traffic light by the MRP controller. Is there a way I can do it?
    thanks a lot

    Hi,
    The SAP help talks about creation of evaluation profile & defining limits via MRP controllers in customizing, but i am unable to find the same. If anyone can point where to do this setup, it would be quite helpful.
    Quoting from SAP help:
    ●  You have created an evaluation profile in Customizing for Material Requirements Planning and defined the limit values for the ranges of coverage there.
    ●  You have assigned the evaluation profile to an MRP group.
    ●  You have assigned the evaluation profile to the plant parameters.
    I guess your need can be met via BADI - MD_SET_TRAFFIC_LIGHTS_DS in the enhancement spot ES_MD_MRP_EVALUATIONS
    Hope the above helps.
    Regards,
    Vivek
    Added
    Just found this SAP Note - 947983, this helps in defining the Evaluation profile.
    Edited by: Vivek on May 19, 2009 9:52 AM

  • IW38 Traffic Light for Custom Date field

    Hi Experts,
    I am trying use the Reference Field for Monitor.  It has got 1. Priority, 2. Order/Start/End, 3. Scheduled Start/End.
    We have created a custom date field as Original start/Finish dates. I want to create traffic light based on this date.
    Can you please help me where and how to do this configuration. I have already searched the forum. But no help found.
    Thanks,
    Panneer

    Panneer,
    You can use Enhancement Spot ES_EAM_LIST_ENHANCEMENTS for this purpose (see SE18)
    PeteA

  • Exception groups & Traffic Lights for MRP run shortage quantities

    Hi Guys:
    How to define Traffic Lights and Exception groups in MD04/Mdo5 transaction?
    Or any literature available ?
    Thanks
    kodali

    Kodali,
    You can customize the exception message and grouping in configuration.
    Please follow below mentioned path and do necessary config.
    SPRO -> Production --> Materials Requirement Planning --> Evaluation --> Exception Messages.
    Regards,
    Himanshu

  • Making OnLoad work in individual cells in multiple rows

    Dear Raj et al...
    thanks for your help with getting the java applet (JMOL) working in individual cells/rows in report tables.
    I now need some help with getting OnLoad to work in each row.
    I am able to make it work in an HTML region (not in a report table) where I use <body #ONLOAD#> in the HTML region and OnLoad="document.jmol.loadinline(getElementById('P16_text').value)"; in the 'On Load' region in page template.
    However if I use OnLoad="document.jmol#AUTOKEY#.loadinline(getElementById('f01_#ROWNUM#').value)";
    and put body tags in the Report Attributes\Column Formatting\html expression region where I have embeded the applet tags it doesn't work.
    I don't think the #AUTOKEY# and #ROWNUM# are the problem as I also tried explicitly naming the objects:
    OnLoad="document.jmol1.loadinline(getElementById('f01_1').value)";
    and it still didn't work.
    Again any suggestions will be greatly appreciated!
    -Dave

    Actually I take that back...
    "I don't think the #AUTOKEY# and #ROWNUM# are the problem as I also tried explicitly naming the objects:
    OnLoad="document.jmol1.loadinline(getElementById('f01_1').value)"; and it still didn't work."
    The reason this didn't work is that I had two javascript calls in the on load section and I obviously didn't format them properly (the first worked not the second).
    In any case, this worked once it was made the only javascript call in the on load section.
    When I tried to use #AUTOKEY# or #ROWNUM# these were then flagged with an "Invalid Character" error.
    Do you have any suggestions as how to have variable names put in the "OnLoad" statement and will it work for the n rows that are queried?
    Thanks a lot!
    -Dave

  • Set select one of the cell in subtotal row in ALV report

    Dear all,
    I have a ALV report that has subtotal amount by Vendor ID.
    I want to set the selection at vendor ID column (same row with subtotal).
    I tried both set_selected_cell() and set_current_cell() methods, the cell selected is incorrect. It doesnt seem to be able to select any cell at the same row of SUBTOTAL.
    lr_selections = ref_table->get_selections( ).
          lt_current_cell = lr_selections->get_current_cell( ).
          lt_current_cell-row = lt_current_cell-row.
          lt_current_cell-columnname = 'LIFNR'.
          lr_selections->set_current_cell( lt_current_cell ).
    Please help. Thanks.

    HP should provide tested recovery DVD every note book user. along with note book.
    That is solution
    fws1 wrote:
    I neglected to add that the system is configured exactly as from the factory, save a few added programs and user files. No hardware changes or OS up or downgrade. The hard drive was corrupted by some type of root virus and had to be fully reformatted. I did the format manually as well as let the HP Recovery disks. Same result either way. The recovery program, after the failure,  prompts user to insert a flash drive and creates some file, but HP has no info on the file creation or what to do with said file!  
    fws1 wrote:
    I neglected to add that the system is configured exactly as from the factory, save a few added programs and user files. No hardware changes or OS up or downgrade. The hard drive was corrupted by some type of root virus and had to be fully reformatted. I did the format manually as well as let the HP Recovery disks. Same result either way. The recovery program, after the failure,  prompts user to insert a flash drive and creates some file, but HP has no info on the file creation or what to do with said file!  

  • Problem to set background color for configTable cell

    Hi All,
    I've a configTable displays some status fields, and I need to set yellow color when the status is in processing and green when finished and red when cancelled. I've searched the forum and decided to use iterator with method RENDER_CELL_START. Here are the steps that I've done.
    Step 1: wrote a new class ZCL_ACTSTAT_ITERATOR implements interface IF_HTMLB_TABLEVIEW_ITERATOR.
        this class has a private attribute ORDERS containing the search result internal table data, in the CONSTRUCTOR method I pass the search result to the attribute using the statement ME->ORDERS = ORDERS. Then in the method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START I check the p_column_key for the status fields and then get the status value and set p_style accordingly using the following statement:
    CASE p_column_key.
        WHEN 'PREPAY_STATUS' OR 'DELVPLN_STATUS' OR 'DESIGN_STATUS'.
          READ TABLE me->orders INTO ls_order INDEX p_row_index.
          IF sy-subrc NE 0.
            EXIT.
          ENDIF.
          ASSIGN COMPONENT p_column_key OF STRUCTURE ls_order TO <col>.
          IF sy-subrc = 0.
            wf_text = <col>.
          ENDIF.
          IF wf_text = '00' OR wf_text = 'Initial'.
    *        concatenate '<font color=""red"">'
    *         WF_TEXT '</font>' into html_str.
    *        create object html_bee.
    *        html_bee->add( html = html_str ).
    *        p_replacement_bee = html_bee.        "not work either
            p_style = 'celldesign:STANDARD'.
          ELSEIF wf_text = '10' OR wf_text = 'InProcessing'.
            p_style = 'celldesign:GOODVALUE_MEDIUM'.
          ELSEIF wf_text = '20' OR wf_text = 'Finished'.
            p_style = 'celldesign:GOODVALUE_LIGHT'.
    *        p_style = 'background-color:#92D050'.
          ENDIF.
      ENDCASE.
    Step 2: In the component controller ZL_ZACT_MYO_ORDERS_IMPL, create a public attribute GV_ITERATOR type ref to the class created in step 1 (ZCL_ACTSTAT_ITERATOR), then in the controller's DO_PREPARE_OUTPUT method, get the combined context data and convert them into internal table LT_ORDERS, then create the iterator GV_ITERATOR passing LT_ORDERS, after this step, the result data can be transfered into iterator class and then be used in the RENDER_CELL_START method.
    The DO_PREPARE_OUTPUT method is like bellow:
    lr_pro ?= me->typed_context->order->collection_wrapper->get_first( ).
        WHILE lr_pro is BOUND.
          lr_pro->get_properties( IMPORTING es_attributes = ls_order ).
          if ls_order is not initial.
            append ls_order to lt_order.
          endif.
          lr_pro ?= me->typed_context->order->collection_wrapper->GET_next( ).
        ENDWHILE.
        CREATE OBJECT lc_iterator
          EXPORTING
            orders = lt_order.
        me->GV_iterator = lc_iterator.
    Step 3: in the .htm page, point iterator to controller's iterator
    <chtmlb:configTable  id                    = "Table1"
                        table                 = "//ORDER/Table"
                        iterator              = "<%= controller->GV_ITERATOR %>"
                         />
    Step 4: in the GET method of status attributes in context node ORDER, do the translation to change the status code into status description
    METHOD GET_PREPAY_STATUS
        DATA: OLD_VALUE TYPE ZACT_STATU,
              LS_STATUS TYPE ZACT_STATUS_S.
        OLD_VALUE = VALUE.
        READ TABLE GT_STATUS INTO LS_STATUS WITH KEY STATUS = OLD_VALUE.  
        "Get status description from field domain definition
        IF SY-SUBRC = 0.
          VALUE = LS_STATUS-NAME.           "Show status description
        ENDIF.
    ENDMETHOD.
    I thought I could see the status fields change their styles for different status code. But it still refuse to work, although I can debug to see that p_style really set as I expect, so I think there must have something wrong after RENDER_CELL_START, but what is it?
    Could anyone please help me sort it out or point out what's missing there or guide me the correct steps? Any post is greatly appreciated.
    Thank you!
    Jeff
    Edited by: liu jinghui on Feb 9, 2012 6:37 PM

    Hi, Jeff.
    Just don't want to cross post the same answer all over the forum. So I gave some inputs on the topic in this message: http://forums.sdn.sap.com/thread.jspa?messageID=11127647&#11127647
    Hope this will help you.

Maybe you are looking for

  • Macbook 13" Backlight Turns On and Off when Screen Moves

    I've started having an annoying problem with my Macbook. Sometimes when I open the lid, the backlight won't come on. If I move the lid around for a while, the backlight sometimes comes on, but if I make any sudden movements with the laptop, the backl

  • Change to Audio CD File Format?

    Has there been a recent change in the way Leopard presents files when a normal audio CD is simply mounted in Finder? I could swear they used to be presented as WAV files as recently as, say, October 2008. They're currently showing as AIFF. Is there a

  • How to get or show multiple record data pagewise using JSPBean and HTML

    Hi , I am using JSP bean for getting the data from database and html toe present the data. The problem is when the user inputs data in the search field and clicks on Search button ,i need to get all matching rows fromw the database ,which i am alread

  • Key down, Key up, Key code problems

    I've been having problems putting a key down handler together, which is weird because it's pretty basic. on keydown if (_key.keycode = 4) then baOpenFile( the moviepath & "help\help.pdf" , "maximised" ) end keydown doesn't seem to do anything, key up

  • CRM - Service

    Hi all of you! We are currently working on CRM 5.0 ,Our concern is as follows: Insatalled base --> the product ,it's seriel number,warranty is maintained along with the details of partner functions . In the complaint transaction when we put the Ibase