Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to simulate Enter when parameter lost focus

former_member254358
Participant
0 Kudos

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.

7 REPLIES 7

former_member186746
Active Contributor
0 Kudos

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

0 Kudos

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.

0 Kudos

Hi.

Instead of an input parameter use a DrillDown box that will give you the possibility to "simulate" your Enter.

Hope to help

Bye

0 Kudos

Maybe a solution.

Thanks.

Sandra_Rossi
Active Contributor
0 Kudos

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 ...

0 Kudos

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.

0 Kudos

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.