‎2008 Mar 07 2:03 AM
Hi All,
In MIGO, i add a code in the userexit "ZXVBZU02" which will generate a batch no. In the existing logic, which will retrieve the latest batch no from add-on table and then add 1 into the batch no. Actually, for each material doc, it will generated one same batch no. But no, I would like to generate a batch no for each material doc items, the curreny logic can't fulfill my requirement, because the MIGO program will call the exit by each item and then and finally do transaction once all items are read. Since the current logic is retrieve the latest record from database, but for each item which haven't stored it. So each item will get the same batch no. My idea is store the latest batch no in memory or somewhere, then read the temporary variable and retrun to MIGO program. But i don't know how to store the temporary variable. Thanks!
‎2008 Mar 07 2:15 AM
Export the table to memory in some user exit and import the internal table in the userexit you want to write code.
Hope it helps.
Thanks,
krishna
‎2008 Mar 07 2:32 AM
‎2008 Mar 07 2:38 AM
‎2008 Mar 11 5:43 PM
After i implemented this approach. the which has a paging error, I think it could be the memory haven't release. In my situation. I can't release the memory before commit the database. Anyone can help me. thanks!