Application Development and Automation 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: 
Read only

import / export memory ID

Former Member
0 Likes
696

Hello.

While customizing WM screens I noticed that using the memory ID / parameter ID doesn't work for me.

I get sy-subrc 4 even though I made set/export before that.

Examples:

1. export gv_matnr to memory id '/XLRF/4100'.

import gv_matnr from memory id '/XLRF/4100'.

2. set parameter id '/XLRF/4100' field gv_matnr.

get parameter id '/XLRF/4100' field gv_matnr.

I don't understand how come.

Any ideas anyone ???

Regards,

Rebeka

3 REPLIES 3
Read only

Maciej_DomagaBa
Contributor
0 Likes
590

I think your export/import statements have incorrect syntax - check in online help. As I remember it should be sth like that:

export SOME_NAME = some_value to memory id 'SOME_MEMORY_ID'.

import SOME_NAME = some_variable from memory id 'SOME_MEMORY_ID'.

To use set/get parameters you should first create a definition of such set/get parameter id (SE80).

regards

Read only

Former Member
0 Likes
590

Hi,

Try using this syntax for exporting:

e_data_storage_out = the variable of the data type you want to export your data in

e_data_storage_in = the variable of the data type you want to import your data in

e_memory_id = memory id where you want to store the data

export e_data_storage_out

from input

to memory id e_memory_id.

Try using this syntax for importing:

IMPORT e_data_storage_out

to e_data_storage_in

from memory id e_memory_id.

Read only

Former Member
0 Likes
590

Found it alone. thanks.