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

technics for transfering

Former Member
0 Likes
934

can any body tell me the technics available for transfering data from one session to another session in sap memory?

thanks&regards

meena.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
911

Check this

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bd1358411d1829f0000e829fbfe/frameset.htm

Search SCN you can find lot of stuff on EXPORTING IMPORTING to MEMORY ID

EXPORT obj1 ... objn TO MEMORY.

Exports the objects obj1 ... objn (fields, structures or tables) as a data

cluster to ABAP/4 memory .

EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key. Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to the database table dbtab.

IMPORT f itab FROM MEMORY.

Imports data objects (fields or tables) from the ABAP/4 memory . Reads in all data without an ID that was exported to memory with "EXPORT ... TO MEMORY."

IMPORT f itab FROM DATABASE dbtab(ar) ID key. imports data objects (fields, field strings or internal tables) with the ID key from the area ar of the database dbtab .

EXPORT obj1 ... objn TO MEMORY.

If you call a transaction, report or dialog module (with CALL TRANSACTION , SUBMIT or CALL DIALOG ), the contents of ABAP/4 memory are retained, even across several levels. The called transaction can then retrieve the data from there using IMPORT ... FROM MEMORY .

Each new EXPORT ... TO MEMORY statement overwrites any old data, so no data is appended.

EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key

The database table dbtab must have a standardized structure .

The database table dbtab is divided into different logically related areas ( ar , 2-character name).

You can export collections of data objects (known as data clusters ) under a freely definable key (field key ) to an area of this database.

IMPORT allows you to import individual data objects from this cluster.

can any body tell me the technics available for transfering data from one session to another session in sap memory?

thanks&regards

meena.

6 REPLIES 6
Read only

Former Member
0 Likes
911

Using import and export statements search for them in SCN

Read only

VikasB
Active Participant
0 Likes
911

Try using F1 help for MEMORY ID, you will get to know the various 'technics'.

Regards,

Vikas.

Read only

Former Member
0 Likes
912

Check this

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bd1358411d1829f0000e829fbfe/frameset.htm

Search SCN you can find lot of stuff on EXPORTING IMPORTING to MEMORY ID

EXPORT obj1 ... objn TO MEMORY.

Exports the objects obj1 ... objn (fields, structures or tables) as a data

cluster to ABAP/4 memory .

EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key. Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to the database table dbtab.

IMPORT f itab FROM MEMORY.

Imports data objects (fields or tables) from the ABAP/4 memory . Reads in all data without an ID that was exported to memory with "EXPORT ... TO MEMORY."

IMPORT f itab FROM DATABASE dbtab(ar) ID key. imports data objects (fields, field strings or internal tables) with the ID key from the area ar of the database dbtab .

EXPORT obj1 ... objn TO MEMORY.

If you call a transaction, report or dialog module (with CALL TRANSACTION , SUBMIT or CALL DIALOG ), the contents of ABAP/4 memory are retained, even across several levels. The called transaction can then retrieve the data from there using IMPORT ... FROM MEMORY .

Each new EXPORT ... TO MEMORY statement overwrites any old data, so no data is appended.

EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key

The database table dbtab must have a standardized structure .

The database table dbtab is divided into different logically related areas ( ar , 2-character name).

You can export collections of data objects (known as data clusters ) under a freely definable key (field key ) to an area of this database.

IMPORT allows you to import individual data objects from this cluster.

Read only

Former Member
0 Likes
911

Hi,

Please refer the following link where u may find answer to your querry:

https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=transferringdatafromonesessiontoanothersessioninsapmemory+&adv=false&sortby=cm_rnd_rankvalue.

Regards,

Rahul

Read only

Former Member
0 Likes
911

Hi

You can also think of using field symbols

for example

field-symbols : <f1> type any.

assign '(SOURCEPROGRAMNAME)VARIABLE' TO <f1>.

if <f1> is assigned.

endif.

You need to write the above code in target program and in the SOURCE PROGRAMNAME name write the source program name and in the VARIABLE place, you need to write Source program variable name

For example

assign '(SAPMV45A)XVBAP' TO <f1>.

Regards

Madhan

Read only

Former Member
0 Likes
911

Hi meena,

Follow the below given links this will clarify your doubt:

http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm

i hope this will help you.

Regards

Saurabh