cancel
Showing results for 
Search instead for 
Did you mean: 

Matchcode event

Former Member
0 Kudos

Hi,

How to catch a matchcode event ?

I've got a standard matchcode, but i want to do some treatment when the user clicks on the matchcode.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Mayaa

You have to use OVS or Freely Programed.

Check this Component:

WDR_TEST_OVS

Regards

Abhimanyu L

Former Member
0 Kudos

hi Abhimanyu,

can't i use Dictionary Search Help ? should i have to use Object Value Selector ?

thanks

Mayaa

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Mayaa,

Unfortunately we can't use Search Helps for this.

You have to code it manually.

Regards

Abhimanyu L

Former Member
0 Kudos

Hi Mayaa.

You could create a search help exit for the dictonary search help, or copy the

search help and create the exit afterwards. In the exit you can work with data

before the selection takes place.

Have a <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm">look</a>.

Otherwise you have to programm OVS like Abhimanyu already said.

Cheers,

Sascha

Former Member
0 Kudos

Hi Sascha,

You can't use search help exit in webdynpro.

in fact, this is my problem, i've got an alv table in webdynpro and each column has a matchcode.

When i use the matchcode on the first line, i get the selected value in my input field, but it disappears as soon as i do smething else. and in the second line, i don't even get the selected value in the input field.

i tried to do a specific matchcode, but it didn't work.

can someone help.

Thanks

Former Member
0 Kudos

Hi Mayaa.

you can use search help exits in Web Dynpro ... the exit is called regardless of

which way the search help is used ... We make use of search help exits in

our project ...

But this does not seem to be what you are looking for anyway.

Cheers,

Sascha

Former Member
0 Kudos

Hi Sascha,

Could you send me an example how to use a search help exist in Webdynpro.

thanks

Former Member
0 Kudos

Hi Mayaa.

Have a look at search help SFLIGHT.

There is a search help exit defined: SAPBC_GLOBAL_F4_SFLIGHT.

Additionaly read the help link i posted above.

But if you define the exit it will be used for all components that uses this search

help. So maybe you have to copy the standard search help. I think you have to

check whether it is usefull for you. Setting up OVS is also not very complicated.

What exactly do you want to achieve when the user clicks the search help button?

Cheers,

Sascha

Former Member
0 Kudos

When the user cliks on the search help, i want to create a line in the alv table. is that possible ?

Former Member
0 Kudos

Hi.

Thats not possible using search help exits.

But this would be possible using OVS. In the event handler method which handles the OVS event you can access the context node which is reversed mapped to the ALV.

Cheers,

Sascha

Former Member
0 Kudos

Hi Saccha,

thank you for your help.

i've decided to try to use OVS.

i've added a component use for WDR_OVS, and i implemented an event OVS handler.

but i've got an error : Input help not possible. Component usage OVS_USAGE does not exist.

i'm sure there is something missing in the settings i've made, have you any idea on what is missing ?

thanks

mayaa

Former Member
0 Kudos

Hi Mayaa.

Did you add the component / controller usage under the properties tab of the view controller where you created the event handler method?

When you want to use interface controllers of used components you always have to declare the usage in the view controllers properties too.

Cheers,

Sascha

Former Member
0 Kudos

Hi Sascha,

I did add the component / cntorller usage under the properties tab of the view controller.

but i still got the error.

Regards

Former Member
0 Kudos

Hi again.

What is the name of the component usage you have defined in the using component?

Is it the same as you have defined in the context on attribute level where you have set up the OVS search help (OVS_USAGE)?

Cheers,

Sascha

Message was edited by:

Sascha Dingeldey

Former Member
0 Kudos

HI again.

Yes it's the same name !

I've also tried to add the component usage in the properties tab of my view i had a message 'Only 7 component usages maximum can be defined" !

Regards

Former Member
0 Kudos

Hi,

I found the problem : I tried setting up the OVS on a field and it worked.

But it still didn't work on the ALV table. I think you can't use OVS on ALV tables.

has someone already used a standard matchcode / OVS / User defines matchcode in an ALV table ?

thanks.

mayaa

Answers (0)