Directly after the creation of journal entry for WIP Clear.
This is triggered in error case too (value = -1)
Variable
Read
Write
Description
e_WoDocEntry
x
Number of created Work order
e_WoLineNumber
Line Number