Showing results for 
Search instead for 
Did you mean: 

data autopopulate in a text field

Former Member
0 Kudos

Hi Experts,

I have a view with two fields.

i) Field with dropdown values

ii) Empty text field.

When i select a specific value from dropdown in Field i, my field ii has to be filled automatically with some text data.

I have the data which has to be filled in field ii.

Need your suggestions regarding this.



Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos


You can go for event to set second field value. In GET_P method give event name, in that event handler method set the second field value.

GET_P method of first field.

CASE iv_property.

    WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

      rv_value = cl_bsp_dlc_view_descriptor=>field_type_PICKLIST.

    WHEN if_bsp_wd_model_setter_getter=>fp_server_event.

      rv_value = 'SET_TEXT'.


in event EHON_SET_TEXT event set default value for second field.



Answers (3)

Answers (3)

Former Member
0 Kudos

Hi bkvs,

As suggested by others there are many ways to do it.

But the best way would be to set an event for the drop down field and then at the event handler you can access the value of the drop down field and update the text field with required value based on the value at dropdown selected.



Active Contributor
0 Kudos

HI ,

numbers of ways to do this thing.

You can trigger event in drop down field and in that event can set the second filed in entity.


Active Contributor
0 Kudos


You can use the set method of the field i, once you select the value in field i the corresponding set method will get triggered then using current entity set the field ii.

At the end of the field i set method you can find something similar to current->set_property( iv_attr_name = 'field i' value = <new> ).

use the new value to findout the corresponding text value and set the value to field ii.