Skip to Content

Setter method not called on F4 value selection

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2014 at 10:34 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • Posted on Feb 14, 2014 at 10:47 AM

    Hi,

    any one has any idea what could be wrong here?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.