‎2007 Mar 20 9:45 AM
Hi,
I am calling a report with 'SUBMIT' statement... (Submit and Return), the called program has some error message so the control is getting stopped there itself without coming back to calling program.
How can I get back the control to calling program even the called program has error in it???
Correct answers will be greatly appreciated!!
‎2007 Mar 20 9:50 AM
Hi Ali,
It depends...
If the called program has an error and ends up with Warning or Status mesage types, then the control will come back to the calling program.
But if the called program ends up with an error message with E message type, then the control won't come back to the calling program.
Solution:
You can modify the called program to display the error messages in an internal table instead of flashing an error message. By doing this, you can import the error message internal table into ur calling program and display it here itself or ignore it.
Cheers,
Sam
‎2007 Mar 20 9:55 AM
‎2007 Mar 20 9:56 AM
Hi Ali,
Pass the parameters to that SUBMIT program. Just debug the program and find out the condition for that eroor message,definately u will get the solution.
Hope this helps you.
Regards,
Kumar.
‎2007 Mar 20 10:12 AM
If an Error message is raised the program is stopped. We will not get the control
back. There is no other way..
‎2007 Mar 20 10:39 AM
hi
good
if you have error in the calling program than the submit statement wont work in that point,so i would suggest you to debug the calling program ,fix the error and than you try with the submit statement.
Thanks
mrutyun^
‎2007 Mar 20 10:47 AM
Hello Mrutyunjaya,
This is not error in the program!!! I am taking about handling of error message type.
Suppose there is an error message raised in the called program, without stoping the control there itselft how will you take it back to calling program...