Skip to Content
avatar image
Former Member

Set Default value for a pick list

Hi all , In WEB UI screen I have a a drop down list which have values as below keys

1 very high

3 high

5 medium

7 low

9 "blank line"

Attribute name is " PRIORITY" and is an attribute of BTADMINH.

currently when page loads the default value is Low, and i would like to change it to medium.

Your help will be much appreciated

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 19 at 09:54 AM

    Solution:

    Courtesy :Ricky J

    DATA: lr_entity TYPE REF TO cl_crm_bol_entity,

    lr_priority TYPE REF TO cl_crm_bol_entity.
    
    lr_entity ?= me->typed_context->btadminh->collection_wrapper->get_current( ).
    lr_priority ?= lr_entity->get_related_entity( iv_relation_name = 'BTHeaderActivityExt' ).
    lr_priority->set_property( iv_attr_name = 'PRIORITY' iv_value = 5 ).
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 12 at 11:32 AM

    Hi Ligin,

    Please follow the steps mentioned in https://blogs.sap.com/2015/04/22/default-values-in-ui-search/

    Best Regards,

    Varun Agarwal

    Add comment
    10|10000 characters needed characters exceeded