cancel
Showing results for 
Search instead for 
Did you mean: 

Setter method not called on F4 value selection

former_member188321
Contributor
0 Kudos

Hello Experts,

For an ID field, I use another component for advance search. When I select the value from result list, it comes back and get writtent in input field.

But, SET_xxxx_ID method is not getting called. I tried pressing Enter key, but no use.

Expectation is that once value is selected from the advance search, it should come into the input field and and also trigger its Setter method so that the other logic can execute.

Can you help, what am I missing here?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Damandeep,

Since you have used a search page as F4 help, an eventhandler will be triggered whenever you select a value.

In that event handler you can find Set Property which sets the value of the field.So whatever logic you want to  trigger after setting the value,You can put in that event Handler.


Regards,

Tejaswini P.

h_trompeter
Explorer
0 Kudos

Hi Damandeep,

Take a look at the corresponding V-Getter method of that attribute. Here you will find something like this:

create object rv_valuehelp_descriptor type cl_crm_uiu_value_ordered_prod

       exporting

         iv_outbound_plug = 'OP_SEARCH_ORDERED_PROD'.

In this outbound-plug method (OP_SEARCH_ORDERED_PROD), search for the method 'set_on_close_event'. By this method, the event (that gets called after the popup has been closed) is defined.

Now take a look at this event-handler. Here the result will be processed.

An alternative way is to set an external breakpoint into the DO_HANDLE_EVENT method of the view controller class. This method should be called after the popup has been closed.

Regards

Holger

Answers (1)

Answers (1)

former_member188321
Contributor
0 Kudos

Hi,

any one has any idea what could be wrong here?