Skip to Content

Custom value list populating wrong text, Also search functionality is not working

Hi Experts,

I referred the following document created by Carsten for Custom value list creation using Application exit GET_ELEMENT_VALUES method.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d031905b-fb12-3110-0490-90a9a453dc97?QuickLink=index&overridelayout=true&58725087880395

Refer to the code snippet attached for the code I added in the GET_ELEMENT_VALUES method.

I am able to see the list when I click on F4 in the BRF+.

Issues:

1. Show search criteria is not working for Custom value list.

When I search for region code "AK", no action is done in BRF+. It is difficult to select one record among 4423 records by scrolling. Please refer to the screen shot attached.

2. There are three records in the list with code "AK"

1. AK ATAKORA

2. AK ALASKA

3. AK AKWA IBOM

When clicked on second record and click on OK button, the value populated in the Decision table cell is "AK(ATAKOARA)". The expected result is "AK(ALASKA). Please refer to the screen shot attached.

Can anyone suggest any solution for any of these issues or please correct me if I went wrong anywhere.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 09, 2015 at 10:33 AM

    The value help gets different parameters from the UI which are not used in your code snippet.

    Please debug the implementation and look into following fields:

    • ITR_VALUE: Optional ABAP range table with selection conditions for the values
    • ITR_TEXT: Optional ABAP range table with selection conditions for the value texts

    I think you have to use these parameters in your search code.

    Best Regards,

    Tobias

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Sowjanya,

      The text table T005U for BLAND(REGIO) has more than one key. So the text for given value of BLAND(REGIO) wont be unique in this table. To get a unique text we need to have LAND1 value too. The solution proposed in the above document, does take the values from both LAND1 and BLAND column to obtain a unique Value-Text pair. Thus it would work as required.This functionality needs to be used and has been used thus far as depicted in the document by most BRF+ customers, thereby no further support is planned to be provided from SAP to change this in any way.

      Regards,

      Dattatreya A Y.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.