BAPI_BATCH_CREATE & system efficiency
I use this function module in my interface to create batches, sometimes, almost always we have to run the interface twice because the first time when we write the batchnums to the table they are blank. The second time they appear.
I have a commit and wait after each exec of the FM. Its like the system does not catch up to the processing in time, when its time to write the new batches out, maybe they are still creating them?