Application Development and Automation 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: 
Read only

Leave the screen without process next instructions.

Former Member
0 Likes
1,880

Hi All,

In my module pool program in PAI modules I keep one information message after getting the information message the control should not go further program lines, it should stop there and selection screen should appear with input values the user will correct the input value and run the program.

How can I forcefully exit the another modules(program lines).

Thanks and regards,

Krish.......

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,600

Hi ,

Use set screen 0 and leave screen statement to come out .

Hi All,

In my module pool program in PAI modules I keep one information message after getting the information message the control should not go further program lines, it should stop there and selection screen should appear with input values the user will correct the input value and run the program.

How can I forcefully exit the another modules(program lines).

Thanks and regards,

Krish.......

5 REPLIES 5
Read only

Former Member
0 Likes
1,601

Hi ,

Use set screen 0 and leave screen statement to come out .

Read only

0 Likes
1,600

Hi Krish,

If i understood the problem correctly, you need to use EXIT statement.

IF flag EQ 'X'.

MESSAGE i087(ztest) DISPLAY LIKE 'E'.

EXIT.

ENDIF.

Depending on screen sequence use it.

If you want to skip some screens and come back to particular screen after some user action ;

you can use SET SCREEN 0 and then LEAVE TO SCREEN 0.

Please read F1 help for it.

I hope this will help you.

Regards,

Rahul

Read only

Former Member
0 Likes
1,600

hi Krish,

Try with

1. Call Screen <SELECTION SCREEN No.> OR

2. Leave to SCREEN <SELECTION SCREEN No.> OR

at the point wher you like to stop the process and call the Selection Screen.

Regards,

Anirban

Read only

Former Member
0 Likes
1,600

Hi,

Please use the below code

code

Process After Inpt.

Module exit AT EXIT-COMMAND.

In module pool program.

Module exit.

Case Okcode.

When 'Exit'.

leave to screen 0.

Thanks and Regards

chitra

Read only

Former Member
0 Likes
1,600

Hi

After The Information Message

like :

If Sy-subrc ne 0 .

Message'XYZ' type 'I'.

Call Selection-Screen 1000.

Endif.