Application Development 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: 

CALL FUNCTION IN BACKGROUND TASK - enable tRFC

nikhil_bose
Active Contributor
0 Kudos

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

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos

Hi,

for submitting in the same AS, just use DESTINATION 'NONE' (but you may also not specify it as it is the default).

Sandra

0 Kudos

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

0 Kudos

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

nikhil_bose
Active Contributor
0 Kudos

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.