Can Search Help User Exits return a user selected value to a screen field?
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
CALLCONTROL-STEP = 'PRESEL1' level.
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.