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

Can Search Help User Exits return a user selected value to a screen field?

Hello folks;

I am trying to create a Search Help User Exit (which I have never had the need to do before), for the Material Group field in order to hide old "not to be used" Material Groups and display new Material Groups so users will not select them in the MM01/MM02 screen.

I have been successful so far in filtering the list of material groups displayed on the F4 or dropdown screen at the


But I am unable to take what the user selects from this filtered list and return it to the Material Group field on the screen.

I'm using the Search Help H_T023 and the IMPORT/EXPORT flags are checked on in the Search Help's Definitions tab for field MATKL.

Is there some data manipulation step I am missing? Do I need to code something in the "IF CALLCONTROL-STEP = 'RETURN'" section?

The Search Help User Exit examples by SAP do not say anything about returning a value from the list to the screen for a user selected item.

Can someone point me in the right direction to correct my error.



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 Jun 09, 2010 at 01:48 PM


    Try to add the code below in the beginning of your function.

    CASE callcontrol-step.







    Add a comment
    10|10000 characters needed characters exceeded

    • Scott.

      Event RETURN is not executed because beggining of FM, there is an EXIT command.

      * EXIT immediately, if you do not want to handle this step
        IF callcontrol-step <> 'SELONE'  AND
           callcontrol-step <> 'PRESEL1' AND
           callcontrol-step <> 'SELECT'  AND
           " AND SO ON
           callcontrol-step <> 'DISP'    AND
           callcontrol-step <> 'RETURN'. " <----- INSERT THIS LINE

      best tregards.


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.