Application Development 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: 

SAP Search Help - Exact Value Search Option ?

Former Member
0 Kudos

Hi All,

I am trying to create an additional search help for Material number to get the values based on the old material number (MARA-BISMT).

I added a new Search help and appended it to MAT1_S search help, I am now able to get the values based on old material number.

I am not able to achieve one requirement (i.e), The search is adding a * automatically, but my uses know the exact old material number, because of the * addition its returning unwanted extra values.

Here the Old material number for which I am searching the material number is "UHI-3" which my users know completely.

But the system is adding a '*' at the end and searching for all possible values, which I do not need as the users know the exact value of old material number and only one entry must be returned, instead I am getting 2 values now.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

You could use a seach-help exit (attached to your search help) to overide selection criteria.

(Copy F4IF_SHLP_EXIT_EXAMPLE in a function group in your namespace. Attach it to your search help. For example: in SELECT step, change the selection criteria, but don't change the step value so SAP will execute the database selection with modified criteria)

4 REPLIES 4

JL23
Active Contributor
0 Kudos

does this only happen to your new defined search help when you use the quick selection or as well to an existing search help? E.g . if you enter =A.UHI-3

Former Member
0 Kudos

Hi Jürgen,

Thanks for the reply.

This is happening in the existing search help (standard) as well, This is a standard behavior, I would need a way to override it for the Z-Search help that we created.

Thanks

raymond_giuseppi
Active Contributor
0 Kudos

You could use a seach-help exit (attached to your search help) to overide selection criteria.

(Copy F4IF_SHLP_EXIT_EXAMPLE in a function group in your namespace. Attach it to your search help. For example: in SELECT step, change the selection criteria, but don't change the step value so SAP will execute the database selection with modified criteria)

0 Kudos

Hi Raymond,

I was able to achieve this using the search help exit,

The values was coming in the field SHLP-SELOPT and based on the required field, I replaced the * with space.

Also the Option was changed to EQ from CP.

Thanks