2010 Jun 29 5:23 PM
Hi,
Is it possible to execute a search help internally (not in foreground) and get the result of the search help in an internal table. for eg. I have a custom elementary search help with a search help exit. Is there any program or standard function module which will allow me to pass the search help name to it and would return the result of the search help in an internal table?
Regards,
Pratiksha.
2010 Jun 30 2:06 PM
Hi Pratiksha,
'F4IF_SELECT_VALUES' function module will serve your requirement.
Before calling this function module call F4IF_GET_SHLP_DESCR to get the description of the search help you want to use.
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = c_shlp_menu "Custom Search help
IMPORTING
shlp = l_shlp.
Pass search criteria in l_shlp, then call 'F4IF_SELECT_VALUES' function module.
CALL FUNCTION 'F4IF_SELECT_VALUES'
EXPORTING
shlp = l_shlp
CALL_SHLP_EXIT = 'X'
TABLES
RETURN_TAB = l_retval
l_retval will contain all the values returned by the search help.
regards,
Shradhanjali
2010 Jun 30 10:32 AM
Hello,
if u want this thing u can do one thing create a View for that table column that u want for search help and then create a search help by using same view . or in program u can fetch data in internal table from that particular view.
i hope this will solve ur problem
thanks.
Girish
2010 Jun 30 10:38 AM
Hi,
You can use the below FM:
F4IF_INT_TABLE_VALUE_REQUEST
F4IF_FIELD_VALUE_REQUEST
For more details on the parameters to be passed, Please check the FM documentation.
Hope this helps
Regards
Shiva
2010 Jun 30 2:06 PM
Hi Pratiksha,
'F4IF_SELECT_VALUES' function module will serve your requirement.
Before calling this function module call F4IF_GET_SHLP_DESCR to get the description of the search help you want to use.
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = c_shlp_menu "Custom Search help
IMPORTING
shlp = l_shlp.
Pass search criteria in l_shlp, then call 'F4IF_SELECT_VALUES' function module.
CALL FUNCTION 'F4IF_SELECT_VALUES'
EXPORTING
shlp = l_shlp
CALL_SHLP_EXIT = 'X'
TABLES
RETURN_TAB = l_retval
l_retval will contain all the values returned by the search help.
regards,
Shradhanjali