Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

call SE11 Search Help through ABAP code.

shalabh_jain
Product and Topic Expert
Product and Topic Expert
0 Likes
7,595

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

1 ACCEPTED SOLUTION
Read only

MaruthiKona217
Participant
5,389

Hi Shalabh,

Please go through the below FM .

DDIF_SHLP_GET

F4IF_FIELD_VALUE_REQUEST

Regards,

Maruthi

Hi Shalabh,

Please go through the below FM .

DDIF_SHLP_GET

F4IF_FIELD_VALUE_REQUEST

Regards,

Maruthi

12 REPLIES 12
Read only

Former Member
0 Likes
5,389

Hi

You can use FM HELP_VALUES_GET_WITH_TABLE Or F4IF_FIELD_VALUE_REQUEST.

Regards

Ajit

Read only

MaruthiKona217
Participant
5,390

Hi Shalabh,

Please go through the below FM .

DDIF_SHLP_GET

F4IF_FIELD_VALUE_REQUEST

Regards,

Maruthi

Read only

shalabh_jain
Product and Topic Expert
Product and Topic Expert
0 Likes
5,389

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

Read only

0 Likes
5,389

 
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.
 
Read only

shalabh_jain
Product and Topic Expert
Product and Topic Expert
0 Likes
5,389

Thanks for your replies.

Kindly help with more suggestions.

Thanks,

Shalabh.

Read only

0 Likes
5,389

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

Read only

shalabh_jain
Product and Topic Expert
Product and Topic Expert
0 Likes
5,389

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

Read only

0 Likes
5,389

OK That's much better explained.

Then after using F4IF_GET_SHLP_DESCR use F4IF_SELECT_VALUES to get the values.

Read only

0 Likes
5,389

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
5,389

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

Read only

JimJim
Explorer
0 Likes
4,600

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

 

Read only

0 Likes
4,578

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)