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

instruction to block a program like message type E

Former Member
1,412

Hi all

this is the problem: I have to show an error popup and block a program like it appens when I use a "message .. type 'E'" instruction.

I already found a function module to show the popup with error icon, but I can't find the way to block the program in that point.

anyone can help me?

Thanks

5 REPLIES 5
Read only

Former Member
0 Likes
841

Hi Riccardo,

We can do that. But it depends on at which point you are calling the pop-up. If you are calling that pop-up before displaying any details on list, then you can use STOP or EXIT key words to stop processing and come out of that program. otherwise try to use Leave Program ..etc.

Thanks,

Jyothi

Read only

Former Member
0 Likes
841

If you want to validated the selection screen input the validate in event

AT SELECTION-SCREEN OUTPUT trigger an error message by pop-up MESSAGE e'error message' display like 'I'

else trigger the message when your require in the program flow.

Thanks,

PS: Messages Behave differently in different to know about that hit f1 on message

Read only

Former Member
0 Likes
841

Hi,

After displaying the popu-up you can use the keywords EXIT or RETURN if you are processing in the main program otherwise use the code: LEAVE SCREEN. or LEAVE TO SCREEN 0. or LEAVE PROGRAM.

Regards,

Saba

Read only

0 Likes
841

thanks all!

I'm trying this two alternatives:

- message e'num_messate' display like 'I'

- RETURN after the popup message

now I have to understand what is better solution in my program

Read only

Former Member
0 Likes
841

throw a Status or an Information message and use statement "Leave List-processing"

cheers

ran