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

Bold texts in ALV Grid

Hello All!

I need to display some particular cells in an ALV Grid with their content shown in <b>bold</b>, is that possible? If so, how?

TIA, Mauro.

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 Oct 18, 2006 at 02:35 PM

    this option is avaialable in 'FIELDCATALOG'.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 02:38 PM

    hi ,

    Check out the sample code:

    *-- ALV Grid data declaration

    ----


    • CLASS v_lcl_event_receiver DEFINITION

    ----


    CLASS lcl_event_receiver DEFINITION.

    PUBLIC SECTION.

    METHODS:

    handle_print_top_of_page FOR EVENT print_top_of_page OF

    cl_gui_alv_grid,

    handle_top_of_page FOR EVENT top_of_page OF

    cl_gui_alv_grid,

    handle_double_click FOR EVENT double_click OF cl_gui_alv_grid

    IMPORTING e_row e_column.

    ENDCLASS. "o_lcl_event_receiver DEFINITION

    data: o_html TYPE REF TO cl_dd_document.

    *

    DATA: lws_text TYPE sdydo_text_element.

    IF cl_gui_alv_grid=>offline( ) IS INITIAL.

    *-- Object for HTML top container

    CREATE OBJECT o_html

    EXPORTING style = 'ALV_GRID'

    background_color = 35.

    *-- Top of Page

    CALL METHOD o_alvgrid->list_processing_events

    EXPORTING

    i_event_name = 'TOP_OF_PAGE'

    i_dyndoc_id = o_html.

    *

    *-- Total Record Text

    CALL METHOD o_html->add_text

    EXPORTING

    text = 'Header 1'

    sap_emphasis = 'STRONG'. " for bold

    *

    CALL METHOD o_html->add_gap

    EXPORTING

    width = 8.

    lws_text = 'Header 2'.

    CALL METHOD o_html->add_text

    EXPORTING

    text = lws_text

    sap_emphasis = 'STRONG'. " for bold

    CLEAR lws_text.

    CALL METHOD o_html->new_line

    EXPORTING

    repeat = 1.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2006 at 02:39 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 02:52 PM

    I have solved on my own with the help found in the following post:

    text-bold

    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.