Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV font size change

Former Member
0 Kudos
670

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.

4 REPLIES 4

Former Member
0 Kudos
66

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

Former Member
0 Kudos
66

Hi,

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

Thanks,

Sriram Ponna.

Former Member
0 Kudos
66

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.

Former Member
0 Kudos
66

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