‎2007 Oct 22 2:51 AM
Hi,
I am trying to export some values from VA01 as soon as a user hits "Enter" after entering the material data.
Now after the control comes back and when the user selects and goes to condition records i will import these values and use them.
Now, my question is how to avoid the values getting mixed up in the memory space when multiple users are working. For ex: User01 first hits "Enter" after entering material data. Now some values are exported to memory. Before User01 goes to see condition records, what if User02 hits "Enter" by inputting the material data again on VA01?
I want that User01 gets only his data back, instead of User02's data.
Please let me know.
‎2007 Oct 22 3:01 AM
Hi,
There is a work around for this. While saving the values to the memory also save sy-uname. So after importing this value compare this username with sy-uname.
Regards,
Atish
‎2007 Oct 22 3:05 AM
Hi,
My understanding is if you are using ABAP memory it will only be accessible by one user through a active session. I dont think the other user is going to get this value as the ABAP memory is not active for the other user. Guess you should be fine with that logic.
Cheers
VJ
‎2007 Oct 22 3:24 AM
‎2007 Oct 22 3:26 AM
Yes thats ABAP memory and i dont think it will be available for the other user as its active through a active session only. So you should not have any problem doing that.
Cheers
VJ
‎2007 Oct 22 3:29 AM
gthat should not cause a problem, as when you export a value to memory in your program, during execution, it will be stored in your LUW (Logical unit of work) so it will remain available as long as this LUW is active.
ashish
‎2007 Oct 22 3:31 AM
Hi Aditya,
VJ is right. You can go ahead as he suggested.
Regards,
Atish
‎2007 Oct 22 5:07 PM
No But i tried. First, Execute the transaction with two user ids.In the debugger hit F5 at the export statement. Now in the debugger for the second user again hti F5 at the export statement. Now in the debugger for the first user Hit F5 on the import statement. I am getting the values of the second user.
I have not tried with the sy-uname option you guys gave me. I think this should make difference because each time i will be exporting/importing to/from different space.
‎2010 Dec 06 3:58 PM