‎2007 Jan 20 10:51 AM
hi experts.
for my report program i want to create 2 variants. One for correct entry and other for the wrong entry.I have handled the wrong entries in the AT SELECTION-SCREEN event with warning messages.
I have been able to successfully create varaiant for correct entry but when i feed in wrong entry and click o save button my AT SELECTION SCREEN event is triggered and i get warning messages as per my inputs. I do not get screen to save the data as variant.
why does this happen ??
‎2007 Jan 20 10:56 AM
Hi Srinivas,
The reson being when you click save or for that matter any user action on the selection screen will start triggering the at selection screen events. Since you have put your validation in the code it will trigger the validation and you cannot save the variant.
If you want to do some testing you can try changing your message type E to S or W.
Hope this helps
Cheers
VJ
‎2007 Jan 20 10:56 AM
Hi Srinivas,
The reson being when you click save or for that matter any user action on the selection screen will start triggering the at selection screen events. Since you have put your validation in the code it will trigger the validation and you cannot save the variant.
If you want to do some testing you can try changing your message type E to S or W.
Hope this helps
Cheers
VJ
‎2007 Jan 20 10:59 AM
‎2007 Jan 20 10:58 AM
Hi,
Yes . You cannot save the wrong variant because when you click the Save button for Variants all the validations in AT SELECTION SCREEN will be triggered automatically by SAP.
As long as the validations are in the event AT SELECTION SCREEN you will not be able to save a 'wrong' variant.