'Trigger PAI after dropdown selection in module pool screen?

On a screen of a module pool I have a dropdown list that works fine.

Definition of elements as dropdown

How can I trigger execution of PAI immediately after the user selected a value from the dropdown box?

I'd like to change some screen properties depending on the value the user selected from the dropdown box without forcing them to to press enter after the selection.



Solution 1:[1]

The field of type list control should have a function code.

In which case the selection will trigger ok_code PAI processing.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 phil soady