Skip to Content
author's profile photo Former Member
Former Member

Search Help Exit - problems returning values

Hi,

I have created a new Search Help that uses the search help exit.

In this exit, I have done my own data selection in SELECT event. Everything works ok, I populate the corresponding data into the RECORD_TAB parameter, and it's displayed on the screen using DISP event (when RECORD_TAB has more than 1 row).

But, when the selection data returns only one row, it's not displayed on the screen nor returned back to the Dynpro.

Looking into Function Module F4IF_SHLP_EXIT_EXAMPLE, I saw that in DISP event, when RECORD_TAB has only one row, I have to set the next event to RETURN.

I have done this, but instead of returning the selected row, it goes back to the selection screen of the search help (where you can filter the displayed data).

Anyone knows why?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2005 at 02:59 PM

    I found this comment in the documentation in case it helps you:

    6. RETURN (usually as return value for the next timepoint)

    The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.

    It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). <b>However, you should note that the process will then depend on whether a value was entered manually or with an input help.</b>

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi, thanks for your response.

      While debuggin onto Standard SAP after calling my Search Help exit, I saw that it's checking the number of rows in RECORD_TAB when the DISP event is thrown.

      If this is the case, Standard SAP changes the next step (event) to RETURN.

      I have saw that the problem occurs when the user has set the flag "Only return value directly in only one hit" on menu HELP --> SETTINGS --> F4 Help. I have done a test with this flag cleared, and if my selection sets RECORD_TAB with only one row, this data is displayed on the screen, and if I select the row, it's returned correctly to the Dynpro.

      So, I suppose that the problem is with RETURN event processed by SAP.

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.