04-08-2013 7:50 PM
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
04-09-2013 4:18 AM
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
04-09-2013 4:18 AM
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
04-10-2013 3:23 PM