cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement SEARCH HELP for input field in WDA

simadri_sekhar
Participant
0 Kudos

Hi All,

I am doing a tool for my team. in this tool there are 4 input fields to show different processes. I implemented the 4 input fields and also bind the respective tables to these fields successfully. Actually I want to filter the data between 2 fields . Means the data in the 2nd input field should be based on the 1st input field. Means when I'll select for example 'CHI' (code for CHINA) in the 1st input field the 2nd field meant for country name should show all country name with value 'CHINA'. But the problem is that all values related to each field are in different table with no foreign key relationship and also some combinations are in single table..

I have tried the import and export parameter method for search help but no luck till now.

Can anyone please suggest me how to implement this scenario..

Thanks in advance...

sekhar

Accepted Solutions (0)

Answers (3)

Answers (3)

simadri_sekhar
Participant
0 Kudos

hello all,

Thank you all for your valuable suggestions , but I think noone able to understand my requirement. Kindly follw scenario 1 this link . I need a functionality similar to this but the problem is that I have no table with foreign key relationship...

[http://wiki.sdn.sap.com/wiki/display/WDABAP/UsingSearchhelpattachmentsforWebDynproABAP]

Former Member
0 Kudos

Hi,

Assume that there are two input fields and according to the value entered in first field , the f4 help of second field has to filter value and list the values.Hope this is your requirement.Then it can be implemented by OVS.OVS has no prerequistics like foreign ket in table.

Before using OVS you need to learn about component usage.

search for 'OVS in Webdynpro ' in google and choose SAPTECHNICAL link or a SDN PDF link.

1)Add wdr_ovs in the component to be used in component controller.

2)The attribute which is mapped to the input field2 has to be given OVS as search method.

3)Add a method and choose event handler as property and add the OVS event , then double click on the method. If you find a lot of generated code it means that you have successfully used OVS. Then you need to continue on adding code as I suggessted in previous thread.

Regards

Karthiheyan M

simadri_sekhar
Participant
0 Kudos

Hi karthikeyan,

yes you are correct , thats my requirement..

Ok thanks for the info. I will try to implement that method and let you know.

thanks,

sekhar

Former Member
0 Kudos

Hi sekhar,

Your Requirement can be implemented by OVS(Object Value selector) This is the custom search help .So that you can define on what basis the value has to be fetched.

Look at the below link

http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c8...

You need to use the component WDR_OVS.

It has 3 phases

In phase 1

You will fetch the value from input field to F4 help dialog box.

In phase 2

You will generate the search results , in this phase look for the input value given in field 2 and accordingly generate search result for the field 3.

In phase 3

The selected value will be returned to the original screen.

Regards

Karthiheyan M

simadri_sekhar
Participant
0 Kudos

hi kiran and mnkv,

thanks for your suggestion. Actually am a newbie in WDA so the links that you shared are bit confusing and difficult.. can you please provide some simple methods as shown in the link

[http://wiki.sdn.sap.com/wiki/display/WDABAP/UsingSearchhelpattachmentsforWebDynproABAP]

thanks,

sekhar

Edited by: ss_sutar03 on May 27, 2011 8:21 AM

gill367
Active Contributor
0 Kudos

HI

You will be required to implement OVS.

you need to implement OVS for both the input fields .

OVS implementation has phases and in the phase 2 i.e.

if_wd_ovs=>co_phase_2.

there you can get the values accroding to the required condition based on the value in the first field.

here is a link to one step by step approach to implement OVS

[OVS step by step|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/707f0d73-94f0-2d10-97a2-a3776e2118d8?quicklink=index&overridelayout=true]

thanks

sarbjeet singh

Abhinav_Sharma
Contributor
0 Kudos

Hi Shekhar,

Not sure if i understood your problem correctly but If you want to load values in 2nd input field based on 1st input field then u can use onEnter event. This way u can load the table by writing custom logic to populate the values in second field. Like, in your case if it is CHI, then if user clicks on enter, load the country names with value CHINA.

Let me know if you are looking something else

Regards

Abhinav

simadri_sekhar
Participant
0 Kudos

Hi Abhinav,

Thanks for your quick response. Actually the method you mentioned above I have already implemented for dropdown list and it worked fine but when I used the same method for INPUT field it won't work... So I follow the method given in this link

[http://wiki.sdn.sap.com/wiki/display/WDABAP/UsingSearchhelpattachmentsforWebDynproABAP]

but still no luck... the main problem is my datas are in different table with no foreign key relationship.

so am confused whether its possible or not...??

If u have any problem in understanding my doubt let me know I'll explain it in more detail.

Thanks,

Sekhar

former_member184578
Active Contributor
0 Kudos

Hi.,

Using OVS you can achieve this..!!

Check this : [Customizing F4 in Web Dynpro ABAP.|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true]

In OVS you can use innerjoin on 2 tables or for all entries and append it to final internal table and set it to the attribute..

hope this helps u.,

Thanks & Regards,

Kiran