cancel
Showing results for 
Search instead for 
Did you mean: 

Elementary search help for a dynamically created attribute

Former Member
0 Kudos

Hi All,

I am working on webdynpro nd there is a requirement to create dynamic Input field and its corresponding Dynamic attributes to be binded.

But the issue is we need to set the Existing Elementary search help for the new attribute.

Below is the code i used to acheve this.

It is creating the attribute but the seach help is not assigned.

Anyone pls Help

Thanks & regards

Vipin V

lw_c = wd_this->gw_dsttyp. "will be incremented each time

    CONCATENATE 'F' lw_c INTO lw_attr.



    ls_attribute-name = lw_attr.

    ls_attribute-type_name = 'EHHSSS_INC_BASIC_INFO_ALL-ZZDST_AREA'.

    ls_attribute-value_help_id = 'ZEHFND_ELM_LCN_KEY_DA'.        "Elementary search help name

    ls_attribute-value_help_mode = '0'.



    CALL METHOD lo_dst_area_node_info->add_attribute

      EXPORTING

        attribute_info = ls_attribute.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vipin,

ls_attribute-value_help_mode = '0'. Does not look good to me, I think it should be anything except for '0' or '1'.


0 = Automatic

1 = No input help


we need the value for dictionary search help. could you please try with '2'?


Thanks

Mohit

Former Member
0 Kudos

Hi Mohit,

i have achieved it using this.

     CALL METHOD lo_dst_area_node_info->set_attribute_value_help

      EXPORTING

        name            = lw_attr " Your attribute Name

        value_help_mode = '121' " Valid value help mode

        value_help      = 'ZEHFND_ELM_LCN_KEY_DA'. " Search help name


Thank You..

Vipin V