cancel
Showing results for 
Search instead for 
Did you mean: 

Import and export not working for multiple users

former_member196331
Active Contributor
0 Kudos
383

hi,

I need a small help.

EXPORT wa_mseg_dt TO MEMORY ID SY-UNAME. "'CTAB'.

IMPORT wa_mseg_dt TO wa_mseg_dt1 FROM MEMORY ID sy-uname. "'CTAB'.

I have one requirement, while posting Gr , With respect to the Production order.
I Created one enhancement point,From here some data is moving to Standard exit.
EXIT_SAPLCK21_002

Here it will check, How much Gr qty is posting and whether all the raw materials are withdrawn or not. other wise system will stop .

In Development it is working Fine, Because it is having only 1 user at a time, But now i moved to production. Here the problem is multiple users are using the server.

EXPORT wa_mseg_dt TO MEMORY ID SY-UNAME. "'CTAB'.

IMPORT wa_mseg_dt TO wa_mseg_dt1 FROM MEMORY ID sy-uname. "'CTAB'.

If you see above for importing and exporting i was initially used CTAB as a memory id.
But if multiple users are used. it will move wrong data, to the exit. I was thought, so, this is reason i changed to sy-uname, So, at a time only one person may login into the system.
but above sy-uname is not working.Could any body suggest me , What should i do.

I seen below post, but nobody marked the replys as correct answer.

https://archive.sap.com/discussions/thread/3626298

Need Your raymond.giuseppi valuable suggestions Plz.






Accepted Solutions (0)

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor

I already answered in the referenced thread, but seems the OP didn't understand concept of memory boundaries. As already written use F1 to understand and perform some search in online help on Abap/Shared/Database memory.