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: 

search help - more than one default ?

Former Member
0 Kudos

Hallo Developer,

I have a problem with a search help even built.

It should be present a default value in the search help, for who however can be changed.

A customer should be valid.

The customer can have different Stati.

Some Stati mean, which is valid the customer, some stati mean, which are not valid the customer.

The field ' default ' in the search help cannot be used therefore.

Questions:

1. Do I have to write a search help exit?

2. Do I have to copy the data selectio in the search help exit and indicate the default values here?

Can these be changed then in the surface?

3. Can I indicate default values in the range ' PRESEL '?

I hope someone have a solution for my problem.

1 REPLY 1

Former Member
0 Kudos

I have found an answer myself.

In a Serchhelp- Exit :

data: ls_SHLP type SHLP_DESCR.

data: lt_SELOPT type DDSHSELOPS.

data: ls_SELOPT like line of lt_SELOPT.

*"----


  • STEP PRESEL (Enter selection conditions)

*"----


IF callcontrol-step = 'PRESEL'.

  • PERFORM PRESEL ..........

ls_SHLP = SHLP.

ls_selopt-SHLPNAME = '/DKVES/KP_BP_CIC_ALL'.

ls_selopt-SHLPFIELD = 'ATTRIB_2'.

ls_selopt-SIGN = 'I'.

ls_selopt-option = 'EQ'.

ls_selopt-low = 'BK'.

ls_selopt-high = 'NK'.

append ls_selopt to shlp-selopt.

ls_selopt-low = 'RE'.

ls_selopt-high = ''.

append ls_selopt to shlp-selopt.