Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 09, 2010 at 01:48 PM


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

    CASE callcontrol-step.







    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      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.