Skip to Content
0
Mar 25, 2009 at 05:30 PM

Visibility of New Order after deleting and resended, inside a Function

42 Views

Hi all,

I have a problem that I don't know to resolve. The problem regards the Sales Order.

I have 2 system Sap R/3 with an Idoc comunication beetween them.

I have to delete a SO in destination system(RFC), resend the same order from a source system with an IDOC, control in destination system the SO is equal to source system.

I create a function module with an import parameters, VBELN and the destination System.

The function operating schema is:

- check the rfc connection with the destination system --> ok, work

- enqueue the Sales Order ---> ok, work

- delete the Sales Order in destination system ---> ok, work

- send the idoc -


> ok, work and the SO arrives correctly into destination system

- control with BAPISDORDER_GETDETAILEDLIST by RFC in destination system ---> fail, the detail that return me are the old SO and not the just sended although i see in the destination system the new one during the exceution of the control.

I try to do a commit work and wait to a destination system, a DB_COMMIT... but nothing the order that see the BAPISDORDER_GETDETAILEDLIST inside the execution of the process is the old Order and not the new.

I hope to be comprehensible.

My english is not too good.

Thanks a lot.