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

pass internal table data from one session to another session

sureshkumar_pnv
Participant
0 Likes
3,254

I've created one push button . if i click on that, new session will be open. now I've to pass internal table data from one session to another session. how can do it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,145

Hi,

SAP Memory

SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens

ABAP/4 Memory

ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data

to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.

SAP memory

The SAP memory, otherwise known as the global memory, is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions. The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory.

ABAP/4 memory

The contents of the ABAP/4 memory are retained only during the lifetime of an external session (see also Organization of Modularization Units). You can retain or pass data across internal sessions. The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.

Hope This Info Helps YOU.

Regards

Rajesh Kumar

I've created one push button . if i click on that, new session will be open. now I've to pass internal table data from one session to another session. how can do it.

8 REPLIES 8
Read only

Former Member
0 Likes
2,145

Hi,

Using Import/Export you can pass data between two sessions.

Refer Link:[Import/Export|http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bde358411d1829f0000e829fbfe/content.htm]

Regards,

Gurpreet

Read only

viquar_iqbal
Active Contributor
0 Likes
2,145

Hi

you need to use SAP memory using import/export statements

for more info

http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bde358411d1829f0000e829fbfe/frameset.htm

Read only

Former Member
0 Likes
2,146

Hi,

SAP Memory

SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens

ABAP/4 Memory

ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data

to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.

SAP memory

The SAP memory, otherwise known as the global memory, is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions. The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory.

ABAP/4 memory

The contents of the ABAP/4 memory are retained only during the lifetime of an external session (see also Organization of Modularization Units). You can retain or pass data across internal sessions. The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.

Hope This Info Helps YOU.

Regards

Rajesh Kumar

Read only

Former Member
0 Likes
2,145

Hi ,

You try with Import & Export Statements as follows ---

DATA : t_itab LIKE TABLE OF spfli.
EXPORT t_itab TO MEMORY ID 'ABCD'.

After sending the internal table to ABAP memory you need to get that by IMPORT in the called session.

IMPORT t_itab FROM MEMORY ID 'ABCD'.

Regards

Pinaki

Read only

kamesh_g
Contributor
0 Likes
2,145

Hi

Use the concept of memory id

Once you create the memory id u can store values in that and can import those values

Read only

Former Member
0 Likes
2,145

hi....

go with following tested code....

IN FIRST INTERNAL SESSSION

EXPORT T_TABLE TO MEMORY ID 'MY_ID'.

IN SECOND SESSION YOU CAN SAY...

IMPORT T_TABLE FROM MEMORY ID 'MY_ID'.

REGARDS

Read only

Former Member
0 Likes
2,145

use

export itab to memory id abc.[session 1]

import itab from memory id abc.[session 2]

itab structure shd b same in both the programs.

Edited by: sudheer b on Feb 17, 2009 8:04 AM

Read only

Former Member
0 Likes
2,145

Hi,

Check the below Link

Regards,

Anki Reddy