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 passing in input values

Former Member
0 Likes
2,439

Hi,

I have created a search help that I have attached to a screen field. The problem I am having is that I need to pass context information (i.e. the contents of two other screen fields) into this search help to limit the result set. I have set these two fields to be import parameters for the search help but they are not being pulled through. The fields on the screen are based on the table fields that I have in my search help.

Any suggestions? Thanks in advance,

Kate

9 REPLIES 9
Read only

Former Member
0 Likes
1,433

You can use this FM instead -:)

<b>

F4IF_INT_TABLE_VALUE_REQUEST

</b>

You pass the internal table with the data you want to show.

Greetings,

Blag.

Read only

Former Member
0 Likes
1,433

Dear Kate,

If the data element used in the search help and in the screen are same then there shd not be any problem.

Please test ur search help first. Is it working fine.

Regards,

Vikas

Read only

Former Member
0 Likes
1,433

The data elements of the fields on the screen that I need to pass to the search help and the data elements of the fields in the search help are identical, but the data does not pass through!

Read only

Former Member
1,433

Hi

You should update your search help inserting the set/get parameters for field you need to move the data from your screen.

In your screen you set this paramters before calling search help.

So you do the SET PARAMETER in your screen and the system automatically will do the GET PARAMETER in serach help.

Another solution can be:

Update your search hel in order to set the fields you need to move as IMPORT parameters.

By SE11 create a new Z-STRUCTURE with all IMPORT fields of your search help.

In this structure you assign your search help as search help of the field you need to use it.

After use this structure to draw your screen.

Max

Read only

Former Member
0 Likes
1,433

Kate

Have you tested your search help? Pass the values in the first 2 parameters and check whether those values are getting passed in the testing of search help it self.

There might be problem with search help itself.

Rg,

VM

Read only

Former Member
0 Likes
1,433

Use this

READ TABLE is_shlp_tab-SELOPT INDEX n INTO is_SELOPT.

instead of reading the is_interface internal table.

The is_interface has only the information of the first

parameter in the search help. Hope this helps.

Read only

Former Member
0 Likes
1,433

Max,

I am calling the search help as a matchcode attached to the screen field so where should I set the parameter? I have tried this AT-SELECTION SCREEN on the field but this does not work.

VM,

I have tested my search help in the test environment and this works fine when I type in the values. I need them to be passed from the program context info...

Thanks.

Read only

0 Likes
1,433

Is this a report selection screen where the values entered in 2 fields will be used by 3rd field for Search help.

If you are developing custom search help only for this purpose, then at evet 'AT SELECTION-SCREEN ON VALUE REQUEST' get the first 2 field values. Export it to memory.

Read the same in your search help using Import and you should be able to use these values while populating data for the custom search help.

Read only

0 Likes
1,433

There is a bug in the SAP custom search help exits. Did you created your own search ehlp exit? If true, then you should probably use the code that I referred before. If you are not using any search help exits then it is something different. Thaanks