cancel
Showing results for 
Search instead for 
Did you mean: 

Foreground job creation

Former Member
0 Kudos

Hi,


I am creating background jobs by foreground executinn of program using the JOB_OPEN,
SUBMIT to SAP-SPOOL PARAMETERS, JOB_CLOSE. When it's running, its creating a job (First job with active status).
When submit is triggered, again the program execution is happening and creating next job with active status
and old job to finished status. Jobs are getting created repeatedly for each second.

Please let me know how to avoid creation of repeated jobs.


Best Regards,
Mallesh.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member209818
Active Contributor
0 Kudos

HI Mallesh

You must have passed a variable PERIODIC in Structure DELANFREP while calling JOB_OPEN.

PLease send this variable as BLANK. and run the program again.

Meanwhile, you will need to stop the current program which you have scheduled periodically. You can edit the current job definition using Tcode SM36.

Hope this helps !!

JasonLax
Product and Topic Expert
Product and Topic Expert
0 Kudos

To get a quick (or any) response, create your new discussion in a space related to your query.  This way it will be visible to topic experts who will then see and reply to it.  The SCN Site Index contains a full listing of all SCN spaces or use the navigation at the top of the page.