Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

set cursor on error field on selection field

$
0
0

hi experts,

 

i have a requirement where i have 2 fields and 2 radio buttons on the selection screen. when i click on 2nd radio button a 3rd field is visible. the first two fields are obligatory.

when i try to toggle between different radio buttons it is not allowing me by showing "fill required field error".

to avoid this i have written a code to make the 3rd field visible at selection screen output event and also made the screen-required =2 for the first two fields.

now it is allowing to toggle between radio buttons and 3rd is visible when i click on 2nd radio button.

i have wriiten a code under start of selection event to throw an error message when first two fields are blank and execute button is clicked.

 

displayed the error message as MESSAGE 'XYZ' type 'S' DISPLAY LIKE 'E' so that the it remains in the same screen.

but now thye problem is when first field is having some value and second field is blank the cursor is still in the first field it is not going to the error field,.

 

please suggest a way to do it.

it is not possible to write the code in AT SELECTION SCREEN event as it would give the error message even when we toggle between theradio buttons.

 

Please suggest.

 

thanks & Regards,

Pritha


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>