Skip to Content
author's profile photo Former Member
Former Member

Multi component ABAP WD application layout

Hi,

I am very new to the world of ABAP WD application development. My first task is to create a WD Application with three component views, in a two column format. In the old HTML days, the page would look something like this:

<html>

<body>

<table width='100%' border=1 colspan = 2>

<tr>

<td width='40%'>Component 1</td>

<td rowspan=2>Component 3</td>

</tr>

<tr>

<td>Component 2 Usage SALV_WD_ALV</td>

</tr>

</html>

I have tried all the different combinations of layouts and widths but the problem is with the component that implements the ALV grid. There does not seem to be an obvious way of fixing the size of this window. Tbus, depending on the number of columns, the view can take up the entire browser window and I have to scroll to get to Component 3. Not very nice. I would rather have the scroll across the ALV grid

Any assistance would be greatly appreciated.

In anticipation.

John

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 10, 2009 at 03:06 AM

    Hi, To have horizontal scrollbar, you will have to follow the following 3 steps, 1. Goto the Application->Parameter tab and set the WDTABLENAVIGATION = SCROLLBAR 2. Now we will use the SET_SCROLLABLE_COL_COUNT method to set the displayed number of columns. Any fixed columns are not counted, so if we want 5 columns displayed total and one of them will always be fixed, we need to set the value to 4.

    l_table->if_salv_wd_table_settings~set_scrollable_col_count( '4' ).
    3.Now we need to get access to the column object for the colums that we want to fix(should be always displayed ). CL_SALV_WD_COLUMN, has the method SET_FIXED_POSITION that we need. It is possible to fix columns to either the right or left side of the ALV table display.
    DATA o_carrid TYPE REF TO cl_salv_wd_column.
      o_carrid = l_table->if_salv_wd_column_settings~get_column( 'COL1' ). " Column 1 ( Attribute Name )
      o_carrid->set_fixed_position( cl_wd_abstr_table_column=>e_fixed_position-left ).
    If you were going to fix more than one column, then you might want to consider calling GET_COLUMNS instead of GET_COLUMN. This will alternative method will return an internal table filled with object references for each column in the ALV table - allowing for easier processing of multiple columns. Regards, Radhika.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.