Skip to Content
author's profile photo Former Member
Former Member

How to add symbols or icons in ALV grid.

Hi Friend,

I have a requirement to add a red symbol in the ALV grid,

some how i did it, but i was unable to add it as a last column (i was able to add it in first column).

Bharath.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 23, 2004 at 08:46 AM

    Hi,

    This might be a solution assuming that you are using the method CL_GUI_ALV_GRID (set_table_for_first_display) and not the function module.

    Add a row to your fieldcatalog internal table called LOCK_ICON. Check the type group "ICON" for the value of the ICON you want to put and include the TYPE group in your program. Your fieldcatalog has a field called ICON. Pass 'X' to this field for your row (LOCK_ICON) in the fieldcatalog.

    Your internal table containing the data to be output should carry the value you determined above.

    I think this should do it.

    Regards,

    Tathagata

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 23, 2004 at 09:29 AM

    Hi gupta,

    As u thought i was using classes only, but the fact that, iam unable to add that icon as a last column of my Alv grid, even though i declared the icon as the last field in my internal table.

    regards,

    Bharath.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 23, 2004 at 12:11 PM

    Hi Bharath,

    Populate the column position (COL_POS) field in the fieldcatalog internal table with the value of the column you want the icon to be displayed in.

    In your case you can describe your fieldcatalog table for the number of columns and then add 1 to the value for the column position of icon column. By default this value is 0.

    Hope this solves your problem.

    Regards,

    Tathagata

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 23, 2004 at 06:17 PM

    If you Exception LED Display in Layout Check These Fields in Grid Layout.

    EXCP_FNAME

    EXCP_ROLLN --> This Need to Fill With Data Element

    EXCP_CONDS

    EXCP_LED

    Then in Your Field Catalog you may need to Put Correct Column Position.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.