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: 

MEMORY ID

Former Member
0 Kudos
120

Hi All,

How do I get the memory ID for the given field.

Regards,

Sameer A M

1 ACCEPTED SOLUTION

rahulkavuri
Active Contributor
0 Kudos
76

hi its explained in brief in the above link, please award points if found helpful

6 REPLIES 6

dani_mn
Active Contributor
0 Kudos
76

HI,

memory ids are not linked with fields.

here is the table for memory ids.

check the table 'TPARA'.

REgards,

rahulkavuri
Active Contributor
0 Kudos
77

hi its explained in brief in the above link, please award points if found helpful

Former Member
0 Kudos
76

Press the F1 on the field... go to the technical info.. parameter id will be attached to the data element of that field

thanks

anversha_s
Active Contributor
0 Kudos
76

HI,

chk this sample code.

A simple example of ABAP memory is using the EXPORT/IMPORT statements.

Here in this program, I get the data, export it to memory,

clear out the internal table in my progam, then reimport the data into it and write out the data.

You probably wounldn't do this in a normal program,

but this is how you can pass data from program a to program b when A Submits program B.

report zxy_0002 .
 
data: it001 type table of t001 with header line.
 
select * into table it001 from t001.
 
export it001 = it001 to memory id 'ZXY_TEST'.
 
clear it001. refresh it001.
 
import it001 = it001 from memory id 'ZXY_TEST'.
 
loop at it001.
  write:/ it001-bukrs, it001-butxt.
endloop.

rgds

anver

if hlpd pls mark points

Former Member
0 Kudos
76

u mean to say u want to refer to that field in another transaction

use set

and

get

say in program 1,

DATA REPID like sy-repid VALUE 'RSPFPAR'.

SET PARAMETER ID 'RID' FIELD REPID.

in program 2 to call that memory id

DATA : REPID LIKE SY-REPID.

GET PARAMETER ID 'RID' FIELD REPID

regards,

vijay

Former Member
0 Kudos
76

Hi Sameer,

<b>Export to memory id</b> and <b>set parameters</b> are different in the sense that the former is in ABAP memory and the latter is in SAP memory.Export to memory id will work locally in the same session.the other SET parameter could be used globally.You can see it by opening 2 sessions.