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

about search helps

Former Member
0 Likes
701

Hi gurus,

plz give the information about the search helps nad how to create.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
633

Hi papa,

You have to create a help view if a view with outer join is

needed as selection method of a search help.

The selection method of a search help is either a table or a

view.

If you have to select data from several tables for the search

help, you should generally use a database view as selection

method.

However, a database view always implements an inner join. If

you need a view with outer join for the data selection, you

have to use a help view as selection method.

The creation method for Help view is similar to that of

Database view.

The input help (F4 help) is a standard function of the R/3

System.

The user can display the list of all possible input values

for a screen field with the input help.

This standard process can be completely defined by creating a

searchhelp in the ABAP Dictionary. This search help only has to

be assigned to the screen fields in which they should be

available.

There are two types of search help:

Elementary search helps describe a search path. The elementary

search help must define where the data of the hit list should be

read from (selection method), how the exchange of values

between the screen template and selection method is

implemented

(interface of the search help) and how the online input help

should be defined (online behavior of the search help).

Collective search helps Combine several elementary search

helps. A collective search help thus can offer several

alternative search paths.

Each customer of a carrier or of a travel agency has a

customer number. You want to find a search option for this

customer number.

The user must be offered two different search paths.

1> The user should be able to search for the customer

number using the customer data, such as the name and

address.

2>The user should be able to search for the customer number

using existing customer bookings.

Two elementary search helps SCUSTOM_NAME (for searching

with the customer data) and SCUSTOM_BOOK (for searching

with the existing bookings) are created for the actual search

paths.

These elementary search helps are included in the collective

search help SCUSTOM.

Elementary Search Help SCUSTOM_NAME

This elementary search help should enable you to search for

the customer number using the name and address (street,

city, country).

All this data is contained in table SCUSTOM. Table

SCUSTOM must therefore be selected as the selection

method of the elementary search help.

For creation:

Procedure

1> In the initial screen of the ABAP Dictionary, select object

class Search help, enter the name of the search help and

choose Create. A dialog box appears in which you must

select the type of search help.

2> Select Elementary search help and choose .

The maintenance screen for elementary search helps

appears.

3> Enter an explanatory text in the field Short text.

You can for example find the search help at a later time

using this short text.

4> In the Definition tab page enter the selection method of the

search help. You can enter the name of a table or a view

(database view, projection view or help view) here. If you enter a

table that has a text table, the name of the text table is

automatically entered in the corresponding field.

5> Using the input help (F4 help), select fields of the selection

method as parameter in the Search help parameter area.

Select the fields that should be used in the dialog box for

value selection or in the hit list. If the selection method is a

table that has a text table, both the fields of the table and the

fields of the text table are offered in the

input help.

The data element of the parameter is automatically copied from

the selection method. The data element defines the output

attributes and the F1 help of the parameter in the hit list and in

the dialog box for value selection.

You can assign the parameter another data element. To do

so, select the Mod flag. The Data element field is now ready

for input. Then select a data element with the input help (F4

help). Only data elements whose data type, length and

number of decimal places is the same as those of the

previous data element can be assigned.

This removes the link between the data element of the search

help parameter and the data element of the selection method

field having

the same name. If you cancel the Mod flag, the data

element of the assigned table field is used again.

6> Define the attributes of the search help parameters.

Select the IMP flag if it is an import parameter. Select the

EXP flag if it is an export parameter.

7> Select the dialog type of the search help.

The dialog type defines how the hit list is displayed in the

input help.

8> Save your entries.

A dialog box appears in which you have to assign the search

help a development class.

9> Choose Activate .

Reword some points.

Rgds,

P.Naganjana reddy

3 REPLIES 3
Read only

Former Member
0 Likes
634

Hi papa,

You have to create a help view if a view with outer join is

needed as selection method of a search help.

The selection method of a search help is either a table or a

view.

If you have to select data from several tables for the search

help, you should generally use a database view as selection

method.

However, a database view always implements an inner join. If

you need a view with outer join for the data selection, you

have to use a help view as selection method.

The creation method for Help view is similar to that of

Database view.

The input help (F4 help) is a standard function of the R/3

System.

The user can display the list of all possible input values

for a screen field with the input help.

This standard process can be completely defined by creating a

searchhelp in the ABAP Dictionary. This search help only has to

be assigned to the screen fields in which they should be

available.

There are two types of search help:

Elementary search helps describe a search path. The elementary

search help must define where the data of the hit list should be

read from (selection method), how the exchange of values

between the screen template and selection method is

implemented

(interface of the search help) and how the online input help

should be defined (online behavior of the search help).

Collective search helps Combine several elementary search

helps. A collective search help thus can offer several

alternative search paths.

Each customer of a carrier or of a travel agency has a

customer number. You want to find a search option for this

customer number.

The user must be offered two different search paths.

1> The user should be able to search for the customer

number using the customer data, such as the name and

address.

2>The user should be able to search for the customer number

using existing customer bookings.

Two elementary search helps SCUSTOM_NAME (for searching

with the customer data) and SCUSTOM_BOOK (for searching

with the existing bookings) are created for the actual search

paths.

These elementary search helps are included in the collective

search help SCUSTOM.

Elementary Search Help SCUSTOM_NAME

This elementary search help should enable you to search for

the customer number using the name and address (street,

city, country).

All this data is contained in table SCUSTOM. Table

SCUSTOM must therefore be selected as the selection

method of the elementary search help.

