‎2019 Nov 19 10:43 AM
Hi SAP Experts,
Is there a way to find the specific MEMORY ID?
This is the only code I have so far.
" IMPORT lv_strec TO lv_str FROM MEMORY ID c_id.
FREE MEMORY ID c_id."
Thanks and Regards,
Luiz Carlos
‎2019 Nov 19 12:40 PM
Hi Luiz Carlos,
one possibility is to run an ABAP source code scan with
RPR_ABAP_SOURCE_SCAN
Thanks and regards,
Flavio
‎2019 Nov 19 12:40 PM
Hi Luiz Carlos,
one possibility is to run an ABAP source code scan with
RPR_ABAP_SOURCE_SCAN
Thanks and regards,
Flavio
‎2019 Nov 19 3:59 PM
Hi Flavio,
I tried doing that with search string 'memory id' and even 'c_id' but can't find the program, am I missing some parameters that I need to input.

Thanks and Regards,
Luiz Carlos
‎2019 Nov 19 5:20 PM
If you are coming up with blanks, I would also suggest putting a wildcard into the Package field of the RPR_ABAP_SOURCE_SCAN selection screen. I use this program often to search our Z code. If I don't put Z* in the package field I don't get any hits.
‎2019 Nov 19 7:15 PM
Prefer RS_ABAP_SOURCE_SCAN. It exists in all ABAP systems.
RPR_ABAP_SOURCE_SCAN exists only in SAP ERP or S/4HANA. And it now redirects to RS_ABAP_SOURCE_SCAN.
‎2019 Nov 20 7:18 AM
Hi Luiz Carlos,
answering your comment above, I believe you should enter c_id for the "String searched for" and the possible custom code wildcards, as follows (assuming the MEMORY ID is used in custom code, Z and Y namespaces) for "Program Name":


Thanks and best regards,
Flavio
‎2019 Nov 19 7:20 PM
Instead of scanning the ABAP source codes (may take a long time), if you know the transaction code which runs this statement, you may run the transaction code:
‎2019 Nov 19 8:02 PM
The syntax is IMPORT FROM MEMORY ID id, where id is 'a flat character-like data object.' That means in your example, c_id is a constant (probably) defined somewhere in your program.
Therefore you need to find the value of c_id. You could do this by using F3 in Eclipse, or double clicking on the code line in SAPGui. Or in debug. Then search for that value. Searching for c_id therefore is not going to help you.
If the code you've posted is a standard sap program, it would be helpful to say which one.