cancel
Showing results for 
Search instead for 
Did you mean: 

Autocomplete

Former Member
0 Kudos

Hi all,

Is there Autocomplete functionality in WD ABAP?. Example : I want autocomplete functionality for Input fields, when iam entering the input field values manually after entering first three characters i need to see the values corresponds to entered three characters below the input field(Like we have an option in google search).

Can we do this?

Thanks in advance

Kishore

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

As already mentioned via a quote from me, this exact functionality you describe will be available next year as part of NetWeaver 7.0 Enhancement Package 2. It uses data dictionary search helps behind the scenes (called via AJAX) to retrieve the matching values. My suggestion for 7.0/7.01 is to for now use the normal F4 DDic Search Help and later when you can go to 7.02 you can activate the SuggestValues property on this inputField and have the autocomplete as you type based upon the same DDic Search Help.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Kishore,

i think for this type of functionality you can use search help option .

u can use eithe dictionary search help option or ovs.

for more detail go thru this thread

Former Member
0 Kudos

Hi,

Check out this link for the same

Regarrds,

Lekha.

Former Member
0 Kudos

hi

I want autocomplete functionality for Input fields

this functionality is not possible ,

check for the THOMAS reply

The browser has a field input history mechanism, however it is disabled on purpose in Web Dynpro because the way that the browsers store this information is insecure.

In NetWeaver 7.02 we will introduce the concept of SuggestValues. This is not history, but intellegent value suggestion based upon domain or search help values. It completes as you type using an AJAX call back to the server to retrieve the values.

but indeed u can apply the SEARCH help otions for ur input field UI

refer the SAP online help

http://help.sap.com/SAPHELP_ERP2005/helpdata/EN/3d/e53642e2a3ab04e10000000a1550b0/content.htm

eg OVS

For OVS Search help refer Standard Component : Demo_value_help.

Now to attach the OVS Search help to Select options use this :


wd_this->m_handler->add_selection_field(
i_id = 'S_CARR_ID'
it_result = lt_range_table
i_read_only = read_only
i_obligatory = 'X'
I_NO_INTERVALS = 'X'
I_NO_EXTENSION = 'X'
I_VALUE_HELP_ID = 'Z3AF_HCP_SEARCHHELP'
I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_OVS
).
I_VALUE_HELP_ID -- Give name of OVS Search help here.('Z3AF_HCP_SEARCHHELP')
I_VALUE_HELP_TYPE requires a string, various attributes of IF_WD_VALUE_HELP_HANDLER which can be used :
Various options for i_value_help_type are :
CO_PREFIX_SEARCHHELP
CO_PREFIX_OVS
CO_PREFIX_APPLDEV
CO_PREFIX_NONE
CO_PREFIX_AUTO

rgds,

amit