cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I found this code section to use sorting on a table. Need help for this code, if I can generate this using a code wizard or not.

Former Member
0 Kudos

This code section is written in method wddomodifyview :

data wd_table type ref to cl_wd_table.

check first_time = abap_true.

wd_table ?= view->get_element( 'TABLE' ).

wd_this->table_control ?= wd_table->_method_handler.

wd_this->table_control->set_key_attribute_name( 'MATNR' ).

wd_this->table_control->apply_sorting( ).

Accepted Solutions (1)

Accepted Solutions (1)

harsha_jalakam
Active Contributor
0 Kudos

Hi Lata,

The snippet shared is more of referring to the declared variables  and using the interface methods, hence I think there wont be any code wizard, for this.

You can refer to the same, in case if it has to be elsewhere.

Regards,

Harsha

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Lata,

As your working on table events, the code which you have provided is a manual code which cannot be written using code wizard   & Hence we cannot use code wizard for the same.

Hope this helps you.

Thanks

KH

Former Member
0 Kudos

No. You can't use code wizard.

harsha_jalakam
Active Contributor
0 Kudos

Hi Lata,

refer below two links,, for reference

Filtering in Table UI Element

Table with sorting functionality ~ Team ABAP

Regards,

Harsha

ChrisSolomon
Active Contributor
0 Kudos

Please use the topic/question "subject" line for a short summary of your question and do not try to put the whole content into it.