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 default value

Former Member
0 Likes
5,538

Hello,

I am creating a elementary search help and I want a default value to come for one parameter.

The parameter do not have a parameter ID.

So please advice how can I get this?

Thanks and rgds,

Anand

4 REPLIES 4
Read only

Sougata
Active Contributor
0 Likes
2,179

Hi Anand,

In the "Definition" tab of the Search Help, in the bottom of the screen where you have the table of "Parameter", maintain the last column "Default value" for the parameter you want this default value when the search help is executed. If the default value is a constant, put it within apostrophes e.g. '1000'

Hope this solves this issue.

Cheers,

Sougata.

Read only

Former Member
0 Likes
2,179

Hi,

Try it:

one way:

parameters: p_value  type value_type default '0001' matchcode object z_search_help.

comments: p_value is the parameter name you define on the screen,

value_type is the type for this parameter,

0001 is the default vlaue that you given,

z_seach_help is the elementary search help you created.

other way,

in the definition of the search help for the field, last column in the parameter is the default value, you also can put it there,

Regards,

Chris Gu

Edited by: Gu Chris on Nov 25, 2008 3:51 AM

Read only

Former Member
0 Likes
2,179

Hi Anand,

You can try with the "Search help Exit" for this., as it's custom search help too.

http://help.sap.com/saphelp_nw70/helpdata/EN/cf/21ee52446011d189700000e8322d00/frameset.htm

Sure it will solve you problem.

Regards,

GP

Read only

Former Member
0 Likes
2,179

thank u.