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

Syntax for return to screen?

My PAI validates a field. I want to be able to go back to the same screen if the validation fails. What is the syntax I should use in my Process After Input? Do I move a value to sy-ucomm?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 04:56 PM

    You can use

    Leave to screen 'screenno'(of the same screen where you want to show).

    Thanks,

    Sudheer.

    Edited by: sudheer chowdhary on Dec 22, 2008 10:26 PM

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      You can just use

      Leave to screen following the screen number for example if u wont to come back to the screen from where the proceesing of the cureent screen have started then the code be.

      LEAVE TO SCREEN 0.

      else write the desired screen no.

      you can also attach message if you wont that would be like this

      if the field content does not match ur condition write.

      if itab[] is intial.

      message 'check the condition' type 'E'.

      leave to screen 'screen no'.

      endif.

  • Posted on Dec 22, 2008 at 04:38 PM

    HI

    Use the below Statment

    In PAI

    Field <Fieldname> module field_validation.

    IF more fields use within chain & enchain.

    Please see more documentaion on Sap Help file.

    Hope this hint helps.

    Cheers

    Joginder

    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.