B0900049 - IO9UI002 cache errors

aalon

Active Member
List,

I am writing a custom NER that uses the F0911 Begin Document business function (B0900049). There is a need to run the program in a multi-thread process. The program is having unpredictable results and is getting a cache error on 'I09UI002'. Is it possible to use this bsfn in a multi-thread scenario? If not...how can we fix the problem. Any ideas will be appreciated.
Thanks,
aalon
 
aalon,
It is possible, but you will need to have a different transaction ID for each thread.
When you start the F0911 Begin Doc you need to send a transaction Id.
When you call F0911 End Doc cache is cleared....
Maybe a good idea is to create multiple batch applications...

Hope this help.
 
Carlos,
Thanks for the response. Do you mean for F0911 Begin Doc, pass a Job number (not sure if this is what you mean by TransactionID). I already tried this and this did not work. If you pass a jobnumber, it thinks that the cache already exists and so you will get cache errors also. It uses JDB_GetInternalNextNumber to get the next job number which turns out to be not unique when you run this in a multi-thread scenario. Any ideas on this?
Thanks for your help.
aalon
 
Back
Top