Skip to Content
Feb 03, 2011 at 08:16 AM

How to show error message in a report program


Hello Guys,

I am making a report using smartforms. I am successful in showing data but problem is if if i put a value in parameters that does not exist is database, the smartform runs and related fields shows as empty fields. But the form is running. I want to show error message if the parameter values dose not matches with the database values. The message will show as Document not exists

So i used related error msg here like

 if sy-subrc ne 0.
          message e357.

But it is not working for passing values to smartform. It works if i use in classical report. Plz help me on this issue.