Skip to Content
author's profile photo Former Member
Former Member

Set cursor in subscreen

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jun 17, 2008 at 05:34 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 06:12 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.