12-22-2008 4:32 PM
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.
12-22-2008 4: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
12-22-2008 4: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
12-22-2008 4: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
12-23-2008 6:31 AM
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.