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

put in memory

Former Member
0 Likes
549

hi ,

how to put in memory of a report the following fields.

EXNUM = J_1IRG23-EXNUM

EXYEAR = J_1IRG23-EXYEAR

ZEILE = J_1IRG23-ZEILE.

AND HOW TO CHOOSE MEMORY ID?

4 REPLIES 4
Read only

varma_narayana
Active Contributor
0 Likes
501

Hi

To store the Values in ABAP memory use the Following syntax:

DATA : V_MATNR TYPE MARA-MATNR,

V_WERKS TYPE MARC-WERKS.

EXPORT MAT FROM V_MATNR

PLANT FROM V_WERKS

TO MEMORY ID 'M1'.

then in the Called program u can use the IMPORT to read these values

DATA : V_MAT TYPE MARA-MATNR,

V_WER TYPE MARC-WERKS.

IMPORT MAT TO V_MAT

PLANT TO V_WER

FROM MEMORY ID 'M1'.

<b>Reward if Helpful</b>

Read only

Former Member
0 Likes
501

Hi Singh

EXPORT EXNUM TO MEMORY ID 'EXNUM'

EXPORT EXYEAR TO MEMORY ID 'EXNUM'

EXPORT ZELIE TO MEMORY ID 'EXNUM'

reward points to all helpful answers

kiran.M

Read only

Former Member
0 Likes
501

Hi,

Declare it as as a structure.

S-EXNUM = J_1IRG23-EXNUM

S-EXYEAR = J_1IRG23-EXYEAR

S-ZEILE = J_1IRG23-ZEILE.

Ex:

EXPORT S FROM YPROGRAM TO MEMORY ID 'ABC'.

IMPORT S TO YPROGRAM1 FROM MEMORY ID 'ABC'.

Also check

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/frameset.htm

<b>Reward if helpful.</b>

Read only

Former Member
0 Likes
501

Hi

You need use the next sentences:

EXPORT field TO MEMORY ID 'ID'..

IMPORT field TO field FROM MEMORY ID 'ID'.

Regards

Gregory