Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Defining Memory ID

Former Member
0 Kudos
5,984

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

9 REPLIES 9

Former Member
0 Kudos
292

Hi Shyam,

Kindly go through this link below:

Hope it helps

Regrds

Mansi

Former Member
0 Kudos
292

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

viquar_iqbal
Active Contributor
0 Kudos
292

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

Former Member
0 Kudos
292

Hi

You can define memory id and you can import or export .

Import memory id < Memoryid name>

Export memory id < memoryid name>

Regards,

Rajani

0 Kudos
292

Hi all,

thanks for your answers. But where do we define these MEMORY ID ?

Shyam.

0 Kudos
292

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

Former Member
0 Kudos
292

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

awin_prabhu
Active Contributor
0 Kudos
292

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

awin_prabhu
Active Contributor
0 Kudos
292

K..

Edited by: Guest77 on Feb 16, 2009 9:56 AM