2009 Feb 16 7:53 AM
Hi folks,
I need to export some data (just a flag) from one report to another. I think i need to export data to memory id. Could any body explain me, how and where ro define these memory ids. Do we need to maintain those in TPARA table...pls suggest me.
Thanks,
Shyam.
Edited by: shyam prasad on Feb 16, 2009 8:54 AM
2009 Feb 16 7:56 AM
2009 Feb 16 7:58 AM
hi,
IMPORT w_flda FROM MEMORY ID 'FLA'.
EXPORT w_flag TO MEMORY ID 'FLA'.
refer this link
[MEMORY ID|http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bde358411d1829f0000e829fbfe/content.htm]
regards
sarves
2009 Feb 16 7:58 AM
Hi
you need to define memory id
and then
EXPORT TP_warranty_exp_ind to MEMORY ID ID_IPRT_PRT_WAR_STAT
and import it like this
IMPORT TP_warranty_exp_ind FROM MEMORY ID ID_IPRT_PRT_WAR_STAT
Thanks
Viquar iqbal
2009 Feb 16 8:02 AM
Hi
You can define memory id and you can import or export .
Import memory id < Memoryid name>
Export memory id < memoryid name>
Regards,
Rajani
2009 Feb 16 8:07 AM
Hi all,
thanks for your answers. But where do we define these MEMORY ID ?
Shyam.
2009 Feb 16 8:56 AM
Hi,
if you are using parameters then in the parameter you define memory id, but if you directly want to write import export statement, just give the memory ID name... the system will automatically create a space in the ABAP memory for you.... and the value will be passed to it...
Regards,
Siddarth
2009 Feb 16 8:04 AM
Hi,
While declaring a variable itself you can specify memory id <ID_KEY>
parameters : w_a type i memory id INT.
and then use the export and import memory id statement with the ID_KEY,
export memory id INT...
import memory id INT....
Regards,
Siddarth
2009 Feb 16 8:17 AM
Hi friend,
See simple example..
Activate both reports.
Run first report ztest.
It exports a value in variable 'text' to memory id 'mem' which is imported by the second report ztest1.
Report ztest.
DATA: text(20) VALUE 'Hello',
mem(20).
EXPORT text TO MEMORY ID mem.
SUBMIT zawi_test1 AND RETURN.
WRITE:/ 'Successfully exported to ztest1'.
Report ztest1.
DATA: text(5),
mem(20).
IMPORT text FROM MEMORY ID mem.
WRITE:/ 'Importing from ztest:', text color = 1.
FREE MEMORY ID mem.
WRITE:/ 'Successfully imported'.
Might be helpful.
Thanks...
Edited by: Guest77 on Feb 16, 2009 9:18 AM
2009 Feb 16 8:55 AM