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
2,072

Hi all,

how to assign search help on field level(both abap & ddic), data element level ,domain level.

thanx

5 REPLIES 5
Read only

Former Member
0 Likes
1,069

Hi Anuj,

Have a look at below links:

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

I hope it helps.

For More details,you can check the given link...

http://www.saptechnical.com/Tutorials/ABAP/SearchHelp/page1.htm

Kind Regards

Yogesh

Please mark all the helpful answers

Edited by: Yogesh Gupta on May 26, 2008 1:03 PM

Read only

Former Member
0 Likes
1,069

hi,

if you want to give search help on domain level you can.

you can give value table at domain level . with help of that you will find search help in each & every table field where that domain is used.

rewards if helpfull.

Read only

Former Member
0 Likes
1,069

hi,

if you want to give search help on domain level you can.

you can give value table at domain level . with help of that you will find search help in each & every table field where that domain is used.

rewards if helpfull.

Read only

Former Member
0 Likes
1,069

Hi,

Attaching to Data Elements

The search help can be used by all screen fields that refer to the data element. All the fields with the same meaning therefore have an identical input help.

When the search help is attached to a data element, an export parameter of the search help must be assigned to the data element. If the user selects a line of the hit list in the input help, the contents of this parameter are returned to the corresponding screen field. It is not possible to return several values when the search help is attached to a data element.

Table SPFLI (flight schedule) contains the field DISTID for the unit (kilometers, miles) of the flight distance specified in the field DISTANCE. The field DISTID refers to the data element S_DISTID. The elementary search help S_UNIT_DIST (search for distance units) is attached to this data element . The export parameter MSEHI of the search help is assigned to the data element.

The search help S_UNIT_DIST is therefore available for the field DISTID when flight data is maintained in table SPFLI. If the user selects a line of the hit list in the input help, the contents of parameter MSEHI are returned to the screen field.

Attaching to Check Tables

If a field has a check table, the set of all possible entries to the field is defined by the contents of this check table (see Foreign Keys). The contents of the key fields of the check table are therefore offered automatically in the input help. If a text table is defined for the check table, the contents of the first text field of this text table is also displayed in the useru2019s logon language.

This input help coming from the check table can be further edited by assigning a search help to the check table. The assigned search help can then be used by all screen fields that are checked against the table.

If a search help is attached to a check table, it should display the data contained in this check table. In this case, the check table itself or a view on this check table must be given as the selection method of the search help.

When a search help is assigned to a check table, there must be an assignment between the key fields of the check table and the parameters of the search help. If an export parameter of the search help is assigned to a key field of the check table, the contents of this parameter are returned to the corresponding screen field as soon as the user has selected a line of the hit list in the input help. If an import parameter of the search help is assigned to a key field of the check table, the field contents are used for the value selection (see Value Transport for the Input Help).

The field CONNID (number of the flight connection) of table SFLIGHT (flights) is checked against table SPFLI (flight schedule). The elementary search help H_SPFLI (search for flights by cities of departure and arrival) is allocated to table SPFLI. This search help is available for the field CONNID when data is entered in table SFLIGHT.

Search help H_SPFLI does not contain a client field since for the input help the selection is always made in the logon client of the user.

Attaching to a Table Field or Structure Field

The search help can be used by all screen fields that refer to the table field or structure field. The search help parameters and the fields of the table or structure must be assigned to one other in this type of attachment.

If an export parameter of the search help is assigned to a table field, the contents of this parameter are returned to the corresponding screen field as soon as the user has selected a line of the hit list in the input help. If an import parameter of the search help is assigned to a table field, the field contents are used for the value selection (see Value Transport for the Input Help).

Normally some parameters of the search help cannot be assigned to a table field. The assignment is thus left open for some search help parameters. A constant or any other field that is searched for in the module pool when the input help is called can also be assigned to a search help parameter.

The search help STRAVELAG_NAME permits you to search for the number of a travel agency using supplementary information about the agency (name, city, country). This search help should be available to all screen fields that reference field AGENCYNUM (number of the agency) in table STRAVELAG. The search help is therefore directly attached to the field AGENCYNUM of table STRAVELAG. All the parameters of the search help can be allocated to corresponding table fields.

Attaching to Screen Fields

A search help can be directly assigned to a screen field. In this case, the search help is only available for this screen. If the same field is used on several screens, the search help should generally be attached to the referenced table field or structure field (see Attaching to Table Fields).

You can attach a search help directly to a screen in the following ways.

The name of the search help must be entered in the Screen Painter in the Attributes for the field in the field Search help.

The name of the search help can be defined for selection screens in ABAP reports in the PARAMETERS or SELECT-OPTIONS statement directly following the supplement AS SEARCH PATTERN.

In both cases this assigns the first parameter of the search help to the screen field. As a result, only a value from the hit list can be returned to the screen template.

Reward If Helpfull,

Naresh.

Read only

Former Member
0 Likes
1,069

thanx