Is it possible to asynchronously start FM execution on batch job work process?
CALL FUNCTION func STARTING NEW TASK taskname.
CALL FUNCTION func IN BACKGROUND TASK.
starts FM execution just on another dialog process.
Context of requirement:
There is a program that may be logically splitted into two parts:
- dialog part where data is collected from user input
- BAPI call with a tons of parameters(structures, internal tables) formed on user input
So the problem - system dump by timeout during BAPI execution.
The only solution is to execute BAPI functionality on work process without timeout limitations - batch job work process.
There may be two approaches:
- pass parameters to report and schedule its execution in background job. But here arise question how to pass these dynamic parameters? SAP memory doesn't available for background job work process and "SUBMIT WITH FREE SELECTIONS texpr" seems to be intended for LDB or anyway not for such purposes.
- force FM execution on background job work process - so how if it possible?
Appreciate your suggestions.