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: 

ALV GRID and PDF Viewer on one Screen. How to make it resizeable ?

andre_abap
Explorer
0 Kudos

Hi all,

i have an application Screen with two areas.

The upper area is used by an ALV List (with REUSE_ALV_GRID_DISPLAY), in the bottom there is a PDF Viewer area. Both areas are divided by a bar.

How to make this bar moveable, so that both areas can get resized ?

For better understanding i attached a screenshot 😉

Thanks in advcance

André

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
AFAIK not with old REUSE FM.
  1. Convert the old ALV FM to an ALV class (e.g. CL_SALV_TABLE or CL_GUI_ALV_TABLE if udpate required)
  2. Create a splitter container with two rows
  3. Use method SET_ROW_SASH to set the sizeable attributes if required
  4. put ALV in upper container and pdf in lower one

Hint: Look at demo program such as RSDEMO_SPLITTER_CONTROL

5 REPLIES 5

Tomas_Buryanek
Active Contributor

Hello, did you tried cl_gui_splitter_container? That is user resizeable (with drag) by default I think.

-- Tomas --

raymond_giuseppi
Active Contributor
AFAIK not with old REUSE FM.
  1. Convert the old ALV FM to an ALV class (e.g. CL_SALV_TABLE or CL_GUI_ALV_TABLE if udpate required)
  2. Create a splitter container with two rows
  3. Use method SET_ROW_SASH to set the sizeable attributes if required
  4. put ALV in upper container and pdf in lower one

Hint: Look at demo program such as RSDEMO_SPLITTER_CONTROL

0 Kudos

CL_GUI_ALV_TABLE = CL_GUI_ALV_GRID ?

0 Kudos

yes typo 🙂

andre_abap
Explorer
0 Kudos

Hi,

u pushed me into the right direction , Splitcontainer is the keyword

thanks all

André