cancel
Showing results for 
Search instead for 
Did you mean: 

to populate two inputbox based on one f4 search help

Former Member
0 Kudos

Hi,

I have two input box where I need to use a search help for the first input box where I will get the user id but the second input box which is read only should also be populated with the user name from the same database table of the search help simultaneously. I tried using onenter method of the first input box but the problem here is I am gettin the name only after clicking enter button.. I don't need that.. I need it to get populated that instant when the user id is populated.

I hope my writing is not more confusing that I am right now.

Any help will be really appreciated.

Thanks and Regards

Tenzin

Accepted Solutions (0)

Answers (2)

Answers (2)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Thomas, nicely explained this with the help of dictionary search helps. Have a look

Abhi

former_member402443
Contributor
0 Kudos

Hi Tenzin,

To achieve this functionality you can go for the OVS Search help.

Please check the WDA Component - WDR_TEST_OVS in your system.

When you run this application then check the link - Include-Struktur. Here they will show an example that you want.

Hopes this will helps you.

Regard

Manoj Kumar

Former Member
0 Kudos

Hi,

I went to that component in GMT server where I am currently working my project on but I don find the link which u have mentioned.. though I got the component but the other links were of not much use for my issue concerned.

Any other demo can u provide?

Regards

Tenzin

Former Member
0 Kudos

Hi,

I have created one blog on OVS Help in WDA which populate multiple UI elements based on Search help result. I think you can refer that.This will definitely going to help you out.

[OVS Help in WDA|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/9502] [original link is broken] [original link is broken] [original link is broken];

Hope it helps.

Regards

Shruti

former_member402443
Contributor
0 Kudos

Hi Tenzin,

As per told by you that your are not able find the link which I have mentioned.. though I got the component .

With that component check the VIEW - V9, otherwise check the logic given below.

Logic for OVS Search help.

1. Take a Component Usage of WDR_OVS in you component controller.

2. Then take that used component of OVS in your view Controller.

3. Then for which attribute you need the OVS search help, make that input help mode properties to OVS and in the OVS Component usage pass the OVS component usage name.

4. After this bind the attributes to the UI element .

5. Then create a method of type event and assign the OVS event of the component usage of ovs you have created to that event.

After this write this logic within that method.

method on_ovs .

data: l_spfli_node type ref to if_wd_context_node,

l_struc_spfli type ig_componentcontroller=>element_sflight,

l_element type ref to if_wd_context_element,

l_tab_output type table of wdrtest_ovs.

field-symbols: co_phase_1.

  • nothing to do here

when if_wd_ovs=>co_phase_2.

  • query

cl_wdr_flights=>get_data(

exporting

tab_name = 'SFLIGHT'

changing

data = l_tab_output ).

ovs_callback_object->set_output_table( output = l_tab_output ).

when if_wd_ovs=>co_phase_3.

  • apply result

if ovs_callback_object->selection is not bound.

*******TODO exception

endif.

assign ovs_callback_object->selection->* to ).

endif.

endcase.

endmethod.

Regard

Manoj Kumar