2022 May 24 1:40 PM
I need to transfer a reference value (ref to object) from one program to another. The obvious way is to use MEMORY ID, but abap says i can't send a ref value. Should i pack it someway, or is there another way to transfer a ref value?
2022 May 24 1:47 PM
This is not obvious, this is old school 😉
Check for the Design Pattern: SingleTon
or have a look to SHMA (more complex solution)
2022 May 24 1:47 PM
This is not obvious, this is old school 😉
Check for the Design Pattern: SingleTon
or have a look to SHMA (more complex solution)
2022 May 24 2:06 PM
If you mean how to pass between 2 programs called using SUBMIT, CALL TRANSACTION, RFC, etc., then it's possible only through serialization (if your class implements IF_SERIALIZABLE_OBJECT). Shared objects also, as mentioned by Frederic.