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

Performance tunning for a custom transaction

Hi Experts,

We have build a custom transaction which calls VA01/VA02 create and changes sales documents.

Then by means of BAPI's and BDC's we update various related documents. For example we update user status,create project and network defination,

copy SD docu partner to Project def and wbs,create buget,create cost planning,etc.

All this process sometimes takes a considerable amount of time 4-5 mins which we want to improve somehow.

1.We collect data from most of the SD tables initially and then use them as required , i checked the select statements and they are not at all a problem.

2.For places where we use BAPI for example BAPI to create or change a project we use call stand. F.M which waits for updates to complete before continuing

i.e. checks if update task still has to update records for current client and user , this is to prevent locking errors.

I wanted to know if what can be done to prevent this wait before continuing with the next process?

If i call bapi's in set update task local can help?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 04, 2012 at 08:05 AM

    Bhanu Malik wrote:

    If i call bapi's in set update task local can help?



    Hello Bhanu,

    no, set update task local will not help. This statement just tells the kernel to perform updates in the same work process without utilizing update work processes. If you do not have a shortage of update work processes in your system, this change will not influence the runtime of your code.

    Often, the BAPIs do not commit themselves, but require an additional call to BAPI_TRANSACTION_COMMIT. This one can be called either with or without WAIT flag. You'll have to carefully check dependencies between your documents and verify if WAIT is really required in come places.

    The next idea is parallelization of the creation of the follow-up documents (if possible). Here you may use aRFC to trigger something in parallel.



    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.