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

Set cursor in subscreen

Former Member
0 Likes
1,012

Hi all,

While validating a field on main screen, on error condition, is it possible to enable a particaular field in subscreen and set cursor on that?? Please let me know how to do that.

Thanks,

Keerthi.

2 REPLIES 2
Read only

former_member182371
Active Contributor
0 Likes
563

Hi,

maybe something like:


IF sy-subrc NE 0.
  SET CURSOR FIELD 'YOURFIELD'. "upper case
  MESSAGE EXX(yourmessageclass).
ENDIF.

Best regards.

Edited by: pablo casamayor on Jun 18, 2008 8:01 AM

Read only

Former Member
0 Likes
563

Hi

Write the code in

AT SELECTION-SCREEN event.

AT SELECTION-SCREEN.
if p_s1 eq '1'.

 SET CURSOR FIELD 'P_S2'.
 message E531(0u) with 'Error messsage'.
endif.

Regards,

vamshidhar.