For creation:

Procedure

1> In the initial screen of the ABAP Dictionary, select object

class Search help, enter the name of the search help and

choose Create. A dialog box appears in which you must

select the type of search help.

2> Select Elementary search help and choose .

The maintenance screen for elementary search helps

appears.

3> Enter an explanatory text in the field Short text.

You can for example find the search help at a later time

using this short text.

4> In the Definition tab page enter the selection method of the

search help. You can enter the name of a table or a view

(database view, projection view or help view) here. If you enter a

table that has a text table, the name of the text table is

automatically entered in the corresponding field.

5> Using the input help (F4 help), select fields of the selection

method as parameter in the Search help parameter area.

Select the fields that should be used in the dialog box for

value selection or in the hit list. If the selection method is a

table that has a text table, both the fields of the table and the

fields of the text table are offered in the

input help.

The data element of the parameter is automatically copied from

the selection method. The data element defines the output

attributes and the F1 help of the parameter in the hit list and in

the dialog box for value selection.

You can assign the parameter another data element. To do

so, select the Mod flag. The Data element field is now ready

for input. Then select a data element with the input help (F4

help). Only data elements whose data type, length and

number of decimal places is the same as those of the

previous data element can be assigned.

This removes the link between the data element of the search

help parameter and the data element of the selection method

field having

the same name. If you cancel the Mod flag, the data

element of the assigned table field is used again.

6> Define the attributes of the search help parameters.

Select the IMP flag if it is an import parameter. Select the

EXP flag if it is an export parameter.

7> Select the dialog type of the search help.

The dialog type defines how the hit list is displayed in the

input help.

8> Save your entries.

A dialog box appears in which you have to assign the search

help a development class.

9> Choose Activate .

Reword some points.

Rgds,

P.Naganjana reddy

Read only

Former Member
0 Likes
633

plz give me the answers it is very urgent.

Thanks.

Read only

0 Likes
633

Hi,

There are 3 ways:

1)In the PAI of the screen, add a module Process on value request. For example:

PROCESS AFTER INPUT.

MODULE USER_COMMAND_100.

PROCESS ON VALUE-REQUEST.

FIELD field_name MODULE value_request_for_field_name.

*field_name is the field for which you require search help.

In the Module value_request_for_field_name call this function 'F4IF_INT_TABLE_VALUE_REQUEST'.

2)The above procedure can be used if the field you have defined doesnt have an existing search help.If it already has search help and the field in the screen is taken from the dictionary,then in the attributes,u can check from from dictionary under the dictionary tab.

3)A manual search help can also be created in the se11 transaction by clicking on the search help radio button and giving the table and field name for which search help is required.

Creating Elementary Search Helps

Procedure

In the initial screen of the ABAP Dictionary, select object class Search help, enter the name of the search help and choose Create.

A dialog box appears in which you must select the type of search help.

Select Elementary search help and choose .

The maintenance screen for elementary search helps appears.

Enter an explanatory text in the field Short text.

You can for example find the search help at a later time using this short text.

In the Definition tab page enter the selection method of the search help.

You can enter the name of a table or a view (database view, projection view or help view) here. If you enter a table that has a text table, the name of the text table is automatically entered in the corresponding field.

Using the input help (F4 help), select fields of the selection method as parameter in the Search help parameter area. Select the fields that should be used in the dialog box for value selection or in the hit list.

If the selection method is a table that has a text table, both the fields of the table and the fields of the text table are offered in the input help.

The data element of the parameter is automatically copied from the selection method. The data element defines the output attributes and the F1 help of the parameter in the hit list and in the dialog box for value selection.

You can assign the parameter another data element. To do so, select the Mod flag. The Data element field is now ready for input. Then select a data element with the input help (F4 help). Only data elements whose data type, length and number of decimal places is the same as those of the previous data element can be assigned.

This removes the link between the data element of the search help parameter and the data element of the selection method field having the same name. If you cancel the Mod flag, the data element of the assigned table field is used again.

Define the attributes of the search help parameters.

Select the IMP flag if it is an import parameter. Select the EXP flag if it is an export parameter.

You can define the dialog for the input help with the fields LPos, SPos and SDis. Enter the parameter position in the hit list in LPos. If you enter nothing or the value 0 here, the parameter is not displayed in the hit list.

Enter the parameter position in the dialog box for value selection in SPos. If you enter nothing or the value 0 here, the parameter is not displayed in the dialog box for value selection.

Set the SDis flag if the parameter should be a pure display field in the dialog box for value selection. The user is thus informed that the contents of the parameter restrict the value, but he cannot change this restriction. This makes sense for example when the parameter is an import parameter or if it has a default value.

You can assign the parameter a default value in the Default value field.

Select the dialog type of the search help.

The dialog type defines how the hit list is displayed in the input help.

Save your entries.

A dialog box appears in which you have to assign the search help a development class.

Choose .

Do not forget to link the search help to a screen field. The search help attachment is not part of the search help definition; it is part of the object definition to which the search help is attached.

Result

The search help is activated. You can find information about the activation flow in the activation log, which you can display with Utilities ® Activation log. If errors occurred during activation, the activation log is automatically displayed.

Please check this link on how to create search help.

http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm

1) after creation of search help, you can assign this to database field in change mode of table and double clicking of the field name.

2) in screen field, double click to see the attributes and give your search help there.

Refer this link

http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm

Hope this resolves your query.

Reward all the helpful answers.

Regards