‎2011 Aug 19 2:07 PM
Hi Experts,
I want to call a Remote Function module 'IN bACKGROUND TASK' and get the status in SM58 within the same AS. Kindly help me to do this.
Requirement is to call the remote function module asynchronously in a guarentied way.
Thank you
Nikhil
‎2011 Aug 19 5:30 PM
Hi,
for submitting in the same AS, just use DESTINATION 'NONE' (but you may also not specify it as it is the default).
Sandra
‎2011 Aug 19 10:11 PM
To add more with previous post..'NONE' is a RFC connection provided by SAP for testing a RFC call, so that it behaved as like called from other system...
Thanks
‎2011 Aug 20 9:23 AM
Hi,
provided by SAP for testing a RFC call
"Testing" is not the right word. We use NONE very often in productive scenarios! More than starting a process in the same AS, it also has the function to start a "program" in a new user session (can be very useful if we need to start it with an empty memory, or open a transaction in a new amodal dialog...)
Sandra
‎2011 Aug 22 12:54 PM
The scenario works fine for me. The issue was unable to create a proper test condition in the RFC.
CALL FUNCTION 'ZMY_RFCASYNC'
IN BACKGROUND TASK
EXPORTING...
TABLES...
EXCEPTIONS...
Simulated error condition in 'ZMY_RFCASYNC'
and got entry in SM58 by simply making an exception.
Thank you all.