Application Development and Automation 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: 
Read only

Background job delay

Former Member
0 Likes
1,547

Hi Experts,

I have a problem. When saving production order, I need to schedule job, which runs 5 seconds after current time and changes some fields in production order.

Problem is, that this job is alwayse delayed. Sometimes it is only 10 seconds, sometimes one minute.

Can I ensure to start job in planned time without delay?

Thanks&regards,

Jirka

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,195

Hi Jirka,

With the job procesing, you always will have this problem.

If you need that another program runs after the creation of the production order, you can execute your second step in a function module in update task or in background task.

This ensure you that the process is executed just before the commit work (the FM must be marked as a RFC FM)

Regards,

Pepe

Hi Jirka,

With the job procesing, you always will have this problem.

If you need that another program runs after the creation of the production order, you can execute your second step in a function module in update task or in background task.

This ensure you that the process is executed just before the commit work (the FM must be marked as a RFC FM)

Regards,

Pepe

3 REPLIES 3
Read only

gaursri
Active Contributor
0 Likes
1,195

Hi Jirka,

While we configure the background job scheduling you must have given immediate start.Am I correct.When we specify it means that the action reaction is quick immediately.We know that the process execution within SAP is so vast that the process has to wait for a bit of time that is what the cause of the delay you can check while the process you trying to achieve in the mean time you can check SM51 or SM 50 both youo can see that the delay is just because of the work processor availabilty.To improve the performance of the process please do contact the basis team.

Hope your query resolves.

Have a best day ahead.

Read only

Former Member
0 Likes
1,196

Hi Jirka,

With the job procesing, you always will have this problem.

If you need that another program runs after the creation of the production order, you can execute your second step in a function module in update task or in background task.

This ensure you that the process is executed just before the commit work (the FM must be marked as a RFC FM)

Regards,

Pepe

Read only

0 Likes
1,195

Thanks a lot,

IN BACKGROUND TASK statement solved my problem.

Best regards,

Jirka