cancel
Showing results for 
Search instead for 
Did you mean: 

How to create generic search help in wd abap

Former Member
0 Kudos

Hi experts,

How to create generic search help in wd abap.

Regards...

Arun.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

if you want to make your result list dependent on some factors in your application,

but you have a certain function module you've created, than you should use OVS,

in the case structure you receive in the ovs event handler,

set

when if_wd_ovs=>co_phase_2 .

wd_assist->get_value_list( exporting param1 = ...

param2 = ...

....

importing result_table = table ).

ovs_callback_object->set_output_table( output = table ).

when if_wd_ovs=>co_phase_3.

use the generated code to set the attribute in the context

grtz,

Koen

Answers (3)

Answers (3)

Former Member
0 Kudos

There are many types of search helps possible in wd abap. What exactly is your requirement? What do you mean by 'generic'?

Regards

Nithya

Former Member
0 Kudos

nithya, can u list out the kind of search help that r possible in wd abap.

Regards...

Arun.

Message was edited by:

Arun kumar

Former Member
0 Kudos

Hi Arun,

You have the standard search help where you define it in se11 and simply call it in the web dynpro component. Then you have OVS, freely programmed search helps, value sets. It entirely depends on your requirement. What do you want to do?

Please refer to the example component DEMO_VALUE_HELP for an idea of various search helps.

Regards

Nithya

Former Member
0 Kudos

Hi Arun,

For creating search helps, you need to go to transaction se11 and create one there. In WD ABAP, you need to link this search help to your attribute then.

Regards,

Neha

<i><b>PS:Reward if helpful</b></i>

Former Member
0 Kudos

neha, u r rite. but i want a generic search help.

If possible can u send me a step by step process for creating a generic search help.

Regards..

Arun.

Former Member
0 Kudos

Hi Arun,

Following links have step by step procedures for creating search helps and other related topics.

<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm">ABAP Dictionary Search Help for WD</a>

<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/9b/c51c42735b5133e10000000a155106/content.htm">Input Help in WD ABAP</a>

<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm">Search Helps</a>

<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm">Creating Elementary Search Help</a>

Regards,

Neha

<i><b>PS:Reward if helpful</b></i>

former_member515618
Active Participant
0 Kudos

We can call search helps dynamically by using methods in class CL_WDR_VALUE_HELP_HANDLER.

Please refer the the code snippet below.

cl_view ?= wd_view. Referenc to the view.

  • Call the data base saerch help.

CALL METHOD cl_wdr_value_help_handler=>handle_dd_shlp

EXPORTING

context_element = Referenc to the context.

context_attribute = Context attribute assigned to input field

shlp_name = Data base search help name

is_read_only = Mode

uielementid = Input field name

view = cl_view.

To the static method handle_dd_shlp, we pass the view name, context node, context elemet, name of the input field and the name of the search help.

we can provide a search icon on the view and upon triggering that action, we can call the above code to set the database search help at runtime.

On selecting a value on the search help hitlits the value is coppied into the 'Input field' passed on method.

former_member515618
Active Participant
0 Kudos

Can you let us know, what do you mean by generic search help.