09-06-2016 8:17 AM
Hi,
I would like whether it's possible to simulate Enter when one parameter in the selection-screen lost focus?
Depending on the value of this paramater another parameter is filled.
Thanks in advance.
Regards.
09-06-2016 8:32 AM
Hi,
What do you mean with lost focus.
If you have a standard selection screen and you enter data and skip between parameter fields with the TAB key then there is no event and no communication from front end to back end, you can put a user command on a radio button or on a checkbox to force this.
Kind regards, Rob Dielemans
09-06-2016 8:48 AM
Hi,
I've something like this:
AT SELECTION-SCREEN.
IF sy-ucomm <> 'ONLI'.
IF ( ppes = 8 OR ppes = 10 ).
pidi = '3'.
ENDIF.
ENDIF.
ppes is a parameter where people puts KGS and in case KGS are equal to 8 or equal to 10 then
pidi (another parameter) change to Korean language in case people press enter and, it works fine.
What I want is to avoid is that people have to press Enter, they are not used.
Thanks.
09-06-2016 9:23 AM
Hi.
Instead of an input parameter use a DrillDown box that will give you the possibility to "simulate" your Enter.
Hope to help
Bye
09-06-2016 9:39 AM
09-06-2016 8:06 PM
Don't you just want a function code automatically executed on changing a value?
The next statement is valid for checkbox, radiobutton, dropdown listbox :
PARAMETERS ... USER-COMMAND ...
09-07-2016 9:14 AM
Hi Sandra,
ultimately is the user who fill in the pidi parameter. It isn't mandatory that if ppes = 8 or ppes = 10 the pidi would be equal to 3, this is only a proposal.
For example, the use puts 10 in ppes, then pidi changes to 3. This is correct.
Now the user decides to change pidi to EN but, I think the pidi will change to 3 automaticaly again.
I think the only solution is that pidi changes when the ENTER is pressed.
Thanks a lot.
09-07-2016 10:52 AM
To avoid this you can put a conition within your handling for the listbox function code on field ppes.
Just check if pidi is initial. If true set pidi to 3. Else do nothing.