‎2016 Sep 29 11:52 AM
Hi,
on a dynpro ("classic one", not web dynpro) i have several drop downs with values to select. When i select one line of the list i want to do some checks. but i have to push ENTER to get in PAI-modules.
is there any way to send kind of a "automatic enter" after selection of a value in dropdown list ? I don't want the user to push enter, the checks should be done immediately after selecting the value in drop down.
br Martin
‎2016 Sep 29 3:01 PM
Hi Martin ,
In your Screen Painter Double click on the Listbox Field, you will get one popup with Properties of that field will shown on your screen , there you can find one option like : FctCode
and you can give your own function code there for ex. 'SEL1' .
Now Go to Flow Logic Tab on your Screen....
There Double click on Module User_Command of PAI .
Case 'SY-UCOMM' .
when 'SEL1' .
Here you can write your Selection Coding...what ever you want to perform after selecting List item.
Hope it would be solve your problem...
Thanks ,
Vamsi.
‎2016 Sep 29 12:28 PM
Hi,
There are some exceptions for the drop down boxes on PAI.
Please read the below links from SAP Help for more information.
User Actions on Screens - Classic Dynpro Programming - SAP Library
Dropdown Boxes - Classic Dynpro Programming - SAP Library
BR
Gangadhar
‎2016 Sep 29 12:50 PM
Hi Gangadhar,
thanks for the links, there is one thing not clear, it says:
".........When the user chooses a value, the PAI event can be triggered simultaneously......"
So what does that mean the event CAN(!) be triggered ? It is not triggered. so how CAN it be triggered. thats not clear in the documentation
br Martin
‎2016 Sep 29 1:31 PM
Hi Martin,
Once you assign the function code 'OK_CODE' to the field name in the screen painter, the function code assigned during the drop down selection is 'SELECTED'.
In the POV event, write the logic for your checks for that field.
Hope it helps.
BR
Gangadhar
‎2016 Sep 29 1:00 PM
Hi Martin,
Please execute the Screen painter (SE51) for the Dynpro you want to make the PAI get executed automatically. For those Drop Downs you want to make them execute the PAI (and PBO of course as well) add a function code in the field Details. Please note that the Ok-Code will be populated with these Function Codes during PAI processing.
Hope that helps!
Regards
Oliver
‎2016 Sep 29 3:01 PM
Hi Martin ,
In your Screen Painter Double click on the Listbox Field, you will get one popup with Properties of that field will shown on your screen , there you can find one option like : FctCode
and you can give your own function code there for ex. 'SEL1' .
Now Go to Flow Logic Tab on your Screen....
There Double click on Module User_Command of PAI .
Case 'SY-UCOMM' .
when 'SEL1' .
Here you can write your Selection Coding...what ever you want to perform after selecting List item.
Hope it would be solve your problem...
Thanks ,
Vamsi.