cancel
Showing results for 
Search instead for 
Did you mean: 

Execute Bapi Syncronously

Former Member
0 Kudos

Hi !!!

Someone know how i can execute a bapi of

syncronoustly form

Thanks !!

Message was edited by: Noemi Huerta

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

When you say "Execute a BAPI Synchronously", do you mean , that all updates should happen in the database at the same time ?

If so, you can call the BAPI FM in UPDATE TASK.

Regards,

Subramanian V.

Former Member
0 Kudos

Hi Subramanian V. !!!

I have an interface that run everyday in the nigth

this register the movements 101 through the MB1A, for do that, the program

call the bapi: BAPI_GOODSMVT_CREATE.

The interface do that for every point of sales, that implicate

the program call the bapi, more that once.

En some cases the bapi return a message: the mount is below free use,

when the warehouse have enough existence, i supose the bapi enter in clonflicts,

is as the bapi have registered the movement,and try to register again, but really

don't do anything, because the system send a message.

when i reprocess more later, don't send a message, and permit save the movements without

any problem.

I supose is because, some bapis are executing at the same time, for this reason

i want to know if there is a form of execute a bapi and update the information of

syncronously form.

Best Regards !!!

Message was edited by: Noemi Huerta

Message was edited by: Noemi Huerta

sergey_korolev
Active Contributor
0 Kudos

For each call of the BAPI try the following:

<b>SET UPDATE TASK LOCAL.</b>

<b>CALL FUNCTION</b> 'BAPI_GOODSMVT_CREATE'

<b>EXPORTING</b>

...

<b>IMPORTING</b>

...

<b>COMMIT WORK</b>.

Former Member
0 Kudos

Also refer to Sergei's weblog

/people/sergey.korolev/blog/2004/12/11/how-not-to-bite-oneselfs-tail

Regards,

Subramanian V.

Former Member
0 Kudos

Hi !!!

I apreciate your suggestions

I am grateful with us for all your help.

Message was edited by: Noemi Huerta

Answers (0)