Skip to Content
0

Idoc Processing Unsuccessful Not all preceding documents could be locked

Nov 10, 2017 at 09:29 AM

114

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Michelle Crapo Nov 10, 2017 at 07:23 PM
1

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.)

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Michelle,

Thank you for your answer.

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

Thanks,

Shaabaresh

1
Shabareesh paluru Nov 13, 2017 at 07:14 AM
-1

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

Thanks,

Shaabaresh

Share
10 |10000 characters needed characters left characters exceeded