cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the order of columns in Create Confirmation Screen

Former Member
0 Kudos

Hello Guys,

want to change the order of columns in Create Confirmation screen, not  thru Settings , can any one please let me know , please check the below screen shot

Thanks

Vijaya

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.