on 07-03-2013 6:12 AM
Hello Vijaya,
you can change the order of the columns with just clicking on the column header and move it to the new place. Or you can change the used component configuration and rearrange the order there.
Regards,
Miklós
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijaya,
You can adjust the column position through coding in webdynpro WDDOMODIFYVIEW method.
Create a enhancement in the post exit of the WDDOMODIFYVIEW method and add the below code.
I have solved a similar problem in Contract Item Overview screen with the below code.
*&---------------------------------------------------------------------------------------------------*
DATA: lo_table TYPE REF TO cl_wd_table,
grcol TYPE REF TO cl_wd_abstr_table_column,
tcol TYPE REF TO cl_wd_table_column,
lc_element TYPE string VALUE 'CTR_ITEMS'. <Enter your node name>
IF first_time EQ abap_true.
* get table reference
lo_table ?= view->get_element( id = lc_element ).
* Remove the grouped column
CALL METHOD lo_table->remove_grouped_column
EXPORTING
id = 'ZZ_ITM_RELEASED' <your newly added column name>
index = 1
RECEIVING
the_grouped_column = grcol.
* Casting referenced variables
tcol ?= grcol.
* Add the grouped column as column using the method - add_column
CALL METHOD lo_table->add_column
EXPORTING
index = 20 <Enter the index were you want to place the column>
the_column = tcol.
ENDIF.
*&-------------------------------------------------------------------------------------------------------------*
I hope this helps.
With Regards,
Nitin B Modi.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.