Changing font size(bold) or color of a particular row in ALV Grid Digplay

Hi Experts ,
I am having a requirment to highlight some particular rows in ALV Grid Display . To achieve this i need to change font size or make it bold or change color of that row .
Please give me some inputs .
Thanks in Advance.
Vijyeta

Hi
Coloring An Entire Row
Coloring a row is a bit (really a bit) more complicated. , you should add an additional field to your list data table. It should be of character type and length at least 4. This field will contain the color code for the row.
First you have to declaration of our list data table u201Cgt_listu201D.
DATA BEGIN OF gt_list OCCURS 0 .
INCLUDE STRUCTURE SFLIGHT .
DATA rowcolor(4) TYPE c .
DATA END OF gt_list .
Adding the field that will contain row color data
As you guess, you should fill the color code to this field.  But how will ALV Grid know that you have loaded the color data for the row to this field. So, you make it know this by passing the name of the field containing color codes to the field u201CINFO_FNAMEu201D of the layout structure.
e.g.
ps_layout-info_fname = <field_name_containing_color_codes>. u201Ce.g. u2018ROWCOLORu2019
You can fill that field anytime during execution. But, of course, due to the flow logic of screens, it will be reflected to your list display as soon as an ALV refresh occurs.
Try this link also:
Possible functionalities in ALV
Regards
Neha

