2013 Jan 21 10:51 AM
Hello Experts,
I submit a standard Report from my custom report.When standard report gets executed it validates and displays error message.
Can we make the standard report to execute but must not display error message instead collect that error(after it compleetely executed) from the custom report and then display the message .
Thanks
prabaharan
2013 Jan 21 11:47 AM
Hi Prabhakaran,
You can write the errors to spool(but not collect them into an internal table) using submit
Please see the below links. It might give you an insight on what can be done
<< Link farming removed, please provide your comments supporting the contents available in the referred links and justify it >>
Hope it helps
Do revert back for any issues
Message was edited by: Kesavadas Thekkillath
2013 Jan 21 11:52 AM
Hello,
You can achieve this by calling SUBMIT..VIA JOB in synchronous way EXPORT/IMPORT FROM DATABASE.
Check the thread, might be helpful for you.
http://scn.sap.com/message/9973367
regards,
Deepti
2013 Jan 22 3:41 AM
Hi Deepti,
I used Submit via Job.But still if there any error occur in standard report it displays standard report selection screen.Is there any alternative to avoid displaying this selection screen?
Thanks
prabaharan
2013 Jan 22 5:50 AM
It is not possible, if the standard program raises a message via "MESSAGE" statement of type E, the process terminates.
2013 Jan 21 5:57 PM
Use
SUBMIT standard_report WITH SELECTION-TABLE table
EXPORTING LIST TO MEMORY
AND RETURN.
Then use FM's LIST_FROM_MEMORY and LIST_TO_ASCI to get the return.
Check http://scn.sap.com/thread/39352
Regards,
Felipe
2013 Jan 22 3:43 AM
Hi Filip,
We can use the method you suggested but standard report will still throw error message(if report validates) rite?Please correct me if i am wrong.
Thanks
prabaharan
2013 Jan 22 5:27 AM
Hi Prabhakaran,
When you submit a report via job, it is submitted to background. I didn't understand how you are getting the selection screen after an error message. Background jobs won't have any kind of gui support(correct me if i am wrong).
2013 Jan 22 11:47 AM
Hi Prabaharan,
Using the method that I suggested you'll get the output of a classic report (if you don't submit as a job) but as Kesavadas said, if the program raise a message type E, the process terminates.
Regards,
Felipe