‎2008 Aug 20 12:04 PM
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
‎2008 Aug 20 12:13 PM
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
‎2008 Aug 20 12:25 PM
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
‎2008 Aug 20 12:30 PM
Hello
You can also use
CALL FUNCTION IN BACKGROUND task..
Thanks and Regards
Pushkar
‎2008 Aug 20 1:55 PM
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
‎2022 Aug 26 8:02 AM
Hi Axel, were you able to figure this out back then? I have a similar requirement now to force FM to run in batch.
‎2022 Aug 26 9:04 AM
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