In this case, you would use the function ENQUEUE_READ to see which locks are still active. There is also additional time penalty here because you are always starting off with the forced wait time. Server and Database loads affect the time and so does the number of iterations the same objects are processed. Not in the least, there will a difference between your development box and production system. There are many variables that can affect how long the locks take to be released. This is not a very stable way to ensure that locks are released by the first function. “Where N is the number of seconds to wait This is by introducing a wait after the first function module to allow time for the locks from the first call to release using the statement – There are several ways to address this issue that I will touch on, and why I like this solution the best. In these circumstances, often by the time the second function is called, the lock object is not yet released by the first one, so you get an error. This may be different ones in succession, such as doing an operation on a sales order, followed by a delivery or the same object several time, such as updating characteristics as discussed in this example BAPI_OBJCL_CHANGE Lock errors. There are several times in programming that you are calling a set of function modules in succession that need the same lock object. Over the last couple of weeks, I had the same question posed to me a couple of times, so I thought I would share this in a blog post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |