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: 

Syntax for return to screen?

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

joginder_singh
Active Participant
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.