Hi Alok,
Values in dropdown field are set using keys.
You have to fetch the business partner and then the relevant key n the dropdown table.
Use that relevant key to set the value in dropdown field. Once the value is set, the field will automatically be bold using the above htm code.
DATA: lr_entity TYPE REF TO if_bol_bo_property_access.
lr_entity ?= me->typed_context->btpricingset->collection_wrapper->get_current( ).
lr_entity->set_property_as_string(
EXPORTING
iv_attr_name = lv_fieldname
iv_value = lv_key_of_dropdown
).
Do share the business role by which you are testing for exact answer.
Let me know for further queries
Thanks,
Ritu