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

How to force Functional Module to use Batch-Process ?

axel_moschuering
Explorer
0 Likes
1,716

Hello all,

I am calling a FM via synchronous RFC. No matter what I try the functional module is started

in a dialog process in the remote system. This is inconvinient because sometimes the process takes too long and a timeout occurs. I also tried transactional RFC and asynchronos RFC but no difference here.

The FM will always be executed in a dialog process.

How can I tell the functional module to use a batch process ?

Thank you for your answers,

Axel

6 REPLIES 6
Read only

Former Member
0 Likes
1,252

hi,

use

CALL FUNCTION 'HR_START_BATCHJOB_IN_OTHER_SYS'

EXPORTING

repid = 'sy-repid' " "Program name

variant = 'VAR'

  • JOBNAME =

  • CALL_BACK_DEST =

  • CALL_BACK_ID =

  • IMPORTING

  • JOBCOUNT =

  • INDX_ID =

TABLES

valutab = it_sel.

you can set your program in batch mode using the above function module

Yogesh N

Read only

0 Likes
1,252

Hi,

thank you for your answer, but I am not using a report but an functional module.

How can I tell the FM to use a batch process instead of a dialog process ?

Thank you and best wishes,

Axel

Read only

Former Member
0 Likes
1,252

Hello

You can also use

CALL FUNCTION IN BACKGROUND task..

Thanks and Regards

Pushkar

Read only

0 Likes
1,252

Hi,

thank you for your answer.

I tried this already. As far as I know, this will only trigger transactional RFC (i.e. FM in

Remote System is started after a COMMIT WORK); it does not state that the FM in the remote

system will run in a batch process.

Any other ideas ?

Thank you all,

Axel

Read only

VenkatKunchangi40
Discoverer
0 Likes
1,252

Hi Axel, were you able to figure this out back then? I have a similar requirement now to force FM to run in batch.

Read only

axel_moschuering
Explorer
0 Likes
1,252

Hi,

not really. If I remember correctly I encapsulated the FM in an report an called this in a background job.

Hope this helps.

Best wishes,

Axel