Application Development 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: 

Submit Report in Background via Job

former_member184739
Contributor
0 Kudos
854

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

8 REPLIES 8

former_member491621
Contributor
0 Kudos
270

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

Former Member
0 Kudos
270

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

0 Kudos
270

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

0 Kudos
270

It is not possible, if the standard program raises a message via "MESSAGE" statement of type E, the process terminates.

Former Member
0 Kudos
270

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

0 Kudos
270

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

0 Kudos
270

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).

0 Kudos
270

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