Skip to Content

Custom field value in serarch result

Jan 11 at 03:02 AM


avatar image

Hello, we add custom field in AET tool to ORDERADM_H, value for this field we add in dropdown list.

But in serch result list it shows not a 'description', it column show 'input code'.

How can i see in search result list, description for this field not a input code.

custom-field.jpg (110.4 kB)
serch-result.jpg (98.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ricky J Jan 11 at 05:25 AM

Hi Anton,

You will have take the corresponding description in Search Result view. Go to the Search Result view -> GET_XXX method of that attribute.

You will find the below code.

      value = if_bsp_model_util~convert_to_string( data_ref = dref
                                  attribute_path = attribute_path ).

* Pass the corresponding description to 'value' here
CATCH cx_bsp_conv_illegal_ref.

There, 'value' will have the key 1 ( as per the screenshot ). Take the key and get the corresponding description (Telephone call ) and pass it back to 'value'.


Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thank you Ricky for your answer, but i don't have enough ABAP skill to do this, i thought that exist metod to fix it without abap.

Anton Malaiko


Usually, if we are going to use a drop down list .. we will not take the complete length in to consideration to create the AET field. We will consider the length for key and the data will be maintained in a custom table with Key & Description. This will save us from database length restrictions when we try to create any other new fields in future. But, you have already taken length (20) and created the field. So, you can use the description for both input code and description now.

Input code = Telephone call

Description = Telephone call

But, this is not at all a recommended way. As there are only 4 values, you can try that now, if you want. Otherwise, get the help from ABAPer.