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:

/wp-content/uploads/2014/09/screenshot_02_532684.png

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

Here is a sample:

/wp-content/uploads/2014/09/screenshot_03_532700.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:

/wp-content/uploads/2014/09/screenshot_01_532705.png

Enjoy.

p.s.

The program use a status named STATUS_COMMON

/wp-content/uploads/2014/09/screenshot_04_532735.png

All the functions are “Exit Command”

/wp-content/uploads/2014/09/screenshot_05_532736.png

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply