This website is not affiliated with, sponsored by, or approved by SAP AG.

Change font size in full screen ALV

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Change font size in full screen ALV

Postby q4u » Sun Aug 09, 2015 2:42 pm

Hi,
The code below is a full screen two-dimensional ALV with a title. SAP Help says of changing the title's font size: "you can only do this when you display the title in the ALV output", however the title below does not change. Are they talking about using elements? This code works when modified for use in a container type.

Code: Select all
REPORT  z_full_screen.

DATA: l_ispfli         TYPE TABLE OF spfli.

DATA: o_alv             TYPE REF TO cl_salv_table,
          lc_msg           TYPE REF TO cx_salv_msg,
          lo_display      TYPE REF TO cl_salv_display_settings.

  SELECT * INTO TABLE l_ispfli FROM spfli.

  TRY.
      CALL METHOD cl_salv_table=>factory
        IMPORTING
          r_salv_table = o_alv
        CHANGING
          t_table      = l_ispfli.

* set ALV display settings
      lo_display = o_alv->get_display_settings( ).
      lo_display->set_list_header( 'ALV heading' ).
      lo_display->set_list_header_size( cl_salv_display_settings=>c_header_size_small ).

* display ALV on screen
      o_alv->display( ).
    CATCH cx_salv_msg INTO lc_msg .
  ENDTRY.



q4u
q4u
 
Posts: 439
Joined: Wed Mar 08, 2006 7:02 am

Return to ABAP

Who is online

Users browsing this forum: Google [Bot] and 7 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.