cancel
Showing results for 
Search instead for 
Did you mean: 

passing parameter to an Input Help Component

Former Member
0 Kudos

Hi ,

Someone knows a way to pass parameters or any value to an Input Help Component that is built in a separate WDP application ?

Thanks in advance for your help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You may have to explain more about what you are asking here.

Input help component ? I assume you mean a Webdynpro component here.

How do you want to pass the parameter ?. If it is a cross component communication then the parameters should be part of the interface.

If you are calling a URL then you can pass the URL parameters and get it retrieved in the window start up plug.

Former Member
0 Kudos

Hi Baskaran,

I have a WDP component that implements "".

Then, i use it as search help (F4 function) for an input field in another WDP component.

I would like to use the same " search help component " for many input fields.

In this purpose, I would like to pass a parameter to specify the caller input field.

So, do you know a way to pass parameters to "the search help component" ?

Here is the tutorial that i followed, for the first part.

[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50fd6096-a4b6-2d10-bfa8-bbd9001e0d0e?quicklink=index&overridelayout=true |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50fd6096-a4b6-2d10-bfa8-bbd9001e0d0e?quicklink=index&overridelayout=true ]

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50fd6096-a4b6-2d10-bfa8-bbd9001e0...

Former Member
0 Kudos

You can create a interface node and attributes in provider component. Use these attributes for your business logic inside your Provider component.

In the consumer component do a context mapping to the above interface node from provider component.

There is a interface event VH_WINDOW_OPENED available from the provider component. So create a handler method for this event in your view.

In this event handler set the attributes of the interface node .

Former Member
0 Kudos

Hi Baskaran,

But how to know which field has called the 'component input helper' ?

Thanks.

Former Member
0 Kudos

Pass that information also in the interface_node attribute on_vh_window_opened event handler. In the provider component before you do mget , check this parameter.

Former Member
0 Kudos

Hi,

Thanks a lot for your response.

I find another easier way to know wich is the calling input field.

Here is the code :

DATA lo_listener TYPE REF TO if_wd_value_help_listener.
  DATA lv_attrib_name   Type String.

  lo_listener = WD_THIS->value_help_listener.
  lv_attrib_name = lo_listener->f4_attribute_info-name.

  CASE lv_attrib_name.
    when 'COLOR'.
      TCG66_ATNAM = 'SAP_EHS_1013_008_VALUE'.
    when 'ODOR'.
      TCG66_ATNAM = 'SAP_EHS_1013_010_VALUE'.

....