Skip to Content
author's profile photo Former Member
Former Member

RFC_READ_TABLE process

Hello,

I am initiating an RFC_READ_TABLE call to get data of a database table from an external application. Could anyone tell me if this would start a "background process" in the application server or not? I ask this because if the database table has many many records, the query would take a long time - in this case would the performance of other business critical processes affected adversely?

Thanks for any help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 03, 2005 at 06:08 PM

    I'm sure it will not go to a background task. I believe that it will show up under a dialog task.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 04, 2005 at 02:39 PM

    Hi Vishal,

    The fm RFC_READ_TABLE is RFC-enabled. This doesn't mean that w you call it from a program that it rusn in the background.

    So background determination is done based on 2 methods:

    1. Make a program that calls this fm, create a variant with it (for your parameters) and then run it in the background (or schedule a job for it).

    2. Inside your program do a remote call to fm RFC_READ_TABLE. See next example.

    <tt>

    CALL FUNCTION 'RFC_READ_TABLE'

    STARTING NEW TASK my_task

    DESTINATION 'NONE'

    ...

    EXCEPTIONS

    COMMUNICATION_FAILURE = 1 MESSAGE my_msg

    SYSTEM_FAILURE = 2 MESSAGE my_msg

    OTHERS = 3.

    </t>

    This will process in the 'background'.

    By the way, when in foreground, you can influence the time-slice counter. Reset occurs when using COMMIT WORK, so if you are able to use this, you can run in the foreground.

    Hope this gives you the information needed.

    Regards,

    Rob.

    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.