Skip to Content

Solution Manager 7.2 - Trigger Event when changing field value in WebClient UI

Hello experts!

I have added two customer fields to my UI in Solution Manager 7.2 (component AIC_CMCR_H).

The first field "Leistsungsverrechnung" is a dropdown list box with fix values. Depending on what is selected the second field "Projekt" is editable or not.

I have created a serach help which I have assigned when creating the customer field "Project" (it's not my coding).

My problem is that both fields need to trigger ENTER (I guess it would be a server roundtrip) since activates different PPF functions. It works perfectly fine when the user selects any value and presses ENTER after but I want it to be triggered automatically. Some SAP standard fields do it (e.h. priority, sold to etc.).

Can somebody give me a hint how to solve my problem?

Thank you very much!

fields.jpg (8.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 21, 2018 at 05:11 AM

    Hello Florian,

    In GET_P method of Leistsungsverrechnung field, add the server event.

    METHOD get_p_xxxxx.
      CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = '_SELECT'.

    Then, create an event handler EH_ON_SELECT. You can write the code to make the Projekt field editable or non-editable.


    Add comment
    10|10000 characters needed characters exceeded

    • You are right! I think I did try this before but I obvisously I did something wrong. Your commment made me think about it again and now it works! Thank you very much!

      But it only works for the dropdown list box. To make it work for the F4 value help too I had to create my own value help descriptor in the V-Getter. I return an instance of class cl_bsp_wd_valuehelp_f4descr and set the parameter iv_trigger_submit = 'X'.