04-17-2014 9:11 PM
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!
04-18-2014 3:56 AM
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.
04-18-2014 7:31 AM
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
04-18-2014 5:26 AM
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
04-18-2014 12:25 PM
when u are pressing enter then how start-of-selection evenet is called?
What is the sy-ucomm for enter and f8?