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: 

how to set parameter value with memory id

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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!

0 Kudos

Thanks!

Former Member
0 Kudos

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

Former Member
0 Kudos
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'.