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

Search Help Exit: Enabling Search with partial input data

Former Member
0 Likes
665

Hi experts,

I have created a search help with search help exit.

It has one import parameter and few export parameter.

Here import parameter X can take input say for e.g. AB-111232 or AC-119727

If I provide the input as AB and I want all the values starting with AB should be returned i.e AC values should not be returned.

For full key search, it is working fine but how I can achieve partial entry search.

Thanks

Depesh

4 REPLIES 4
Read only

former_member156446
Active Contributor
0 Likes
577

create a range table or of type SELOPT and use that in the select query in your search help exit code...

if input field have * sign eq BT

else.

sign eq EQ.

Read only

Former Member
0 Likes
577

Hi,

If I remember it quite right, you use a changing parameter SHLP TYPE SHLP_DESCR. The SHLP_DESCR structure itself has SELOPT as a table field in it. The input to the importing parameters are all store in this. So, I think this by default will enable search options with pattern or wild card characters.

Read only

Former Member
0 Likes
577

Hi Friend ,

Can you see this Wiki for search help exit with sel option parameter passing using table shlp-selopt.

[http://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterial+Group]

Regards ,

Read only

Former Member
0 Likes
577

Thanks Nitwick.

By default system allows pattern matching for selopt.