Skip to Content

BAPI_DOCUMENT_CHANGE and parallel processing

Hi to all,

just one question about bapi's and parallel processing.

I'm using BAPI_DOCUMENT_CHANGE and BAPI_DOCUMENT_CREATE2 bapi to modify material documents. With SM50, i see that the bapi, uses all free DIALOG work process of the application server.

Is that a parallel processing. Isn't it? All BAPI's works in that way??

Probably this could improve the performance, but i dont' care and i would like to avoid this way of work, and use ONLY ONE dialog work process (also if i run the program in batch).

Is there a method to use ONLY one DIALOG work process with these BAPIs??

Thx a lot

Andrea

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Feb 18, 2005 at 12:46 PM

    Hi,

    same for me: time is running out before travelling.

    Background won't help in case of starting new task.

    There is general system parameter, which can prohibte usage of last 1-2 dailog sessions (not much of a help, but system stays unblocked).

    I bet for user-exits, not standard.

    Sophisticated resource usage needs additional programming (examples can follow later, anyway calls have to be identified in beforehand).

    Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2005 at 04:37 AM

    Hello Andrea,

    I don't think what you see can be classified as <i>parallel processing.</i>

    Only one work process will be utilized at any instant of time, unless you explicitly specify the options to make use of parallel processing (STARTING NEW TASK etc.,).

    It may be possible (though I don't think it likely) that the two BAPIs use a different work process to execute. But the processing is actually still serial in nature.

    Just observe one thing. Are the two BAPIs ( in one instance of your running program ) getting executed at the same instant with different work processes? Please confirm.

    Also, this topic can be best understood if you supplement your observations with the online documentation.

    Regards,

    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Andrea Galluccio

      Hello Andrea,

      There's one thing that you must see - Christian was just suggesting a theoretical possibility. It <i>may be</i> that some FM somewhere deep down the line is triggering a new task. But we cannot be sure about that till we have actually identified that. I have done a quick debug of the BAPI and have not found any such statements which would trigger a new task. Some of the code would not have been executed for some of the conditions of the data that I have used.

      In any case, I think it is unlikely that a BAPI would be written such that it would spawn across multiple work-processes. Are you sure that all the work-processes you see in SM50 are yours and are resulting only from the execution of this BAPI? If yes, then I guess there's nothing much that you can do about it.

      If it is a problem with only this BAPI, then I think it should have been identified already - bu I could find no SAP Note for this problem.

      As a last thing that I can think of before the weekend, can you try calling this BAPI with the Addition IN BACKGROUND TASK ? (I doubt it will work, but just give it a try )

      Regards,

      Anand Mandalika.

  • Posted on Feb 18, 2005 at 09:02 AM

    Hi Andrea,

    to sum some facts: obviously you are not starting new sessions with '... new task', obviously your calling is total sequential.

    And now a really blind guess: there are some minor extensions in user-exit(s), which are calling new tasks to make some necessary steps of a follow-on process...

    BAPI's don't have a hidden life. Only update might be asynchronous - which you can avoid by calling bapi_transaction_commit with 'wait'.

    Do you have a complete overview of customer programming in this part?

    Regards,

    Christian

    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.