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 fM

Former Member
0 Likes
744

i have data in <FS_ESSR> in 1 prog

how i can make import to this value (<FS_ESSR>)

in another prog

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
681

Rani,

I am guessing that this variable is referring to ESSR structure.

So, wherever you are exporting it.

EXPORT <FS_ESSR> TO MEMORY ID 'ABC'.

And the place where you want to import this.

FIELD-SYMBOLS : <FS_ESSR> TYPE ESSR.

IMPORT <FS_ESSR> FROM MEMORY ID 'ABC'.

Regards,

Ravi

Note : Please mark the helpful answers

5 REPLIES 5
Read only

Former Member
0 Likes
681

Hi

You can use IMPORT/EXPORT stataments

Max

Read only

Former Member
0 Likes
681

Export the value to memory and import it from the another program. The following is the syntax

EXPORT obj1 ... objn TO MEMORY.

Hope it helps.

Sunil Achyut

Read only

Former Member
0 Likes
682

Rani,

I am guessing that this variable is referring to ESSR structure.

So, wherever you are exporting it.

EXPORT <FS_ESSR> TO MEMORY ID 'ABC'.

And the place where you want to import this.

FIELD-SYMBOLS : <FS_ESSR> TYPE ESSR.

IMPORT <FS_ESSR> FROM MEMORY ID 'ABC'.

Regards,

Ravi

Note : Please mark the helpful answers

Read only

0 Likes
681

Ravi,

this won't work: Field-symbols are just address pointers. and <FS_ESSR> is not yet assigned to any storage area (variable). IMPORT statement will copy a value to a target variable. So if a variable (or table line) is assigned to a field-symbol, the value of the assigned vaiable can be exported to memory. Import must be to a local variable.

So this should be

Data:

ls_essr type essr.

IMPORT ls_essr from memory ID 'ABC'.

if you like, you may ASSIGN ls_essr to <FS_ESSR>.

Regards,

Clemens

Read only

Manohar2u
Active Contributor
0 Likes
681

Hi Rani

Here is the help you can go thru for transfering data between programs.

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm">Passing Data Between Programs</a>

Refer to the example programs

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba50035c111d1829f0000e829fbfe/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba50035c111d1829f0000e829fbfe/frameset.htm</a>

Regds

Manohar