cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms msg error when Cancel on dialog

Former Member
0 Kudos

Hi

When I use Smartforms print and after I execute dialog box to print and when I press cancel button "X" then I got

a msg "Output terminated by user" and this close my transaction at all.

Maybe I must add some close smartforms function or what?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try to catch the exception by adding at the end of your smartform function call

 exceptions

user_canceled = 1.

This way, if it exits by user cancellation, it won't show the message, and sy-subrc will get a value of 1, so you can detect this happened and act accordingly.

Answers (0)