Skip to Content

Asynchronous function

Hello,

I need to add a line in a table (c) with data of two tables (a) (b). I have only one user-exit and it reads the data of only one table (a). I need both data of (a) (b) to add a line in (c). The user-exit is at the commit of the table (a), the commit of the table (b) comming just after.

I think to create an asynchronous function, call it in the user-exit and wait the commit of the table (b).

My user-exit is already call in an asynchronous function.

So, do you think it's dangerous to have two asynchronous function launch in the same time ? (process problem)

How would you do to wait a commit ? wait n seconds ? or there is a way to wait a commit on a table ?

Regards

Frédéric

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 25, 2005 at 08:33 AM

    Hi Frédéric!

    You should search for different options.

    Statement 'call function ... starting new task / in background' may trigger an implicit commit work -> this has to be avoided (at all costs), since later rollback work won't clear up whole transactions.

    How about writing change pointers in exit for (a) and (b) - can be done without commit; only message (WE81) has to be customized, pointer activated (BD50) and CHANGE_POINTERS_CREATE_DIRECT can be used. Later you can read both entries 'asynchron' by a job.

    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.