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 ?

Former Member
0 Likes
867

Hi Guys,

In my program i am using Search Help for 2 fields.MBEW-MATNR and MBEW-BWKEY.I used the existing Search Help for these 2 fileds.what's the problem is when i click F4 for MATNR in the Selection Screen.I am not getting the List displaying the MATNR values but i am getting a dialog box with so many Tabs available in this but what i need is just List of Material Numbers when i click F4 on mATNR filed,so can anybody tell me how to do for just displaying the List of Material Numbers?

Thanks,

Gopi.

6 REPLIES 6
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
841

There is a couple ways to do this. Do you want to create a custom search help in SE11, or would you like to code this search help directly in your program.?

Regards,

Rich Heilman

Read only

0 Likes
841

Hi Rich,

Which ever way is the best way for Displaying the List of Material Number's?I need just a list of Material Number's when i click F4 button.thats what i need.so whatever u suggest i will do.

If its better to create a search help then just tell me how to create with steps plzz

Thanks,

Gopi.

Read only

0 Likes
841

I would say to copy an existing search help and go from there. Go to SE11, and enter the MAT0M into the "Search Help" field and select the radiobutton, now choose copy. Enter the new name as ZMAT0M and continue. In this screen, change the "Dialog Type" to "Display Values Immediatly". Now in your program, use this new search help like so.

parameters: p_matnr type MBEW-MATNR matchcode object ZMAT0M.

You will have some performance issues if there is a lot of materials in your system, you may max out at 5000 hits as well.

Regards,

RIch Heilman

Read only

0 Likes
841

Hi Rich,

I am using MBEW Table in this table so in this Table MATNR has MAT1 as Search Help Name.so, shall i use MAT1 or MAT0M?

Thanks,

Gopi.

Read only

0 Likes
841

Which ever you want, the important part is switching the Dialog Type, to display the values immediately.

Regards

Rich Heilman

Read only

tamra_walstrom
Explorer
0 Likes
841

Gopi,

The matnr field uses a collective search help called MAT1. You would need to either modify the search help or assign a new search help in order to get the list you need.

For more information on collective search helps, try this:

<a href="http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee86446011d189700000e8322d00/content.htm">http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee86446011d189700000e8322d00/content.htm</a>