‎2009 Feb 21 9:12 AM
Hi,
I want my program to run in background when the user selects a checkbox to run the program in background. can you please tell how to execute the program in background?
regards,
ravi.
‎2009 Feb 21 9:19 AM
‎2009 Feb 21 9:17 AM
‎2009 Feb 21 9:20 AM
I want to execute my report in background when the user checks a checkbox in selection screen and pressing execute(F8).Not directly by F9 option in selection screen.
‎2009 Feb 21 9:27 AM
Hi
then you need to create a BDC program
when w_check eq 'X'.
perform BDC using progname .
the BDC program should run in the background mode as well so user will not see the screens
you can use session method as well to run the program in background
use w_check eq 'X' AT selection-screen output.
so you will not have to press F8 to make it work
As gurpreet said you can also use job_schedule FM to schedule it in background
‎2009 Feb 21 9:19 AM
‎2009 Feb 21 10:27 AM
Hi Ravi,
Follow below logic.
If check box is selected
AND sy-batch IS INITIAL. "Means currently u r running report in foreground
CALL FUNCTION JOB_OPEN.
SUBMIT ur program using SUBMIT statement.
CALL FUNCTION JOB_CLOSE.
ELSE.
Normal processing.
ENDIF.
Thanks,
Vinod.
‎2009 Apr 02 5:51 PM