Application Development and Automation 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: 
Read only

VARIANTS

Former Member
0 Likes
524

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
456

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

3 REPLIES 3
Read only

Former Member
0 Likes
457

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

Read only

0 Likes
456

thanks. got it

Read only

Former Member
0 Likes
456

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.