Skip to Content
avatar image
Former Member

Function module is giving performance issue from external run

Hello Experts,

I have one custom RFC which returns output (For one batch) within 10 seconds when its run from SE37 but when I run this RFC from .net code it takes 5-7 minutes. this time frame keeps increasing with batches. Each batch takes couple of extra minutes than previous one.

This is creating performance issue for our product. Can you guys please suggest what I need to work on?

Thanks in advance!


Akanksha Srivastava

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 15, 2016 at 08:28 PM

    Work on your analytical skills. Have you tried at all to analyze the issue? Have you set up any logging / tracing / done anything other than posting a question ?

    Naturally, when you start an FM in SE37 then it runs on the SAP server and does not need to travel through the network jungle like the external call. But in this day and age even the worst network latency should not cause runtime to go from seconds to minutes IMHO (although technically it is possible). Look at all the parts of this equation: network, data transferred, calling application itself. Get someone locally to assist if you don't know how to analyze this.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Jelena Perfiljeva

      Thanks Jelena,

      This peice of code gets called from our core product which has all authorization checks and licensing in build. Thats why it is not required here.

      I will look for solutions. Thanks


  • avatar image
    Former Member
    Nov 15, 2016 at 09:35 PM

    Check the amount of data transfered using RFC; if it has large exporting data try to use TABLES instead (yes, thats outdated, but the only data automatically compressed while transferring). Or you try to compress it (there are gzip helper classes available). Also, I would suggest to google for "theobald RFC", thats third-party lib (paid!) which makes life much easier to use RFC in .NET. It also offers some tracing analysis. Website is currently down, check back tomorrow.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      We fetch all columns from LFA1 table (143 columns). batch comes in 1,2,3 sequence only. fetching number of columns may cause the issue?


  • Nov 17, 2016 at 12:30 PM


    May be you would have already explored the trace results from ST12 which gives a detail account of step by step process flow and the amount of time it takes to complete one process ( say one FM or Subroutine etc ).

    I tried ST12 when a JAVA application is triggering an SAP RFC FM,hopefully it will also log the trace details even from .Net.


    Add comment
    10|10000 characters needed characters exceeded