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

Type-ahead in search help in ABAP code

former_member246634
Active Participant
2,993

Hi,

I've got two parameters on the selection screen in my report:

  • P_VBELN matchcode object Z_SH_VBELN.
  • P_KUNWE

There is a custom search help with custom database view assigned to P_VBELN field. Now I want to display possible values for P_KUNWE for select statement just like below:

SELECT p~kunn2, a~name1, a~name2, a~sortl
FROM KNVP AS p   
INNER JOIN vbak AS k
ON p~kunnr = k~kunnr
INNER JOIN kna1 AS a
ON a~kunnr = p~kunn2
WHERE k~vbeln = p_vbeln
AND p~vtweg = '00'
AND p~parvw = 'WE'

And I want this search help for P_KUNWE to display values based on P_VBELN and it should allow type-ahead, dynamic filtering, filtering over all fields, whatever you want to call it, just like you can set it in search help definition:

I know I can use FM F4IF_INT_TABLE_VALUE_REQUEST to display search help based on internal table, but I need that multi-column text search effect.


Thank you for your help.

1 ACCEPTED SOLUTION
Read only

former_member246634
Active Participant
0 Likes
2,183

Issue solved.

I've assigned memory parameter BLN on selection screen and used it in my custom search help:

4 REPLIES 4
Read only

Muthu_raja
Active Participant
0 Likes
2,183

Hi, Did you try with Search help exit?? I think it will help you in this case.

Read only

former_member246634
Active Participant
0 Likes
2,183

So I should create custom s-help in SE11 and new function module for s-help exit? How should VBELN be passed to this module?

Read only

franois_henrotte
Active Contributor
0 Likes
2,183

You have several steps to do :

1) create a SH view with all the fields you need for selecting and displaying

2) be sure that the SH uses the view and that the field VBELN is a parameter of the SH

3) be sure to define the parameter on selection-screen with the same data element as VBELN in the view

No need for a SH exit, the mapping will be done automagically if the data element is the same.

Read only

former_member246634
Active Participant
0 Likes
2,184

Issue solved.

I've assigned memory parameter BLN on selection screen and used it in my custom search help: