Change line color in alv.(urgent)

Hello , i want the line color to change when my cursor change lines in an ALV.Thx

Hi,
       Check this website
http://www.geocities.com/mpioud/Abap_programs.html
reward points if useful,
Regards,
Niyaz

Similar Messages

  • Change  row color on alv

    hi
    how can i change row color on alv.

    Hi
    thanks your answer  Uday Gubbala         
    i was examinated this link  [https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/abapWebDynproALV-ChangeCellColourbasedonContent]
    but i don't  do   this row  wd_this->m_alv_model = lo_value. error message : m_alv_model unknow.
    and this sample change column color but i want to row
    Thanks.

  • CANT GET RID OF THE ARROW ON MYT LINE TOOL.  CANT CHANGE LINE COLOR.  HELP

    CANT GET RID OF THE ARROW ON MYT LINE TOOL.  CANT CHANGE LINE COLOR.  HELP

    And what are your settings? what system? What version of PS? You need to be more specific and explain better.
    Mylenium

  • Changing line color on XY plot

    This should be something really simple. I simple created a property node, set the active plot, and set the plot.color. What happens to some plots is the points change to my specified color and other stays as my background plot color which is white. I cant seem to get the line color to change with the point color. There are ways I can change it at run time, by right click on the plot and going into properties and setting line color in that tab.
    What am I doing that I cant get this to work at runtime?
    I attached the plot, just ignore all the missing VIs you should be able to see the problem.
    Attachments:
    SteadyStatePlot1.vi ‏350 KB

    It works just fine here using LabVIEW 7.1. Could you do us a favor and make a mini demo, just containing the xy graph, some data for it, and the related property nodes to demonstrate your problem.
    Overall comment on your VI:
    Sorry, but I am absolutely horrified by your code. I cannot believe that you need all those property nodes, especially the signaling ones, they should be used very sparingly. (For example the FOR loops on top center and in the event called "clear all points" are just pumping hot air, repeating the same action and signaling (!!) every iteration.) It also just cannot be healthy if a single event calls tons of signaling properties, such as in the above mentioned event case. Then, in the timeout event, you are rewriting the plot la
    bels and names every 10 ms. Do they really change that often???
    Please let us help you in your overall program design. It will make a big difference in your future, more complex projects if certain common desing misconceptions are not propagated. I think entire sections of your program can be deleted without loss in functionality, the code can be stripped to <20% and the CPU usage can be reduce to <2% of the current situation. Just my wild guess.
    The above is well meaning criticism, so don't take it personal. I am much harsher looking at my own early code from 8 years ago. :-) Good luck!
    LabVIEW Champion . Do more with less code and in less time .

  • Changing Line Color

    I have Acrobat XI. I have drawn lines on a PDF. The default color is red. How do I change the color of the line?

    You should be able to select a line, right-click (control-click), and select Properties. It's a bit easier if you show the Properties toolbar first by pressing command+E

  • How can I change line colors in HTML reports?

    I have a VI that is creating an HTML report based on a table of results. I change the back ground color of the line based on failed results. However this line color change is not seen in the HTML reports. Can anyone give me a good way of basically transferring the properties of my table to the HTML report? Is it possible? Thanks in advance for any help.

    Greg - Thanks for the reply. I figured this out doing some more research. The line that I needed was "<BACKLOG="#PAYOFF">Your Cell Text</ID>. The problem I was having was that line is needed in front of the rest of the font formatting commands. For example here is my original line:
    <ID WIDTH="200"><BACKLOG="#PAYOFF"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>
    The bold part in the line above is what I added. With the cell color added like this it actually created another cell and pushed existing ones one cell to the right. It then colored the second cell in the row and left the first one blank. Through looking up more examples I found that I was actually putting the cell color command in the middle of the font formatting command. So I tried putting it at the end and it then did nothing. The only way I could get the cell in the table to change and not change anything else was using the syntax below.
    <ID BACKLOG="#PAYOFF"><WIDTH="200"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>
    Troy

  • How to change line color in line graph

    Hi,
    I have one 'on change of' field and has  three 'show value' fields.
    Crystal has assigned default colors for  these 3 lines..but i want to assign my own colors..is this possible?
    and can we adjust the line thickness?
    I am using crystal 2008 complete edition.
    And i am using formulae for the 'show value' fields..so the legend is showing '@' sign..how to get rid if this?
    Aprreciate any info...
    Thanks,
    Preethi

    If you click on the lines themselves, it should highlight the specific line you clicked on.
    Once the line is highlighted, right-click on the line and you should be able to "format the connector line" properties by changing the thickness, colour and type of line.
    The same can be done for the titles of the chart, simply click on one of the titles, once it's highlighted you should be able to change the title names, font colour, font type etc.
    --Lisinda

  • Graphs- Line Type, How to change line colors

    Hi,
           Iam developing graph line type with 2 seriese by default it show two colors  i.e Blue and Green . But i need red color for one of series. I checked in edit customization also i didnt find any option to change color of line . Pls helpme...
    Thanks,
    Krishna

    ]Hi,
    I think in global settings there is a option.
    Refer this link
    [customizing graphs|https://docs.google.com/viewer?a=v&q=cache:R1LWS-t_9xcj:www.sdn.sap.com/irj/scn/index%3frid%3d/library/uuid/c0bad079-1779-2c10-a8b1-ba76854ea6d1%26overridelayout%3dtrue+&hl=en&gl=uk&pid=bl&srcid=ADGEEShZuzUOlbxrVLkMLz511amV8K8seqKtGnfF-IXzNr_BRxDiNuT1OBIa0qCjD4Juf_RXul0iXYZJJpFM7foVU3oShbhRnQcFzCT637fSf7v5Qt2jJkHAZkFnfRSFOQZsoKLuatil&sig=AHIEtbRRDGjx1OANmLwZks8AmQfUMpGISQ
    Karthik.R

  • Changes from Visio 2010 to 2013 - highlighting entire line drawing document with text fields and changing line colors

    I work with very large visio drawings that are basically line drawings (network drawings) with text boxes indicating equipment location. We work in future and current drawings, future has colored lines indicating connection type and objects have text in
    them that indicate if they are new by having red text. Current drawings have all black lines and black text.
    Here's my dilemma, previously I would Ctrl+A and then change all text and all lines to black in Visio 2010, everything would change no problem. In Visio 2013 every text box now get's a black border around it, I've tried selecting all text boxes at once
    and trying to remove the line but no luck.
    These drawings are HUGE and it takes me a good hour just to change between future and current where previously it took me seconds. I have many coworkers and we're all experiencing he same issue with the move to 2013.
    Is there a macro or some vb script I can utilize to select all text boxes and remove the black outline?
    Hope you can help!

    try this macro
    Sub Simple()
    Dim sh As Shape, counter As Integer
    ActiveWindow.SelectAll
    For counter = 1 To ActiveWindow.Selection.Count
    Set sh = ActiveWindow.Selection(counter)
    If Len(sh.Text) > 0 Then sh.Cells("Geometry1.Noline").FormulaU = "IF(LEN(SHAPETEXT(TheText))>0,1,0)"
    Next
    MsgBox "All text borders set invisible"
    End Sub
    if in your drawings you have only lines and text label (NOT rectangles, circles and other shapesconteined text for example) this macro can help !

  • How to change the layout of alv-urgent

    hi friends,
    my requirement is  User should be able to sort the data on fields in different order, should be able to select the fields to sort the data
    for example iam displaying the sales order,sales group,kunnr,amount in ALV List Display now when iam selecting the fields sales group,kunnr,amount,sales order then program has to display output in this way only. for this i used sort table thae way iwrote logic for displaying output is as follows ...
      w_sort-spos = 3.
      w_sort-fieldname = 'FINQTR'.
      W_FIELD-just = 'C'.
      W_SORT-UP = 'X'.
      W_SORT-group = 'UL'.
      W_SORT-SUBTOT = 'X'.
      APPEND W_SORT TO I_SORT.
      CLEAR W_SORT.
    for subtotals it is working fine and now what shall i do for this requirement plz send me the sample code its really urgent to me.

    use slis_t_sortinfo_alv.
    w_sort-fieldname = 'XYZ'.
    w_sort-up = p_userinput1.(for XYZ)
    w_sort-down = p_userinput2.(for XYZ) preferabbly radio buttons.
    append w_sort to t_sort.
    w_sort-fieldname = 'YZX'.
    w_sort-up = p_userinput1.(for YZX)
    w_sort-down = p_userinput2.(for YZX) preferabbly radio buttons.
    append w_sort to t_sort.
    thats the best I am able to think for you.
    let me know if that is helpful.
    cheers
    santhosh

  • How to change the color of specific row in ALV tree

    Hi,
    I m using method set_table_for_first_display of a class CL_GUI_ALV_TREE.
    The req is to change the color of specific row. Now can anybody tell me how to change the color of ALV tree. As in ALV tree and in this method 'set_table_for_first_display', there is no parameter IS_Layout.
    Pls suggest...

    hi
    hope this code will help you.
    Reward if help.
    REPORT zsharad_test1.
    TABLES: ekko.
    TYPE-POOLS: slis. "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
    ebeln TYPE ekpo-ebeln,
    ebelp TYPE ekpo-ebelp,
    statu TYPE ekpo-statu,
    aedat TYPE ekpo-aedat,
    matnr TYPE ekpo-matnr,
    menge TYPE ekpo-menge,
    meins TYPE ekpo-meins,
    netpr TYPE ekpo-netpr,
    peinh TYPE ekpo-peinh,
    line_color(4) TYPE c, "Used to store row color attributes
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
    wa_ekko TYPE t_ekko.
    *ALV data declarations
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
    gd_tab_group TYPE slis_t_sp_group_alv,
    gd_layout TYPE slis_layout_alv,
    gd_repid LIKE sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    PERFORM data_retrieval.
    PERFORM build_fieldcatalog.
    PERFORM build_layout.
    PERFORM display_alv_report.
    *& Form BUILD_FIELDCATALOG
    Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
    I.e. Field type may be required in-order for
    the 'TOTAL' function to work.
    fieldcatalog-fieldname = 'EBELN'.
    fieldcatalog-seltext_m = 'Purchase Order'.
    fieldcatalog-col_pos = 0.
    fieldcatalog-outputlen = 10.
    fieldcatalog-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    fieldcatalog-do_sum = 'X'.
    fieldcatalog-no_zero = 'X'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'EBELP'.
    fieldcatalog-seltext_m = 'PO Item'.
    fieldcatalog-col_pos = 1.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'STATU'.
    fieldcatalog-seltext_m = 'Status'.
    fieldcatalog-col_pos = 2.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'AEDAT'.
    fieldcatalog-seltext_m = 'Item change date'.
    fieldcatalog-col_pos = 3.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MATNR'.
    fieldcatalog-seltext_m = 'Material Number'.
    fieldcatalog-col_pos = 4.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MENGE'.
    fieldcatalog-seltext_m = 'PO quantity'.
    fieldcatalog-col_pos = 5.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MEINS'.
    fieldcatalog-seltext_m = 'Order Unit'.
    fieldcatalog-col_pos = 6.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'NETPR'.
    fieldcatalog-seltext_m = 'Net Price'.
    fieldcatalog-col_pos = 7.
    fieldcatalog-outputlen = 15.
    fieldcatalog-datatype = 'CURR'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'PEINH'.
    fieldcatalog-seltext_m = 'Price Unit'.
    fieldcatalog-col_pos = 8.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    ENDFORM. " BUILD_FIELDCATALOG
    *& Form BUILD_LAYOUT
    Build layout for ALV grid report
    FORM build_layout.
    gd_layout-no_input = 'X'.
    gd_layout-colwidth_optimize = 'X'.
    gd_layout-totals_text = 'Totals'(201).
    Set layout field for row attributes(i.e. color)
    gd_layout-info_fieldname = 'LINE_COLOR'.
    gd_layout-totals_only = 'X'.
    gd_layout-f2code = 'DISP'. "Sets fcode for when double
    "click(press f2)
    gd_layout-zebra = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text = 'helllllo'.
    ENDFORM. " BUILD_LAYOUT
    *& Form DISPLAY_ALV_REPORT
    Display report using ALV grid
    FORM display_alv_report.
    gd_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = gd_repid
    i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
    i_callback_user_command = 'USER_COMMAND'
    i_grid_title = outtext
    is_layout = gd_layout
    it_fieldcat = fieldcatalog[]
    it_special_groups = gd_tabgroup
    IT_EVENTS = GT_XEVENTS
    i_save = 'X'
    is_variant = z_template
    TABLES
    t_outtab = it_ekko
    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. " DISPLAY_ALV_REPORT
    *& Form DATA_RETRIEVAL
    Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
    DATA: ld_color(1) TYPE c.
    SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
    UP TO 10 ROWS
    FROM ekpo
    INTO TABLE it_ekko.
    *Populate field with color attributes
    LOOP AT it_ekko INTO wa_ekko.
    Populate color variable with colour properties
    Char 1 = C (This is a color property)
    Char 2 = 3 (Color codes: 1 - 7)
    Char 3 = Intensified on/off ( 1 or 0 )
    Char 4 = Inverse display on/off ( 1 or 0 )
    i.e. wa_ekko-line_color = 'C410'
    ld_color = ld_color + 1.
    Only 7 colours so need to reset color value
    IF ld_color = 8.
    ld_color = 1.
    ENDIF.
    CONCATENATE 'C' ld_color '10' INTO wa_ekko-line_color.
    wa_ekko-line_color = 'C410'.
    MODIFY it_ekko FROM wa_ekko.
    ENDLOOP.
    ENDFORM. " DATA_RETRIEVAL

  • Change color in ALV top of page

    Hi all,
    Can anyone tell me how (if it is possible) to change color in ALV top-of-page?
    Thank you in advance,
    Hagit

    Hi,
    It is not possible to change the color in ALV top of page.
    Thanks,
    Sriram Ponna.

  • Row color in ALV

    Hi all,
    I am trying to display some selected rows in my report in a different color.
    But its not working.
    I have .....
    i_gs_layout-info_fieldname = 'COLOR_LINE'.
    my internal table to be displayed is...
    DATA: BEGIN OF T_DISPLAY OCCURS 0,
               MATNR              TYPE MARA-MATNR,
               LOSMENGE       TYPE QALS-LOSMENGE,
               SLMENGE         TYPE MSEG-MENGE,
               SL_PPM            TYPE P DECIMALS 2,
               COLOR_LINE(4) TYPE C,
               END OF T_DISPLAY.
    On some conditions I am filling the field COLOR_LINE with 'C610'.
    The following function module is used for display.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program             = i_g_repid
          i_callback_user_command  = ''
          i_callback_pf_status_set     = ''
          i_grid_title                          = l_title
          is_layout                           = i_gs_layout
          it_events                           = i_gt_events[]
          it_fieldcat                          = i_gt_fieldcat[]
          it_sort                               = i_gt_sort[]
          i_save                               = 'A'
        TABLES
          t_outtab                            = T_DISPLAY.
    Here everything is working fine except the color.
    Eventhough I have the value C610 in my internal table in most of the rows, no row is getting displayed in this color.
    Should I use some other function module or am I missing something in this code..?

    Hi,
    Check this link..
    http://www.sap-img.com/abap/line-color-in-alv-example.htm
    Check this simple example..
    Macro definition
    DEFINE m_fieldcat.
      add 1 to ls_fieldcat-col_pos.
      ls_fieldcat-fieldname   = &1.
      ls_fieldcat-ref_tabname = &2.
      append ls_fieldcat to lt_fieldcat.
    END-OF-DEFINITION.
    TYPE-POOLS: slis.                      " ALV Global types
    TYPES:
      BEGIN OF ty_vbak,
        vkorg TYPE vbak-vkorg,             " Sales organization
        kunnr TYPE vbak-kunnr,             " Sold-to party
        vbeln TYPE vbak-vbeln,             " Sales document
        netwr TYPE vbak-netwr,             " Net Value of the Sales Order
        line_color(4),                     " Line color
      END OF ty_vbak.
    DATA:
    Data displayed
      gt_vbak TYPE TABLE OF ty_vbak.
    START-OF-SELECTION.
      PERFORM f_read_data.
      PERFORM f_fill_color.
      PERFORM f_display_data.
         Form  f_read_data
    FORM f_read_data.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
               FROM vbak UP TO 100 ROWS.
    ENDFORM.                               " F_READ_DATA
         Form  f_fill_color
    FORM f_fill_color.
      DATA l_rnd_value TYPE integer2.
      FIELD-SYMBOLS <vbak> TYPE ty_vbak.
      LOOP AT gt_vbak ASSIGNING <vbak>.
      Random value
        CALL FUNCTION 'RANDOM_I2'
          EXPORTING
            rnd_min   = 0
            rnd_max   = 3
          IMPORTING
            rnd_value = l_rnd_value.
        CASE l_rnd_value.
          WHEN 0.
            <vbak>-line_color = 'C100'.   " Blue.
          WHEN 1.
            <vbak>-line_color = 'C300'.   " Yellow.
          WHEN 2.
            <vbak>-line_color = 'C500'.   " Green.
          WHEN 3.
            <vbak>-line_color = 'C600'.   " Red.
        ENDCASE.
      ENDLOOP.
    ENDFORM.                               " F_FILL_COLOR
         Form  f_display_data
    FORM f_display_data.
      DATA:
        ls_layout   TYPE slis_layout_alv,
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv.
    Build the field catalog
      m_fieldcat 'VKORG' 'VBAK'.
      m_fieldcat 'KUNNR' 'VBAK'.
      m_fieldcat 'VBELN' 'VBAK'.
      m_fieldcat 'NETWR' 'VBAK'.
    Fill Layout - Name of the field with color
      ls_layout-info_fieldname = 'LINE_COLOR'.
    Display the list
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          is_layout   = ls_layout
          it_fieldcat = lt_fieldcat
        TABLES
          t_outtab    = gt_vbak.
    ENDFORM.                               " F_DISPLAY_DATA
    Thanks,
    Naren

  • Line color in JTable

    how can I change line color in JTable.

    Then you need to do custom painting. Something like:
    JTable table = new JTable(...)
         public void paintComponent(Graphics g)
              super.paintComponent(g);
              g.setColor( Color.RED );
              int y = getRowHeight(0) - 1;
              g.drawLine(0, y, getSize().width, y);
    };

  • Can Table Control alternate on line color?

    Is it possible to change line color on Table Control?  I would like the lines on the Table Control to alternate in color as to make it easier to read the data.  I tried using screen-intensifed but that changes the color on a column, I need to make every other row stand out.
    Thanks
    Edited by: Gary Morman on Mar 11, 2010 9:17 PM

    ALV Grid is editable if using the CL_GUI_ALV_GRID class.  See programs which start with BCALV_EDIT*
    Regards,
    Rich Heilman

