Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Store variable temporary

Former Member
0 Likes
1,036

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!

4 REPLIES 4
Read only

Former Member
0 Likes
842

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

Read only

0 Likes
842

That means I need to involved 2 userexit? Thanks!

Read only

0 Likes
842

Exactly.

Thanks,

Krishna

Read only

0 Likes
842

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!