cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving wrong order numbers in generic sync

Former Member
0 Kudos

Hi All,

I am creating sales orders in a R/3 backend using Generic Sync. I realised that the order number I get back is not for the order I placed but is the order number for the previous order I placed.

ex. Say I create Order 1, I get NULL. Then I create Order 2, I get order number 505. but in reality this 505 is for order number 1. In the next cycle I create Order 3 and get order number 506. This 506 is actually order number for Order 2.

Its like I am getting the order numbers a cycle later.

I am not sure how to fix this.

Any clues? Any kind of help will be useful.

Thanks in advance,

Nakul

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nakul,

This is because you are using asynchronous processing of data containers.

Use <b>Synchronous Processing</b> to get the correct results. But Synchronous Processing obviously takes more time to sync that the asynchronous processing of data.

Hope it helps.

Regards,

Maheswaran.B

Former Member
0 Kudos

HI,

by reading the ancestor container Id you can find out for which request the currently recieved container is sent.

Outbound container id = inbound ancestor id

See:

http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/javadoc/com/sap/ip/me/api/syn...

Rgds Thomas

PS: In case of sync prosessing you should always receice the reply immediatelly!

Answers (0)