Skip to Content
0
Feb 19, 2009 at 11:14 AM

How to go to the next screen when there are mandatory fields

227 Views

Hi Everyone,

I am having a screen with a mandatory field. I have placed 2 buttons 'exit' and 'next'.

I have used the following code for 'exit'.

MODULE exit AT EXIT-COMMAND

CASE sy-ucomm.

WHEN 'exit button'.

LEAVE PROGRAM.

and the following code for 'next' in PAI module.

CASE sy-ucomm.

WHEN 'next button'.

CALL SCREEN <screen no.>.

When I am clicking on the 'exit' button it's coming out of the program. But when clicking on 'next' button it's giving an error message "make an entry in all the required fields".

So please help me in going to the next screen.

Thanks,

Sridhar.