Question

I know that one can start a new thread by

CALL FUNCTION 'ZTEST_RFC' 
STARTING NEW TASK 'ABC'.

but as I am writing a web application in ABAP, it feels so wrong to have my OO handler parse an http call, get the request data, then call an Old Skool function module and then have that FM call again an OO object with all the application logic.

Is there any way to start a new task providing a object & method?

Was it helpful?

Solution

Not really. I understand that this feels wrong, but STARTING NEW TASK uses a lot of the basic RFC mechanisms, and since classes were never really RFC-enabled (though you can see in some internal details that someone at least made some provisions to do so), you still have to rely on basic procedural programming there. On the other hand, I've rarely seen an appropriate use for parallel processing in ABAP...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top