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

ALV font size change

I have got reports which have ALV grid display.I want to change the font size of the heading,is there a way in SAP for doing the same.

In Selection screen,I want to change the font size of my fields,is there a option of doing this.

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 Jan 02, 2008 at 10:15 AM

    Hai,

    You can try to show difference between the Heading and Normal text:

    gs_layout_alv-colwidth_optimize = 'X'.

    gs_layout_alv-zebra = 'X'.

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    i_callback_program = gv_repid

    i_callback_top_of_page = 'TOP_OF_PAGE'

    i_callback_html_top_of_page = 'HTML_TOP_OF_PAGE'

    is_layout = gs_layout_alv

    it_fieldcat = gt_fieldcat

    TABLES

    t_outtab = gt_rep_data

    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.

    FORM html_top_of_page USING document

    TYPE REF TO cl_dd_document.

    DATA: lv_text TYPE sdydo_text_element.

    lv_text = sy-title.

    CALL METHOD document->add_text

    EXPORTING

    text = lv_text

    sap_style = 'HEADING'.

    CALL METHOD document->new_line.

    CALL METHOD document->new_line.

    WRITE sy-datum TO lv_text.

    WRITE sy-uzeit TO lv_text+12.

    WRITE sy-uname TO lv_text+24.

    CALL METHOD document->add_text

    EXPORTING text = lv_text

    sap_style = 'NORMAL'.

    ENDFORM. "html_top_of_page

    FORM top_of_page.

    CALL FUNCTION 'ZREPORT_HEADER'

    EXPORTING

    rept_title = sy-title.

    ENDFORM. "TOP_OF_PAGE

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2008 at 10:38 AM

    Hi,

    I don't think it is possible to increase the font size of the headings.

    Thanks,

    Sriram Ponna.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2008 at 05:53 AM

    it it possible so u can use follwoing code .

    **************************************************************

    FORM alv_grid .

    layout-zebra = 'X'.

    layout-colwidth_optimize = 'X'.

    layout-info_fieldname = 'COLOR'.

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    i_callback_program = 'ZLIST2'

    i_callback_user_command = 'USER_COMMAND'

    i_callback_top_of_page = 'TOP_OF_PAGE'

    i_callback_end_of_page = 'END_OF_PAGE'

    is_layout = layout

    it_fieldcat = ls_fieldcat

    i_default = 'X'

    i_save = 'A'

    TABLES

    t_outtab = t_ekko

    EXCEPTIONS

    program_error = 1

    too_many_lines = 3

    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.

    ----


    • FORM TOP_OF_PAGE *

    ----


    • ........ *

    ----


    FORM top_of_page.

    DATA : lable(60) TYPE c.

    DATA : spac(5) TYPE c VALUE ' '.

    DATA : head TYPE slis_listheader,header TYPE slis_t_listheader .

    head-typ = 'H'. head-info = 'HEADER DOCUMENT '.

    APPEND head TO header.

    CONCATENATE 'FROM' ' ' ebeln-low ' ' 'TO ' ' ' ebeln-high

    INTO lable

    SEPARATED BY space .

    head-typ = 'S'.

    head-info = lable.

    APPEND head TO header.

    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

    EXPORTING

    it_list_commentary = header

    I_LOGO = 'ENJOYSAP_LOGO'.

    ENDFORM.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 05:19 AM

    thanks for all the replies,I am still looking for a solution,but am closing the thread.

    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.