Idocs are sent from external system to SAP. There are no of Idocs and each Idoc posting a document in SAP.
For posting a document Idoc inbound FM reads the previous document posted and do some calculations for the current document and posts it.
Now the problem is it's not recoginizing the document posted immediately but it's taking previous document for calculations which is causing problem. For example doc1,doc2,doc3 are posted in sequence. Doc3 Idoc processing should read doc2 values but it's reading doc1 values.
I wanted to know is there possibility that Idocs are processed parallelly? is there possibility that doc3 Idoc processing started before commiting doc2 changes? How to correct this. I am using standard FM MEASUREM_DOCUM_RFC_SINGLE_001 to post document.
This problem was not there earlier. We have recently introduced delay if the point is locked to wait for 3 secs and retry to avoid failure due to locking.
Any ideas much appreciated.