Similar Messages

  • My typewriter toolbar is graying out the ability to change font size, type, and color.

    My typewriter toolbar is graying out the ability to change font size, type, and color.

    Here's what I have done in the past. Maybe not elegant, but
    it works. (I
    use PHP, but I'm sure you can modify for ASP.)
    In the HEAD of each web page, include regular old embedded
    STYLE tags,
    but INCLUDE an external PHP file:
    <head>
    <style type="text/css">
    <?php include('styles/testcss.php'); ?>
    </style>
    </head>
    Now in that included PHP file, just have CSS code which pulls
    in your
    dynamic data. Here's an example snippet:
    body {
    color: #600;
    background-color: <?php echo
    $row_recordset['bgcolor'];?>
    Of course, you'll need the code for the recordset somewhere
    too.
    Alec
    Adobe Community Expert

  • Color coding of a row in ALV grid output.

    Hi Experts,
    I am using 'REUSE_ALV_GRID_DISPLAY_LVC' to display output of an Editable ALV.
    Only one column is editable, if it does have any value.
    I want to change the color of the row if a particular field in that row is not initial.
    i have defined the layout and fieldcatalog as mentioned below:
    DATA : gwa_fieldcat TYPE lvc_s_fcat,
           git_fieldcat TYPE lvc_t_fcat ,
           gwa_layout TYPE lvc_s_layo. "slis_layout_alv,
    Please let me know how should i proceed.
    Sample code will be very helpful for me, if any please paste here.
    Thanks in Advance....

    Hello.
    Check this example:
    TYPES:
      BEGIN OF ty_out,
        aufnr TYPE aufk-aufnr,
        linecolor(4) TYPE c, "Line color for alv
      END OF ty_out.
    DATA: ti_out TYPE STANDARD TABLE OF ty_out.
    DATA: wa_out TYPE ty_out.
    DATA: gt_layout TYPE slis_layout_alv OCCURS 0 WITH HEADER LINE.
    CLEAR w_linecolor.
    LOOP AT ti_out ASSIGNING <fs1>.
        IF w_linecol EQ 'C000'.
           w_linecol = 'C300'.
        ELSE.
           w_linecol = 'C000'.
        ENDIF.
        <fs1>-linecolor = w_linecol.
      ENDLOOP.
    * END-OF-SELECTION
    END-OF-SELECTION.
      CLEAR gt_layout.
      MOVE 'LINECOLOR' TO gt_layout-info_fieldname.
      APPEND gt_layout.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = 'ZRPPVDO05'
          i_callback_user_command = 'USER'
          it_fieldcat             = ti_flat[]
          i_default               = 'X'
          i_save                  = 'A'
          is_variant              = variant_detail
          is_layout               = gt_layout
        TABLES
          t_outtab                = ti_out
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.
    Hope this helps. Reward if helpfull.
    Best regards.
    Valter Oliveira.

  • Easiest way to change font size/color with CSS?

    I've never used CSS before; I need to know how to change the font size and color using CSS, since it seems to be the only way to do it now. Sometimes I just need to change the font just for a few words, or a line here and there. Not necessarily page-wide, you understand. Is there a step-by-step process showing the simplest way to accomplish this? I'm not a web developer or professional designer, nor do I want to be. I just use DW to build simple web sites for personal use. I don't build using HTML - I solely use DM's GUI functions. And I'm also trying to teach my nine year-old how to start out page-building. I certainly hope that something as simple as changing font size doesn't require one to buy a book to learn HTML, which seems to be what a lot of people are telling me. Thanks for any assistance.

    Easiest is not always the best way.  You must learn the fundamentals. 
    CSS
    /**this styles all paragraphs in your site**/
    p {
    font-size: 18px;
    color: #000;
    /**This is a class.  Classes are re-usable**/
    .red {
    color:red;
    font-weight:bold;
    HTML:
    <p>This is a normal paragraph</p>
    <p class="red">This is a red paragraph</p>
    <p>This is a normal paragraph with <span class="red">some red text here</span> but not here.</p>
    If you're going to teach your 9yr old how to build web pages, start with the links below.
    There's no point in teaching your child bad habits that will have to be unlearned later.
    http://www.html.net/
    http://w3schools.com/
    http://www.csstutorial.net/
    http://phrogz.net/css/HowToDevelopWithCSS.html
    Nancy O.

  • A mode to change font size and bold in every page?

    Due to problems described here https://support.mozilla.org/en-US/questions/1012057?esab=a&s=&r=0&as=s I have clear that I need something (an extension, maybe) that allow me to recognize and change font size and bold of the fonts in every page.
    Does exist something like this?
    Maybe also for bookmarks toolbar...

    Hi RichterB,
    You can change this in the Content Settings of Firefox. Go to "3 bar" menu and click on Options. Click on content and uncheck "Let websites choose their own styles" and select a bold font type.
    Also try [https://addons.mozilla.org/en-US/firefox/addon/stylish/ Sytlish].

  • How do i change font sizes and colors in ical in OS Lion.  Everything is greyed and too small.   And how do I changed the color of the scroll bars, which are now invisible?

    how do i change font sizes and colors in ical in OS Lion. Since upgrading,  all fonts are grey, instead of black,  and too small.   And how do I changed the color of the scroll bars, which also are grey and almost invisible?  And if you can asnwer this, can you tell me how to get back the email format I had before the upgrade?  I no longer have column headings and I'd like them.  Thank you. 

    Do you know about changing the font colors for ical, and the color of the scroll bars?
    No, I don't. I don't use that program; I fiddled with it just now, and could not find a way to do that.
    Perhaps someone else will have an idea.

  • How to change Font Size of Object Explorer in "SQL Server Management Studio"

    Dear Team,
    "SQL Server Management Studio" is a fantastic IDE for the database.
    There are so many customization options available but one thing many users missing is that " How to change Font Size of Object Explorer?"
    Can you please accumulate this feature in IDE ASAP?
    Many Thanks,
    Bhavesh

    Its there
    Go to Tools -> Options
    Then under Environment you've fonts and colors tab where you can specify a higher font size.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Change font size in mail app

    Can I change the font size and/or color in mail app?

    Change color:  No
    Change font size:  In the App, No
    But you can change the font size for everything in iPad:  Settings > General > Text Size use slider to increase or decrease text size.

  • Change font size in mail

    How can you change the the font size in mail when not using the "(classic) style, particularly the column that lists all your emails (2nd column).

    Change color:  No
    Change font size:  In the App, No
    But you can change the font size for everything in iPad:  Settings > General > Text Size use slider to increase or decrease text size.

  • Cannot change font size when highlighted. All font changes. How do I correct this?

    Frustrated as to why when I highlight a single word to change font size or style every word on the page follows the adjustment. I need to be able to change words individually with font, size and color.

    I have stopped using Text Edit as I find it flaky. Instead I prefer Bean:
    http://www.bean-osx.com/Bean.html
    which does not have that problem!

  • How to change font size on screen

    how to change font size on screen

    I'm not certain what font sizes you wish to change, when on a page you can use command and the += button to zoom in and make the fonts larger. On the finder desktop you can make what ever is on the desktop larger or smaller from the finder menu click view, custom view options, and adjust the icon size with the slider on the top, and the text using the text size box to select the size that your comfortable with.
    Forgot to add these.
    http://support.apple.com/kb/PH10876
    http://support.apple.com/kb/PH10877
    Hope this helps.

  • How can I change font size in iCal 3.0.8?

    How can I change font size in iCal 3.0.8?

    Julian,
    There is no user option to change the font size in iCal.
    For other posts regarding this topic, read some of the links in "More Like This." box just to the right of your first post in this thread.

  • How to change font size on web page when have no icon in View tool to do so

    menu bar at top of screen does not have icon to change font size of a web page as described in your support information--you show it as between stop and reload in View icon and I do not have it at all in my toolbar.

    See this: <br />
    https://support.mozilla.com/en-US/kb/Page+Zoom

  • How to change font size, maximum column size in the result screen ?

    hi All
    That's great when using SQL Dev.
    But I also have a trouble that how to change font size, maximum column size in the result screen ?
    My users think that font in result screen is shown very small, and whenever the data in each colum is long then it's not shown full data in column, they must double click for extend the size. Have the option to default the max size for showing full data in each column ? I try but still not to do that .
    Appreciate for anyone to help us.
    Thanks all.
    Sigmasvn

    You can't change the font for the results screen yet, however you will be able to select an auto-fit option for selected columns, so if some columns have slitghtly wider text you'll be able to set the column widths to handle these wider columns.
    Also, there s the option of switching the layout of a record in the grid.
    Sue

  • How to change font size and style in keynote for ios

    How to change font size and style in keynote for ios

    Same situation for report parameter input value font. What ever we do , it is still Arial and size 10.

Maybe you are looking for

  • I want to modify vendor aging report F.18.

    HI gurus, I want to add vendor name in vendor aging report f.18. I have copy std prg and make z prg and also put vendor name in internal table but in last that table's field getting clear so its not printing in report. So , if anybody knows then help

  • Reports for Accounts recievables

    Hi I am working in ECC 6.0 Environment and my client wants to produce reports in Accounts recievables as 1)Dunning Blocking Report by Reason Code 2)Line Item Journal 3)Customers with no billing 4)Direct debit customers with payment block 5)Dunning Bl

  • How to access JMS queues in the SAP J2EE Engine?

    Hi Gurus, Can anybody know how to access the jms dead message queues in the XI J2EE Engine (which is WAS 6.40)? I have read in the SAP documentation that we can use some JMS commands from the telnet. I don't know how to use those commands. Can anybod

  • Traffic light in Gantt chart and Colour change in the same.

    Dear All, I have designed an interactive ALV report and put a button in the output to display Gantt Chart. The Gantt chart is displaying fine after pressing the button based on the output. I have two questions as below. 1) Is it possible to diplay Tr

  • Iview not opening in a separate Window

    Hello Experts, We have an Iview for approving/rejecting apprasials for Manager. The Iview Id is PddDirect. In order to open this iview in a separate window we have set "Launch in New Window" property to "Display in separate window".  This Iview is as