2009 Feb 27 5:54 AM
Hi All,
I have a requirement to call one function module in background job. To acheive this, I tried to call this FM in another FM using 'IN BACKGROUND TASK' option. But this option is not scheduling it as a background job, rather its running this FM as a dialog session in background. And it gets terminated after the dialog timeout period.
The other option is to call this FM in a program and submitting this program in background. But as the input parameter of this FM is complex structure, I am not able to pass this complex table to the pragram.
Can you please suggest some solution..
Thanks in advance..
Archana
Hi All,
I have a requirement to call one function module in background job. To acheive this, I tried to call this FM in another FM using 'IN BACKGROUND TASK' option. But this option is not scheduling it as a background job, rather its running this FM as a dialog session in background. And it gets terminated after the dialog timeout period.
The other option is to call this FM in a program and submitting this program in background. But as the input parameter of this FM is complex structure, I am not able to pass this complex table to the pragram.
Can you please suggest some solution..
Thanks in advance..
Archana
2009 Feb 27 5:55 AM
Hi Dude,
You can do one thing .. call the FM in report program and then set to background task .
2009 Feb 27 6:12 AM
Sorry.. I forgot to mention one thing.
This FM(RFC) is basically getting called from another system. And as it is taking long time to run we want to schedule it as a backgroung task. So even if we call this FM in program, we need to call that program in one RFC as a background job. And as the input parameter of actual FM is complex table, I am not able to pass it to that program.
2009 Feb 27 6:42 AM
Hi,
Not sure , but Try using AS SEPARATE UNIT.
CALL FUNCTION func IN BACKGROUND TASK
[DESTINATION dest]
[AS SEPARATE UNIT].
regards,
Naveen
2009 Feb 27 5:57 AM