Quantcast
Channel: SCN : Blog List - ABAP Development
Viewing all articles
Browse latest Browse all 943

The case of the missing cl_salv_form_layout_grid

$
0
0

Hi,


Recently there was a request to display more then one cl_salv_table on screen with headers.

Not able to display Header Details using cl_salv_table class by Idris Ahmed Khan


Display multiply cl_salv_table on screen ? Doing that is not complicated (e.g. Using cl_gui_splitter_container) .

 

Here is a sample:

screenshot_02.png


But the requirement was also to present some header info using cl_salv_form_layout_grid.


Here is a sample:


screenshot_03.png


I tried to create the required output but with no luck.


Then I saw this Adding header to alv(factory) in container that led me to believe that I am fighting a lost battle.


Well..... Time for some workaround.

 

Program Y_R_EITAN_TEST_08_23 is using cl_gui_splitter_container that is made up of 4 rows.


Row 1 and 3 are filled using cl_gui_html_viewer and are used as headers (replacement to cl_salv_form_layout_data_grid) .


Html allows formatting and colors to make any user happy....

 

You can adjust the initial height of the splitter rows using cl_gui_splitter_container->set_row_height .

 

Row 2 and 4 are filled using cl_salv_table .


And here is the result:

screenshot_01.png

 

Enjoy.

 

p.s.

 

The program use a status named STATUS_COMMON

 

screenshot_04.png

 

All the functions are "Exit Command"

 

screenshot_05.png


Viewing all articles
Browse latest Browse all 943

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>