set cursor field after selection screen field check?
I'm doing a check on a field of the selection screen. When the user is not giving a valid value for the field, I am displaying a warning, but I would like the cursor to be set on the field as well.
So I tried the 'set cursor field', but it's not working. Can someone tell me how to get the cursor on the right field? Here's my code.
select single lgtyp from lagp
where lgtyp = s_type.
if sy-subrc > 0.
set cursor field 'S_TYPE'.
Please check like this : set cursor field 'S_TYPE-LOW'.