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 task

Former Member
0 Likes
1,581

Hi all,

Can any1 gimme some tips on timeout issues for background tasks

I am calling my FM in background task in VA01 which gets executed if I run the background task in Debug mode but doesnot get executed when i run the background task without debug mode.Could not understand the issue.

Hoping it is a timeout issue.ny suggestions on this..

ani

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,507

hi ,

We also had a same issue. When running in debug mode, it executes perfectly, but when we execute directly , it doesnt work, its a time issue. just increase time . so that it will get time to save data. I hope it will solve your problem.

11 REPLIES 11
Read only

Former Member
0 Likes
1,507

Hi

All GUI Function Modules dont run in background mode...

What is the FM you are using?

Regards,

Vishwa.

Read only

Former Member
0 Likes
1,507

Hi,

Usually timeout issues do not affect background jobs. But yes there might be an infinite loop formed and hence the job keeps on executing. One more thing, if a background job is cancelled please check the job log once it will give you the error that has caused the job to stop.

Regards,

Pramod

Read only

Former Member
0 Likes
1,508

hi ,

We also had a same issue. When running in debug mode, it executes perfectly, but when we execute directly , it doesnt work, its a time issue. just increase time . so that it will get time to save data. I hope it will solve your problem.

Read only

0 Likes
1,507

Hi Meena,

Can you please temme how do you increase time in technical terms.

Thanks,

ani

Read only

0 Likes
1,507

Try this ' wait up to N seconds.' after call FM

Read only

0 Likes
1,507

Hi Anil,

Is your problem solved ?

Read only

0 Likes
1,507

'Wait upto N seconds' is wrkin n gud but i cant use due to some performance issues..

Plz suggest me somethin else..

Thnx,ani

Read only

former_member182354
Contributor
0 Likes
1,507

If you use call screen statement then it may take loong time to run..

Raghav

Read only

Former Member
0 Likes
1,507

Hi Anil,

Please check below link for more details on how to resolve this issue. I hope it will be useful.

Thanks and Best Regards,

Dinesh.

Read only

Former Member
0 Likes
1,507

Hi Anil

If you use any FM which get confirmation from user (ie, YES / NO) and if the default value you've set is NO then it will not run in back ground (probably while debugging you might've answered YES).

For increasing the time, transaction RZ11 can used for which you can contact your BASIS team .

Regards

Prabumanoharan

Read only

Former Member
0 Likes
1,507

alternative soln needed