Dear all,
I am now writing a program exit for WBS searching. My scenario is that when user click the searching help button in transaction CJI3, the exit will be called to filter out some WBS from the result set according to the authorization of the user.
I have searched some the forum and find some information about the user exits. I have created a user exit with reference from SAP function VS_HP_POSID_EDIT_SEARCH and filter the result successfully.
I face a problem that how can I return the user choose item back to the screen.
My coding for return is as below
ELSEIF callcontrol-step = 'RETURN'.
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
parameter = 'POSID'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
results_tab = results_tab
CHANGING
shlp = shlp
callcontrol = callcontrol
EXCEPTIONS
parameter_unknown = 1
OTHERS = 2.
READ TABLE results_tab INDEX 1.
SET PARAMETER ID 'PRO' FIELD results_tab.
I find that ‘set parameter ID‘ seems not work in my user exit. Do anyone have any ideas?
Many thanks for your help!
Thanks
Sunny