Skip to Content

How to execute report in Background from Dialog process?

How, or what is the best way, to lauch an executable program (report) into the background from a dialog program (dynpro)?

<b>Example:</b> The SUBMIT...AND RETURN still executes the called program before it returns control to the calling program. I just want the report to be kicked off and the dialog to continue as normal. I do not want the report execution time to affect the dialog process.

Thanks in advance for your time.

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • Posted on Oct 12, 2004 at 06:05 PM

    Well...maybe you could try to put your submit inside a function module and call that function module with the extension "IN BACKGROUND TASK". Give it a try.

    Regards,

    Rich Heilmans

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 12, 2004 at 06:52 PM

    Have a look at the SUBMIT command again, specifically the 'VIA JOB' and 'TO SAP-SPOOL' extensions. Use the function modules 'JOB_OPEN' and 'JOB_CLOSE' before and after the call, respectively.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 12, 2004 at 07:03 PM

    Thank you all for your time.

    I guess I have two options:

    1) CALL TRANSACTION... IN BACKGROUND TASK with the function module actually submitting the report OR

    2) SUBMIT report... VIA JOB.. AND RETURN with use of the JOB_OPEN and JOB_CLOSE function modules

    Once again, I appreciate the time.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 12, 2004 at 07:16 PM

    Are you familiar with events?...raise_event is a std SAP FM you use and you trigger an event from your dialog...and in sm36 you have your background-job that kicks your report on raise of this event.,..!every time!

    I have done this and it works!

    -Let me know if this helped!...

    Thanks-Shankar.T.S.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 18, 2004 at 11:49 AM

    Hi again,

    My intention is to reproduce the FM test tool making it user fiendly and reduce the number of options to the user. All this for a custom extraction tool.

    The dynamic SELECT-OPTIONS works if you don't know the type at design time BUT know the name and how many of the SELECT-OPTIONS. But say that I don't even know that...

    The ideal would be a collection object as in VB, Java C++

    but I guess I have to stick to regenerate the selection screen at every run.

    Thanks for your answers!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2004 at 11:58 AM

    Hi,

    You may try the option of submitting the report to spool ( Syntax : submit report(reportname) to SAP-spool ), and continue with the dialog execution.

    Regards,

    SN

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.