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: 

ENTER key running F8

lferreira
Explorer
0 Kudos

Hi,

I have a Repot that calls another Report through SUBMIT command.

When I press ENTER, the second Report is running the STARF-OF-SELECTION of the second Report.

That should only run if I have clicked on F8:

The second screen has an input field (parameter):

The second report must run only if I press F8.

Does anyone have any idea on whats is going on?

Thanks!

4 REPLIES 4

karun_prabhu
Active Contributor
0 Kudos

Hello Lindomar Ferreira.

     Both ENTER and EXECUTE triggers the event AT SELECTION-SCREEN OUTPUT.

     Whatever code written there will be executed.

     From a user point of view, it is good that I am able to run a program using two different keys.

     You validate the inputs. Only if all the necessary inputs are given, execute the SUBMIT command to another report.

Regards.

matt
Active Contributor
0 Kudos

K.Arun Prabhu wrote:

Hello Lindomar Ferreira.

     Both ENTER and EXECUTE triggers the event AT SELECTION-SCREEN OUTPUT.

     Whatever code written there will be executed.

     From a user point of view, it is good that I am able to run a program using two different keys.

     You validate the inputs. Only if all the necessary inputs are given, execute the SUBMIT command to another report.

Regards.

Yeah, but he's not worried about SELECTION-SCREEN OUTPUT; he's concerned about START-OF-SELECTION

former_member192842
Participant
0 Kudos

Hi,

if you are calling the second report from the selection screen of first report, then try as below

You can check for UCOMM in at selection screen event and call the submit statement.

TABLES:SSCRFIELDS.

AT SELECTION-SCREEN

   CASE SSCRFIELDS-UCOMM.

     WHEN 'ONLI'.

          SUBMIT

     WHEN OTHERS.

   ENDCASE.


Regards

Anand

Former Member
0 Kudos

when u are pressing enter then how start-of-selection evenet is called?

What is the sy-ucomm for enter and f8?