Quantcast
Channel: SCN: Message List - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 2110

Re: ALV IDA Column Position Change

$
0
0

Hello Amol,

 

you can influence the order of the displayed fields using the SET_AVAILABLE_FIELDS method of the IDA ALVs field catalog instance.

Following you see a little example for the company code table T001. I changed the order of the fields that the company code text is displayed in front of the company code ID. The order in which you pass the fields to the method defines the order for the output.

 

Best Regards,

Florian

 

 

" create IDA ALV
DATA(lo_ida_alv) = cl_salv_gui_table_ida=>create( iv_table_name = 'T001' ).
" set available fields
lo_ida_alv->field_catalog( )->set_available_fields( its_field_names = VALUE if_salv_gui_types_ida=>yts_field_name( ( CONV fieldname('BUKRS') )                                                                                                                   ( CONV fieldname('BUTXT') ) ) ).
" set display order of fields
lo_ida_alv->default_layout( )->set_visible_fields( it_visible_fields = VALUE if_salv_gui_types_ida=>yt_field_name( ( CONV fieldname('BUTXT') )                                                                                                                   ( CONV fieldname('BUKRS') ) ) ).
" output
lo_ida_alv->fullscreen( )->display( ).

Viewing all articles
Browse latest Browse all 2110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>