2011 Oct 31 7:53 AM
Hello,
I have a requirement in which I need to call various search helps created through SE11 in a Function Module. I want the Search help to return the Values which I would use in my Function Module.
Please suggest if there's a standard FM/ Statement to process SE11 Search helps.
Thanks,
Shalabh
2011 Oct 31 8:01 AM
Hi Shalabh,
Please go through the below FM .
DDIF_SHLP_GET
F4IF_FIELD_VALUE_REQUEST
Regards,
Maruthi
Hello,
I have a requirement in which I need to call various search helps created through SE11 in a Function Module. I want the Search help to return the Values which I would use in my Function Module.
Please suggest if there's a standard FM/ Statement to process SE11 Search helps.
Thanks,
Shalabh
2011 Oct 31 8:01 AM
Hi
You can use FM HELP_VALUES_GET_WITH_TABLE Or F4IF_FIELD_VALUE_REQUEST.
Regards
Ajit
2011 Oct 31 8:01 AM
Hi Shalabh,
Please go through the below FM .
DDIF_SHLP_GET
F4IF_FIELD_VALUE_REQUEST
Regards,
Maruthi
2011 Oct 31 8:06 AM
Hi,
Thanks for your replies.
The FMs suggested give information of the fields of the search help.
I require the contents of the search help to be returned.
Thanks,
Shalabh
2011 Oct 31 8:29 AM
TYPE-POOLS: shlp.
DATA: l_shlp TYPE shlp_descr_t,
l_wa TYPE ddshiface,
l_bukrs TYPE char50,
l_repid TYPE syrepid,
L_DYNNR TYPE SYDYNNR,
l_ret_val LIKE ddshretval OCCURS 0 WITH HEADER LINE,
l_t_fields TYPE dynpread OCCURS 0 WITH HEADER LINE.
PARAMETERS: p_bukrs TYPE pa0001-bukrs,
p_werks TYPE pa0001-werks,
p_btrtl TYPE pa0001-btrtl.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.
FIELD-SYMBOLS <fs> TYPE ddshiface.
l_repid = sy-repid.
L_DYNNR = SY-DYNNR.
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = 'H_T500P'
* SHLPTYPE = 'SH'
IMPORTING
shlp = l_shlp
.
LOOP AT l_shlp-interface INTO l_wa.
IF l_wa-shlpfield EQ 'BUKRS'.
l_wa-valtabname = 'PA0001'.
l_wa-valfield = 'BUKRS'.
ELSEIF l_wa-shlpfield EQ 'PERSA'.
l_wa-valtabname = 'PA0001'.
l_wa-valfield = 'WERKS'.
ENDIF.
MODIFY l_shlp-interface FROM l_wa.
ENDLOOP.
* Process standard searchhelp
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = l_shlp
TABLES
return_values = l_ret_val.
2011 Oct 31 9:08 AM
Thanks for your replies.
Kindly help with more suggestions.
Thanks,
Shalabh.
2011 Oct 31 9:13 AM
More suggestions for what? If you want to show an SE11 search help and get the values picked by the user you need to use this 2 FM. It's as simple as that.
F4IF_GET_SHLP_DESCR
F4IF_START_VALUE_REQUEST
2011 Oct 31 10:12 AM
These FMs help in displaying the Search Help on screen.
I simply want a backend logic that executes an SE11 search help in the background and returns a table of the search help contents.
Thanks,
Shalabh
2011 Oct 31 10:24 AM
OK That's much better explained.
Then after using F4IF_GET_SHLP_DESCR use F4IF_SELECT_VALUES to get the values.
2011 Oct 31 10:38 AM
Please note that if your execuitng the search help with out any values passed then it might lead to performance issues. If you culd explain why you are doing this then may be you can get a better suggestion in forums here.
Kesav
2011 Oct 31 9:14 AM
I want the Search help to return the Values which I would use in my Function Module
Hi,
It cannot return all the values but can only return for an importing parameter. Please explain your query clearly such how will you pass the importing parameters to search help etc.
Kesav
2024 Oct 10 4:14 AM
Hi,
I'm new to abap and i have the same scenario. Have you resolved your concern? if so, can I ask for a solution. I want to get the return values from my elementary search help created in se11. Other FM's only allow to show the search help itself but I want to get multiple return values. Please help
2024 Oct 10 4:59 AM - edited 2024 Oct 10 5:02 AM
Didn't you find this answer during your search?
(If the answers aren't clear enough for you or are no longer valid, better ask your own question in Q&A)
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |