Skip to Content

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

How to set column names in OVS search help of ALV EDIT

Hi All,

I have a OVS search help for my ALV EDIT column.This OVS will have two columns,I need to give the names(name1 , name2) to the columns.

I am writing the below codo in phase 0.

ls_text-name = 'Column1'.

ls_text-value = 'name1'.

INSERT ls_text INTO TABLE lt_column_texts.

ls_text-name = 'Column2'.

ls_text-value = 'name2'.

INSERT ls_text INTO TABLE lt_column_texts.

ovs_callback_object->set_configuration(

label_texts = lt_label_texts

column_texts = lt_column_texts

group_header = lv_group_header

window_title = lv_window_title

table_header = lv_table_header

col_count = 2

row_count = 20 ).

Below code in Phase 3.

Assign ovs_callback_object->selection->* to <ls_selection>.

if <ls_selection> is assigned.

ovs_callback_object->context_element->set_attribute(

name = `ATR1`

value = <ls_selection>-Column1 ).

endif.

But,the column names are not getting set.Please provide your inputs.

Regards,

Salma

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