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: 

HI

Former Member
0 Kudos

how to increase Font size and font style in ALV report headings.

pls help me urgently

6 REPLIES 6

Former Member
0 Kudos

data: lt_list_commentary type slis_t_listheader,

l_logo type sdydo_value.

perform build_comment using

lt_list_commentary

l_logo.

form build_comment using

pt_list_commentary type slis_t_listheader

p_logo type sdydo_value.

data: ls_line type slis_listheader.

clear ls_line.

ls_line-typ = 'H'.

ls_line-info = 'SREEKANTH REDDY'.

append ls_line to pt_list_commentary.

clear ls_line.

p_logo = 'ENJOYSAP_LOGO'.

endform.

In Function module,

it_list_commentary = lt_list_commentary

use can use ls_line-typ values as 'H' , 'A' , 'S'

Former Member
0 Kudos

Hi ,

There is field in fieldcatalog as emphasize pass that value as 'X' to font style.

and use STYLE FIELD.

Please reward if useful.

Former Member
0 Kudos

See the code sample

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_rephead.htm

Form top-of-page.

*ALV Header declarations
data: t_header type slis_t_listheader,
      wa_header type slis_listheader,
      t_line like wa_header-info,
      ld_lines type i,
      ld_linesc(10) type c.

* Title
  wa_header-typ  = 'H'.
  wa_header-info = 'EKKO Table Report'.
  append wa_header to t_header.
  clear wa_header.

If u put 'H' it will be header.

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_endlist.htm

former_member632991
Active Contributor
0 Kudos

Hi,

the font size and style are predefined for alv.

Possible values:

- (H)eader: - List header

- only the contents of INFO are

output (KEY is ignored)

- usually one line = one entry

Attributes: - left-justified

- bold

- followed by empty line

(S)election: - Important header information, e.g.

currency of amounts in the list

- display format:

KEY(bold) INFO(normal)

Attributes: - left-justified

- bold (KEY=on/INFO=off)

- followed by empty line

Regards,

Sonika

Former Member

Former Member
0 Kudos

in top of page

data : ilst type slis_t_listheader_alv,

wlist type slis_listheader_alv.

wlist-typ = 'H' < S or A you can pass>.

wlist-info = 'Top of page'.

append wlist to ilist.

append that to listheader.

call reuse_alv_commentary_write.

regards

shiba dutta