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

how to set parameter value with memory id

Former Member
0 Likes
1,750

i have transported a value from a progra to another by using a memory id through export/import. however i can not import the value to a parameter.

the syntax is:

PARAMETER: var type c MEMORY ID memid01.

is this not right?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,400

Hi Ian,

try below

initialization.

 import gv_value = gv_value from memory id 'PARAMETER'.

move gv_value to  p_var.  "p_var is your paramter.

all the things should be done in INITIALIAZAION

hope it works.

Thanks!

4 REPLIES 4
Read only

Former Member
0 Likes
1,401

Hi Ian,

try below

initialization.

 import gv_value = gv_value from memory id 'PARAMETER'.

move gv_value to  p_var.  "p_var is your paramter.

all the things should be done in INITIALIAZAION

hope it works.

Thanks!

Read only

0 Likes
1,400

Thanks!

Read only

Former Member
0 Likes
1,400

Please [check this|http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm]

Read only

Former Member
0 Likes
1,400
REPORT zexport.
DATA var TYPE char20 VALUE 'HELLO'.
EXPORT para = var TO MEMORY ID 'PARA'.


REPORT zimport.
PARAMETER var(20) TYPE c.

INITIALIZATION.
  IMPORT para = var FROM MEMORY ID 'PARA'.