11-09-2015 2:52 PM
HI All,
I am working on exisiting development in which am supposed to find the (targeted) programme into whch ABAP memory value is EXPORTED.
Can somebody guide how to find this receiver ABAP memory programme/class/function module(in which memory is IMPORTED)?
Thanks,
SD
11-09-2015 3:08 PM
Hi SD,
There is no direct where used list available to find receiver ABAP memory programme/class/fm.
You have to scan all custom programs ( z* & y* ) using standard SAP program.
RS_ABAP_SOURCE_SCAN
Use keyword as ABAP memory id used in sender program as memory has to be same in both the sender and receiver program.
Regards,
Ashish Desai
11-09-2015 3:50 PM
There is no direct where used list available to find receiver ABAP memory programme/class/fm.
This is the exact reason why I don't like IMPORT/ EXPORT to MEMORY.
Thanks,
Juwin
11-09-2015 3:58 PM
So it is better to put the comment where this export variable will be imported.Also in the target place it should mention from where it will be imported.
11-09-2015 5:10 PM
Don't bother with memory export and import. Use instead a static attribute or statics methods of a class. That way you can easily do a "where-used". (Or if you prefer, use a couple of function modules with global data).
11-09-2015 8:45 PM
As far as I know, static attributes and "function group instances" exist only in the corresponding internal session.
If you want to pass the data from one internal session to another (i.e. if you are using SUBMIT or CALL TRANSACTION), ABAP memory could be a solution (of course, there is a plenty of other techniques such as shared objects, but they are more complicated).
In such cases it is a good idea to create a public constant in global Z-class with the name of the memory ID.
export it001 = it001 to memory id ZCL_GLOBAL_CLASS=>MEMORY_ID_NAME.
...
import it001 = it001 from memory id ZCL_GLOBAL_CLASS=>MEMORY_ID_NAME.
But, of course, it is better to design your applications without using of ABAP memory.
11-09-2015 8:53 PM
If you can debug this program, you can set up a breakpoint for the statement IMPORT FROM MEMORY.
I think, it is the most convinient way.
Also it is a good idea to replace the constant with global constant in global class (see my prevous answer in this discussion).
11-18-2015 11:50 AM
Hi,
Check the change request where the export abap code was save.
May be there are the abap objects that contains the import abap code.
Regards