Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Table and TableColumn Alignment Issue

Hello everyone,

I've created 2 table in a webdynpro view and here's the coding in the WDMODIFYVIEW:

 tbl_alerts ?= view->get_element( 'TBL_ALERTS' ).
    tbl_alerts->set_fixed_table_layout( abap_true ).
    tbl_alerts->set_width( '1000px' ).
    tbl_alerts ?= view->get_element( 'TBL_CONTRACT_LIST' ).
    tbl_alerts->set_fixed_table_layout( abap_true ).
    tbl_alerts->set_width( '1000px' ).

    tbl_column ?= view->get_element( 'TBL_ALERTS_GROUPNO' ).
    tbl_column->set_width( '200px' ).
    tbl_column ?= view->get_element( 'TBL_ALERTS_BEZEI' ).
    tbl_column->set_width( '600px' ).
    tbl_column ?= view->get_element( 'TBL_ALERTS_QUANTITY' ).
    tbl_column->set_width( '200px' ).

    tbl_column ?= view->get_element( 'TBL_CONTRACT_LIST_DARTXT' ).
    tbl_column->set_width( '200px' ).
    tbl_column ?= view->get_element( 'TBL_CONTRACT_LIST_DOKNR' ).
    tbl_column->set_width( '600px' ).
    tbl_column ?= view->get_element( 'TBL_CONTRACT_LIST_DOKVR' ).
    tbl_column->set_width( '200px' ).

We have therefore two tables onto the screen and I'm trying to have their columns aligned.

However the columns of the first table are not aligned to the column of the second table.

Could anybody throw some light on this?

Thanks!

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question