Application Development 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: 

set cursor field after selection screen field check?

Former Member
0 Kudos

Hi,

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.

At selection-screen.

select single lgtyp from lagp

into walgtyptest

where lgtyp = s_type.

if sy-subrc > 0.

set cursor field 'S_TYPE'.

message e002(00).

endif.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Please check like this : set cursor field 'S_TYPE-LOW'.

Regards

Kiran

3 REPLIES 3

Former Member
0 Kudos

Hi,

Please check like this : set cursor field 'S_TYPE-LOW'.

Regards

Kiran

Former Member
0 Kudos

Hi,

try this,

At selection-screen on s_type.

select single lgtyp from lagp

into walgtyptest

where lgtyp = s_type.

if sy-subrc NE 0.

message e002(00).

endif.

Hope it wil work.

Former Member
0 Kudos

Hello,

try :

at selection-screen on s_type.

<your coding>

regards

Wolfgang