Skip to Content

CALL FUNCTION IN BACKGROUND TASK - enable tRFC

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 19, 2011 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • Posted on Aug 22, 2011 at 11:54 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.