on 12-13-2012 11:39 AM
i have editable alv now i need to give suggestive search on one of its column
use class cl_salv_wd_uie_input_field method
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Get all the columns to make row editable
CALL METHOD lv_value->if_salv_wd_column_settings~get_columns
RECEIVING
value = lt_columns.
2. Now loop the columns table and change the cell editor of a column
LOOP AT lt_columns INTO ls_columns.
CREATE OBJECT lr_column_type
EXPORTING
value_fieldname = ls_columns-id.
CASE ls_columns-id.
WHEN <column name>.
DATA : lo_material_descrip TYPE REF TO cl_salv_wd_uie_input_field.
CREATE OBJECT lo_material_descrip
EXPORTING
value_fieldname = ls_columns-id.
ls_columns-r_column->set_cell_editor( lo_material_descrip ).
CALL METHOD lo_material_descrip->set_suggest_values
EXPORTING
value = abap_true.
endcase.
endloop.
Hi Rajkamal,
I haven't tried this myself, but I believe the logic is sound...
Take a look at this document, .
After setting InputField (cl_salv_wd_uie_input_field) as the cell editor for a column (steps 14 and 15 in the document), you can use method cl_salv_wd_uie_input_field->set_suggest_values to enable suggested values for the InputField. Note the other requirements for enabling Proposals for InputFields should also be met.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Which version of Netweaver you are on..? From Netweaver 7.02, Suggest Values feature is available.
Check DEMO_VALUE_SUGGEST program.
Help Doc: http://help.sap.com/saphelp_nw73ehp1/helpdata/en/8c/20efbd1b0a463ba5914356f01de03f/frameset.htm
Hope this helps u.,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.