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

Export to Memory

Former Member
0 Likes
886

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.

8 REPLIES 8
Read only

Former Member
0 Likes
855

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

Read only

Former Member
0 Likes
855

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

Read only

0 Likes
855

I am using Export Itab to Memory 'xxxx'.

Read only

0 Likes
855

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

Read only

0 Likes
855

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

Read only

0 Likes
855

Hi Aditya,

VJ is right. You can go ahead as he suggested.

Regards,

Atish

Read only

0 Likes
855

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.

Read only

0 Likes
855

This message was moderated.