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

Calling FM in background

Former Member
0 Likes
985

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

4 REPLIES 4
Read only

former_member632729
Contributor
0 Likes
817

Hi Dude,

You can do one thing .. call the FM in report program and then set to background task .

Read only

0 Likes
817

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.

Read only

0 Likes
817

Hi,

Not sure , but Try using AS SEPARATE UNIT.

CALL FUNCTION func IN BACKGROUND TASK

[DESTINATION dest]

[AS SEPARATE UNIT].

regards,

Naveen

Read only

Former Member
0 Likes
817

Hi,

Follow up with the above answer.

Regards,

Jyothi CH.