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