Maybe you are looking for

  • C:\Config.Msi\65598.rbf error when downloading Itunes on Windows

    Hi.  I am trying to download the new Itunes and am having trouble in windows.  This is the error message: Error writing to file C:\Config.Msi\65598.rbf verify that you have access to that directory.  Any advice?

  • Volumes folder on my xserve raid

    Hey all! When my network users login, they can see the root level of my xserve raid. Shouldn't this ve hidden? What if someone decides to trash my Volumes folder or decides to make any folder they want? When I try to disable sharing on the root level

  • Invoice table sold to party show wrong data

    Dear All While creating excise invoice in background sold to party show wrong data. In invoice ship-to-party andsold-to-party display correct but when we check in J_1IEXCHDR table ship-to-party and sold-to-party display same data. After upgrading sup

  • Incrementaly display VBox: limitation in Flex?

    Hi, I posted this question before without usable answers what makes me thinks that this is one of Flex 3 limitations. I have a VBox and want to add up to 150 charts (maybe even more later) as its children. What happens is that Flash calculates all th

  • Create inbound delivery with reference to purchase orders

    Hi, I´d like to create inbound deliveries using BAPI or transactions like vl10x (for outbound deliveries) for different purchase orders, items and quantities. Does anyone know the way to do it? Thank you in advance Best regards