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
525

How to arrange search help for parameter Field? What r the ways?

1 ACCEPTED SOLUTION
Read only

prasanth_kasturi
Active Contributor
0 Likes
506

hi,

use the addition matchcode object

PARAMETERS p_carrid TYPE s_carr_id

MATCHCODE OBJECT demo_f4_de.

and in the match code object give your search help name

Addition 3

... MATCHCODE OBJECT search_help

Effect

This addition links the input field of the parameter to a search help search_help from the ABAP Dictionary. The name of the search help must be entered directly. For the input field of the parameter on the selection screen, the input help key is displayed. When the input help (F4) is requested, the user is displayed the hit list from the search help. When an entry is selected, the respective value is placed into the input field. If no search help for the specified name exists in the ABAP Dictionary, a message is displayed in the status line when the input help is requested.

The addition MATCHCODE OBJECT cannot be used together with the additions AS CHECKBOX or RADIOBUTTON.

Note

The predecessors of search helps in the ABAP Dictionary were socalled matchcode objects. This is why you have the name MATCHCODE OBJECT for this addition. Matchcode objects that have not yet been replaced by search helps continue to be supported by this addition.

Example

Linking the parameter p_carrid with a suitable search help. When you choose the input help on the selection screen, a list with the names of the airline carriers is displayed. If a name is selected, the corresponding abbreviation is placed in the input field.

PARAMETERS p_carrid TYPE s_carr_id

MATCHCODE OBJECT demo_f4_de.

REWARD IF HELPFUL

PRASANTH

4 REPLIES 4
Read only

prasanth_kasturi
Active Contributor
0 Likes
507

hi,

use the addition matchcode object

PARAMETERS p_carrid TYPE s_carr_id

MATCHCODE OBJECT demo_f4_de.

and in the match code object give your search help name

Addition 3

... MATCHCODE OBJECT search_help

Effect

This addition links the input field of the parameter to a search help search_help from the ABAP Dictionary. The name of the search help must be entered directly. For the input field of the parameter on the selection screen, the input help key is displayed. When the input help (F4) is requested, the user is displayed the hit list from the search help. When an entry is selected, the respective value is placed into the input field. If no search help for the specified name exists in the ABAP Dictionary, a message is displayed in the status line when the input help is requested.

The addition MATCHCODE OBJECT cannot be used together with the additions AS CHECKBOX or RADIOBUTTON.

Note

The predecessors of search helps in the ABAP Dictionary were socalled matchcode objects. This is why you have the name MATCHCODE OBJECT for this addition. Matchcode objects that have not yet been replaced by search helps continue to be supported by this addition.

Example

Linking the parameter p_carrid with a suitable search help. When you choose the input help on the selection screen, a list with the names of the airline carriers is displayed. If a name is selected, the corresponding abbreviation is placed in the input field.

PARAMETERS p_carrid TYPE s_carr_id

MATCHCODE OBJECT demo_f4_de.

REWARD IF HELPFUL

PRASANTH

Read only

Former Member
0 Likes
506

hi ,

in addition to the above msg i.e using matchcode object,

u can use at selection-screen on value request for <para>.

u write the logic in this for f4 help.

use FM f4if_int_table_value_request.

ex:

at selection-screen on value-request for p_kunnr.

select kunnr

from vbak

into table i_kunnr.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'SOLD-TO-PARTY'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'P_KUNNR'

value_org = 'S'

tables

value_tab = i_kunnr

exceptions

parameter_error = 1

no_values_found = 2

others = 3.

if sy-subrc <> 0.

endif.

reward if useful,

regards,

chandu

Read only

Former Member
0 Likes
506

Hi,

You can also use the following function module to assign the search help to your field.

F4IF_INT_TABLE_VALUE_REQUEST.

Hope this would help you.

Regards,

Keerthi

Read only

Former Member
0 Likes
506

Hi,

PARAMETER: s_taxim FOR mara-taxim MATCHCODE OBJECT Z_Searchhelp.

You need to create a search help for the object through SE11.

Assign the selection method as table name

and one import parameter and one export parameter with 1 and 2 position and take care that your Ztable should have the data.

Regards

Kannaiah