Skip to Content

Idoc Processing Unsuccessful Not all preceding documents could be locked

Hi Sap Gurus,

I have an requirement that need to create inbound delivery with respect to flat file. If flat file contains more than 10000 records then it should split data & create multiple deliveries.

example-

if file data < 10000.

create delivery!

else.

split data & create multiple deliveries!

endif.

so now my question is in debug mode it s creating multiple deliveries as per requirement but without debug mode its creating only 1st delivery & says below message

"Idoc Processing Unsuccessful Not all preceding documents could be locked"

Hence request you to please help me to overcome this problem.

Note:I used commit work & wait also but still problem exists.

Regards,

shabaresh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 10, 2017 at 07:23 PM

    The system is too fast.... After you commit your work, you can create a do / endo for a limited amount of time and check for the delivery. Once the times up, exit. If the delivery is found, then continue and your next delivery will create without an issue. Just make sure you give a way out of the loop. For some reason if it is locked for too long - you don't want to just keep running the same do loop. (You can also always check for the locks - in a do loop and make sure the record is unlocked before continuing.)

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 13, 2017 at 07:14 AM
    -1

    after delivery creates logic, I wrote Wait up to 1 seconds then its working.

    Thanks,

    Shaabaresh

    Add comment
    10|10000 characters needed characters exceeded