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: 

SALV Split Screen - Title above each ALV

Former Member
0 Kudos

Greetings,

I'm displaying two related ALV reports on one screen using the splitter class and would like to have a title above each report as opposed to one main title at the top.  I'm currently splitting the screen into 4 rows with rows 1 and 3 being just tall enough for a title and rows 2 and 4 containing the data.  I don't see a way to put the title text into rows 1 and 3.  Any tips on doing something like this?   I'm using cl_salv_table=>factory.

Regards,

JR

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi J R,

     You can add header text for each ALV using the object of class cl_salv_display_settings.

     The below code snippet would help you in adding the header text.

     data : disp_set TYPE REF TO cl_salv_display_settings,

               header_text type lvc_title.

        header_text = 'ALV Title'.

       disp_set = disp_alv->get_display_settings( ).

       disp_set->set_list_header( l_hdtext ).

    

      Here disp_alv is the object that you have imported in the factory() method.

Hope this helps,

~Athreya

2 REPLIES 2

Former Member
0 Kudos

Hi J R,

     You can add header text for each ALV using the object of class cl_salv_display_settings.

     The below code snippet would help you in adding the header text.

     data : disp_set TYPE REF TO cl_salv_display_settings,

               header_text type lvc_title.

        header_text = 'ALV Title'.

       disp_set = disp_alv->get_display_settings( ).

       disp_set->set_list_header( l_hdtext ).

    

      Here disp_alv is the object that you have imported in the factory() method.

Hope this helps,

~Athreya

0 Kudos

Thank you Athreya, that was exactly what was needed!